Home
last modified time | relevance | path

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

12

/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/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/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
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()
DC2DColorConverter.h116 typedef C2DColorConverterBase* createC2DColorConverter_t(size_t srcWidth, size_t srcHeight, size_t …
/hardware/qcom/sm8150/media/libc2dcolorconvert/
DC2DColorConverter.cpp144 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;
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/sm7250/media/libc2dcolorconvert/
DC2DColorConverter.h192 bool isPropChanged(size_t srcWidth, size_t srcHeight, size_t dstWidth,
196 bool setResolution(size_t srcWidth, size_t srcHeight, size_t dstWidth,
DC2DColorConverter.cpp152 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/
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/google/gfxstream/host/apigen-codec-common/X11/extensions/
Dshmproto.h102 CARD16 srcWidth B16;
/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/google/graphics/common/libhwc2.1/libresource/
DExynosResourceManager.cpp1180 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/
DExynosLayer.cpp1005 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/
DExynosPrimaryDisplay.cpp1647 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/
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/google/gfxstream/host/apigen-codec-common/GL/
Dglxext.h851 int srcXOrigin, srcYOrigin, srcWidth, srcHeight; member
/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()

12