/hardware/qcom/display/msm8226/libqdutils/ |
D | qd_utils.cpp | 97 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 …]
|
D | qd_utils.h | 51 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
|
/hardware/qcom/display/msm8994/libqdutils/ |
D | qd_utils.cpp | 96 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 …]
|
D | qd_utils.h | 59 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
|
/hardware/qcom/media/msm8974/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 57 …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()
|
D | C2DColorConverter.h | 112 typedef C2DColorConverterBase* createC2DColorConverter_t(size_t srcWidth, size_t srcHeight, size_t …
|
/hardware/qcom/media/msm8998/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 58 …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()
|
D | C2DColorConverter.h | 116 typedef C2DColorConverterBase* createC2DColorConverter_t(size_t srcWidth, size_t srcHeight, size_t …
|
/hardware/qcom/media/msm8996/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 59 …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 164 mSrcWidth = srcWidth; 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() 184 mBlit.source_rect.width = srcWidth << 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()
|
D | C2DColorConverter.h | 116 typedef C2DColorConverterBase* createC2DColorConverter_t(size_t srcWidth, size_t srcHeight, size_t …
|
/hardware/qcom/sdm845/media/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 143 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()
|
D | C2DColorConverter.h | 185 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/ |
D | C2DColorConverter.cpp | 144 bool C2DColorConverter::isPropChanged(size_t srcWidth, size_t srcHeight, size_t dstWidth, in isPropChanged() argument 149 return (mSrcWidth != srcWidth || in isPropChanged() 160 bool C2DColorConverter::setResolution(size_t srcWidth, size_t srcHeight, argument 169 mSrcWidth = srcWidth; 185 mSrcSize = calcSize(mSrcFormat, srcWidth, srcHeight); 187 mSrcYSize = calcYSize(mSrcFormat, srcWidth, srcHeight); 192 retval = getDummySurfaceDef(mSrcFormat, srcWidth, srcHeight, true); 199 mBlit.source_rect.width = srcWidth << 16;
|
D | C2DColorConverter.h | 190 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/ |
D | hwc_utils.cpp | 436 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 …]
|
D | hwc_utils.h | 281 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
|
/hardware/qcom/camera/msm8998/QCamera2/HAL/test/ |
D | qcamera_test.h | 333 size_t srcWidth; member
|
D | qcamera_test.cpp | 1072 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/ |
D | hwc_utils.cpp | 595 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/ |
D | hwc_utils.cpp | 761 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()
|