Home
last modified time | relevance | path

Searched refs:srcHeight (Results 1 – 20 of 20) sorted by relevance

/hardware/qcom/display/msm8226/libqdutils/
Dqd_utils.cpp98 int srcHeight, hwc_rect_t& rect) { in getAspectRatioPosition() argument
101 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
102 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
104 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
105 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
106 srcHeight = destHeight; in getAspectRatioPosition()
109 srcHeight = destHeight; in getAspectRatioPosition()
112 if (srcHeight > destHeight) srcHeight = destHeight; in getAspectRatioPosition()
114 y = (destHeight - srcHeight) / 2; in getAspectRatioPosition()
116 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
[all …]
Dqd_utils.h52 int srcHeight, hwc_rect_t& rect);
/hardware/qcom/display/msm8994/libqdutils/
Dqd_utils.cpp97 int srcHeight, hwc_rect_t& rect) { in getAspectRatioPosition() argument
100 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
101 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
103 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
104 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
105 srcHeight = destHeight; in getAspectRatioPosition()
108 srcHeight = destHeight; in getAspectRatioPosition()
111 if (srcHeight > destHeight) srcHeight = destHeight; in getAspectRatioPosition()
113 y = (destHeight - srcHeight) / 2; in getAspectRatioPosition()
115 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
[all …]
Dqd_utils.h60 int srcHeight, hwc_rect_t& rect);
/hardware/qcom/media/msm8974/libc2dcolorconvert/
DC2DColorConverter.cpp57 …C2DColorConverter(size_t srcWidth, size_t srcHeight, size_t dstWidth, size_t dstHeight, ColorConve…
112 C2DColorConverter::C2DColorConverter(size_t srcWidth, size_t srcHeight, size_t dstWidth, size_t dst… in C2DColorConverter() argument
141 mSrcHeight = srcHeight; in C2DColorConverter()
147 mSrcSize = calcSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
149 mSrcYSize = calcYSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
154 mSrcSurfaceDef = getDummySurfaceDef(srcFormat, srcWidth, srcHeight, true); in C2DColorConverter()
161 mBlit.source_rect.height = srcHeight << 16; in C2DColorConverter()
715 extern "C" C2DColorConverterBase* createC2DColorConverter(size_t srcWidth, size_t srcHeight, size_t… in createC2DColorConverter() argument
717 …return new C2DColorConverter(srcWidth, srcHeight, dstWidth, dstHeight, srcFormat, dstFormat, flags… in createC2DColorConverter()
DC2DColorConverter.h112 typedef C2DColorConverterBase* createC2DColorConverter_t(size_t srcWidth, size_t srcHeight, size_t …
/hardware/qcom/media/msm8998/libc2dcolorconvert/
DC2DColorConverter.cpp58 …C2DColorConverter(size_t srcWidth, size_t srcHeight, size_t dstWidth, size_t dstHeight, ColorConve…
116 C2DColorConverter::C2DColorConverter(size_t srcWidth, size_t srcHeight, size_t dstWidth, size_t dst… in C2DColorConverter() argument
166 mSrcHeight = srcHeight; in C2DColorConverter()
172 mSrcSize = calcSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
174 mSrcYSize = calcYSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
179 mSrcSurfaceDef = getDummySurfaceDef(srcFormat, srcWidth, srcHeight, true); in C2DColorConverter()
186 mBlit.source_rect.height = srcHeight << 16; in C2DColorConverter()
777 extern "C" C2DColorConverterBase* createC2DColorConverter(size_t srcWidth, size_t srcHeight, size_t… in createC2DColorConverter() argument
779 …return new C2DColorConverter(srcWidth, srcHeight, dstWidth, dstHeight, srcFormat, dstFormat, flags… in createC2DColorConverter()
DC2DColorConverter.h116 typedef C2DColorConverterBase* createC2DColorConverter_t(size_t srcWidth, size_t srcHeight, size_t …
/hardware/qcom/media/msm8996/libc2dcolorconvert/
DC2DColorConverter.cpp59 …C2DColorConverter(size_t srcWidth, size_t srcHeight, size_t dstWidth, size_t dstHeight, ColorConve…
117 C2DColorConverter::C2DColorConverter(size_t srcWidth, size_t srcHeight, size_t dstWidth, size_t dst… in C2DColorConverter() argument
165 mSrcHeight = srcHeight; in C2DColorConverter()
171 mSrcSize = calcSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
173 mSrcYSize = calcYSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
178 mSrcSurfaceDef = getDummySurfaceDef(srcFormat, srcWidth, srcHeight, true); in C2DColorConverter()
185 mBlit.source_rect.height = srcHeight << 16; in C2DColorConverter()
774 extern "C" C2DColorConverterBase* createC2DColorConverter(size_t srcWidth, size_t srcHeight, size_t… in createC2DColorConverter() argument
776 …return new C2DColorConverter(srcWidth, srcHeight, dstWidth, dstHeight, srcFormat, dstFormat, flags… in createC2DColorConverter()
DC2DColorConverter.h116 typedef C2DColorConverterBase* createC2DColorConverter_t(size_t srcWidth, size_t srcHeight, size_t …
/hardware/qcom/sdm845/media/libc2dcolorconvert/
DC2DColorConverter.cpp143 bool C2DColorConverter::isPropChanged(size_t srcWidth, size_t srcHeight, size_t dstWidth, in isPropChanged() argument
149 mSrcHeight != srcHeight || in isPropChanged()
159 bool C2DColorConverter::setResolution(size_t srcWidth, size_t srcHeight, in setResolution() argument
169 mSrcHeight = srcHeight; in setResolution()
175 mSrcSize = calcSize(srcFormat, srcWidth, srcHeight); in setResolution()
177 mSrcYSize = calcYSize(srcFormat, srcWidth, srcHeight); in setResolution()
182 retval = getDummySurfaceDef(srcFormat, srcWidth, srcHeight, true); in setResolution()
190 mBlit.source_rect.height = srcHeight << 16; in setResolution()
DC2DColorConverter.h185 bool isPropChanged(size_t srcWidth, size_t srcHeight, size_t dstWidth,
189 bool setResolution(size_t srcWidth, size_t srcHeight, size_t dstWidth,
/hardware/qcom/sm8150/media/libc2dcolorconvert/
DC2DColorConverter.cpp144 bool C2DColorConverter::isPropChanged(size_t srcWidth, size_t srcHeight, size_t dstWidth, in isPropChanged() argument
150 mSrcHeight != srcHeight || in isPropChanged()
160 bool C2DColorConverter::setResolution(size_t srcWidth, size_t srcHeight, argument
170 mSrcHeight = srcHeight;
185 mSrcSize = calcSize(mSrcFormat, srcWidth, srcHeight);
187 mSrcYSize = calcYSize(mSrcFormat, srcWidth, srcHeight);
192 retval = getDummySurfaceDef(mSrcFormat, srcWidth, srcHeight, true);
200 mBlit.source_rect.height = srcHeight << 16;
DC2DColorConverter.h190 bool isPropChanged(size_t srcWidth, size_t srcHeight, size_t dstWidth,
194 bool setResolution(size_t srcWidth, size_t srcHeight, size_t dstWidth,
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_utils.cpp437 int srcHeight, hwc_rect_t& rect) { in getAspectRatioPosition() argument
440 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
441 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
443 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
444 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
445 srcHeight = destHeight; in getAspectRatioPosition()
448 srcHeight = destHeight; in getAspectRatioPosition()
451 if (srcHeight > destHeight) srcHeight = destHeight; in getAspectRatioPosition()
453 y = (destHeight - srcHeight) / 2; in getAspectRatioPosition()
455 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
[all …]
Dhwc_utils.h282 int srcHeight, hwc_rect_t& rect);
/hardware/qcom/camera/msm8998/QCamera2/HAL/test/
Dqcamera_test.h334 size_t srcHeight; member
Dqcamera_test.cpp1073 mInterpr->mViVBuff.srcHeight = (size_t)currentVideoSize.height; in dataCallbackTimestamp()
1098 for (i = 0; i < mInterpr->mViVBuff.srcHeight; i++) { in dataCallbackTimestamp()
1107 for (i = 0; i < mInterpr->mViVBuff.srcHeight / 2; i++) { in dataCallbackTimestamp()
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_utils.cpp596 int srcHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in calcExtDisplayPosition() local
598 swap(srcWidth, srcHeight); in calcExtDisplayPosition()
601 srcHeight, displayFrame); in calcExtDisplayPosition()
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_utils.cpp762 int srcHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in calcExtDisplayPosition() local
764 swap(srcWidth, srcHeight); in calcExtDisplayPosition()
767 srcHeight, displayFrame); in calcExtDisplayPosition()