/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/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/sm7250/media/libc2dcolorconvert/ |
D | C2DColorConverter.h | 192 bool isPropChanged(size_t srcWidth, size_t srcHeight, size_t dstWidth, 196 bool setResolution(size_t srcWidth, size_t srcHeight, size_t dstWidth,
|
D | C2DColorConverter.cpp | 152 bool C2DColorConverter::isPropChanged(size_t srcWidth, size_t srcHeight, size_t dstWidth, in isPropChanged() argument 157 return (mSrcWidth != srcWidth || in isPropChanged() 168 bool C2DColorConverter::setResolution(size_t srcWidth, size_t srcHeight, in setResolution() argument 180 mSrcWidth = srcWidth; in setResolution() 205 mBlit.source_rect.width = srcWidth << 16; in setResolution()
|
/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/google/gfxstream/host/apigen-codec-common/X11/extensions/ |
D | shmproto.h | 102 CARD16 srcWidth B16;
|
/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/google/graphics/common/libhwc2.1/libresource/ |
D | ExynosResourceManager.cpp | 1180 const uint32_t srcWidth = isPerpendicular ? src_img.h : src_img.w; in getCandidateScalingM2mMPPOutImages() local 1183 const bool scaleUp = (srcWidth < dst_img.w && srcHeight < dst_img.h); in getCandidateScalingM2mMPPOutImages() 1184 const bool scaleDown = (srcWidth > dst_img.w && srcHeight > dst_img.h); in getCandidateScalingM2mMPPOutImages() 1217 const auto reqRatio = max(float(dst_img.w) / float(srcWidth * otfMppRatio), in getCandidateScalingM2mMPPOutImages() 1236 const float otfSrcWidth = float(srcWidth / m2mMppRatio); in getCandidateScalingM2mMPPOutImages() 1264 dst_scale_img.w = scaleDown ? dst_img.w : srcWidth; in getCandidateScalingM2mMPPOutImages() 1279 if (dst_scale_img.w * m2mMppRatio < srcWidth) { in getCandidateScalingM2mMPPOutImages() 1280 dst_scale_img.w = uint32_t(ceilf(float(srcWidth) / float(m2mMppRatio))); in getCandidateScalingM2mMPPOutImages()
|
/hardware/google/graphics/common/libhwc2.1/libdevice/ |
D | ExynosLayer.cpp | 1005 const uint32_t srcWidth = isPerpendicular ? src_img.h : src_img.w; in checkBtsCap() local 1007 const bool scaleDown = (srcWidth > dst_img.w || srcHeight > dst_img.h); in checkBtsCap()
|
/hardware/google/graphics/common/libhwc2.1/libmaindisplay/ |
D | ExynosPrimaryDisplay.cpp | 1647 float srcWidth = mLayers[i]->mSourceCrop.right - mLayers[i]->mSourceCrop.left; in checkBtsReassignResource() local 1649 float resolution = srcWidth * srcHeight * refreshRate / 1000; in checkBtsReassignResource()
|
/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/google/gfxstream/host/apigen-codec-common/GL/ |
D | glxext.h | 851 int srcXOrigin, srcYOrigin, srcWidth, srcHeight; member
|
/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()
|