Home
last modified time | relevance | path

Searched refs:srcWidth (Results 1 – 18 of 18) sorted by relevance

/hardware/qcom/display/msm8226/libqdutils/
Dqd_utils.cpp97 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, in getAspectRatioPosition() argument
101 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
102 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
103 srcWidth = destWidth; in getAspectRatioPosition()
104 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
105 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
108 srcWidth = destWidth; in getAspectRatioPosition()
111 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
113 x = (destWidth - srcWidth) / 2; in getAspectRatioPosition()
116 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
[all …]
Dqd_utils.h51 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
/hardware/qcom/display/msm8994/libqdutils/
Dqd_utils.cpp96 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, in getAspectRatioPosition() argument
100 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
101 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
102 srcWidth = destWidth; in getAspectRatioPosition()
103 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
104 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
107 srcWidth = destWidth; in getAspectRatioPosition()
110 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
112 x = (destWidth - srcWidth) / 2; in getAspectRatioPosition()
115 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
[all …]
Dqd_utils.h59 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
/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
140 mSrcWidth = srcWidth; 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()
160 mBlit.source_rect.width = srcWidth << 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/msm8996/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
163 mSrcWidth = srcWidth; in C2DColorConverter()
170 mSrcSize = calcSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
172 mSrcYSize = calcYSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
177 mSrcSurfaceDef = getDummySurfaceDef(srcFormat, srcWidth, srcHeight, true); in C2DColorConverter()
183 mBlit.source_rect.width = srcWidth << 16; in C2DColorConverter()
771 extern "C" C2DColorConverterBase* createC2DColorConverter(size_t srcWidth, size_t srcHeight, size_t… in createC2DColorConverter() argument
773 …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/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
165 mSrcWidth = srcWidth; 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()
185 mBlit.source_rect.width = srcWidth << 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/sdm845/media/libc2dcolorconvert/
DC2DColorConverter.cpp143 bool C2DColorConverter::isPropChanged(size_t srcWidth, size_t srcHeight, size_t dstWidth, in isPropChanged() argument
148 return (mSrcWidth != srcWidth || in isPropChanged()
159 bool C2DColorConverter::setResolution(size_t srcWidth, size_t srcHeight, in setResolution() argument
168 mSrcWidth = srcWidth; 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()
189 mBlit.source_rect.width = srcWidth << 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/display/msm8084/libhwcomposer/
Dhwc_utils.cpp436 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, in getAspectRatioPosition() argument
440 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
441 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
442 srcWidth = destWidth; in getAspectRatioPosition()
443 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
444 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
447 srcWidth = destWidth; in getAspectRatioPosition()
450 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
452 x = (destWidth - srcWidth) / 2; in getAspectRatioPosition()
455 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
[all …]
Dhwc_utils.h281 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
/hardware/qcom/camera/msm8998/QCamera2/HAL/test/
Dqcamera_test.h333 size_t srcWidth; member
Dqcamera_test.cpp1072 mInterpr->mViVBuff.srcWidth = (size_t)currentVideoSize.width; in dataCallbackTimestamp()
1103 srcOffset, mInterpr->mViVBuff.srcWidth); in dataCallbackTimestamp()
1112 srcOffset, mInterpr->mViVBuff.srcWidth); in dataCallbackTimestamp()
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_utils.cpp595 int srcWidth = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in calcExtDisplayPosition() local
598 swap(srcWidth, srcHeight); in calcExtDisplayPosition()
600 getAspectRatioPosition(dstWidth, dstHeight, srcWidth, in calcExtDisplayPosition()
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_utils.cpp761 int srcWidth = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in calcExtDisplayPosition() local
764 swap(srcWidth, srcHeight); in calcExtDisplayPosition()
766 qdutils::getAspectRatioPosition(dstWidth, dstHeight, srcWidth, in calcExtDisplayPosition()