Home
last modified time | relevance | path

Searched refs:srcWidth (Results 1 – 24 of 24) 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/display/msm8909/libqdutils/
Dqd_utils.cpp110 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, in getAspectRatioPosition() argument
114 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
115 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
116 srcWidth = destWidth; in getAspectRatioPosition()
117 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
118 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
121 srcWidth = destWidth; in getAspectRatioPosition()
124 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
126 x = (destWidth - srcWidth) / 2; in getAspectRatioPosition()
129 __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()
708 extern "C" C2DColorConverterBase* createC2DColorConverter(size_t srcWidth, size_t srcHeight, size_t… in createC2DColorConverter() argument
710 …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()
770 extern "C" C2DColorConverterBase* createC2DColorConverter(size_t srcWidth, size_t srcHeight, size_t… in createC2DColorConverter() argument
772 …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.cpp57 …C2DColorConverter(size_t srcWidth, size_t srcHeight, size_t dstWidth, size_t dstHeight, ColorConve…
115 C2DColorConverter::C2DColorConverter(size_t srcWidth, size_t srcHeight, size_t dstWidth, size_t dst… in C2DColorConverter() argument
162 mSrcWidth = srcWidth; in C2DColorConverter()
169 mSrcSize = calcSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
171 mSrcYSize = calcYSize(srcFormat, srcWidth, srcHeight); in C2DColorConverter()
176 mSrcSurfaceDef = getDummySurfaceDef(srcFormat, srcWidth, srcHeight, true); in C2DColorConverter()
182 mBlit.source_rect.width = srcWidth << 16; in C2DColorConverter()
763 extern "C" C2DColorConverterBase* createC2DColorConverter(size_t srcWidth, size_t srcHeight, size_t… in createC2DColorConverter() argument
765 …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/intel/img/hwcomposer/merrifield/ips/anniedale/
DAnnOverlayPlane.cpp358 uint32_t srcWidth = mapper.getCrop().w; in scalingSetup() local
367 srcWidth, srcHeight, in scalingSetup()
376 srcHeight = srcWidth; in scalingSetup()
377 srcWidth = tmp; in scalingSetup()
381 if (srcWidth == dstWidth && srcHeight == dstHeight) { in scalingSetup()
385 xscaleFract = ((srcWidth - 1) << 12) / dstWidth; in scalingSetup()
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/anniedale/
DAnnOverlayPlane.cpp413 uint32_t srcWidth = mapper.getCrop().w; in scalingSetup() local
423 srcWidth, srcHeight, in scalingSetup()
440 srcHeight = srcWidth; in scalingSetup()
441 srcWidth = tmp; in scalingSetup()
449 if (srcWidth == dstWidth && srcHeight == dstHeight) { in scalingSetup()
453 xscaleFract = ((srcWidth - 1) << 12) / dstWidth; in scalingSetup()
/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/intel/common/utils/ISV/include/
Disv_worker.h71 uint32_t srcWidth; member
/hardware/intel/common/utils/ISV/base/
Disv_worker.cpp341 mFilterParam.srcWidth = filterParam->srcWidth; in configFilters()
771 src_region.width = mFilterParam.srcWidth; in process()
931 …ret = writeNV12(mFilterParam.srcWidth, mFilterParam.srcHeight, data_ptr, image.pitches[0], image.p… in dumpYUVFrameData()
Disv_processor.cpp72 mFilterParam.srcWidth = mFilterParam.dstWidth = width; in ISVProcessor()
103 if (STATUS_OK != mISVWorker->init(mFilterParam.srcWidth, mFilterParam.srcHeight)) in start()
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/
DOverlayPlaneBase.cpp1011 uint32_t srcWidth = mapper.getCrop().w; in scalingSetup() local
1017 srcWidth, srcHeight, in scalingSetup()
1021 if (srcWidth == dstWidth && srcHeight == dstHeight) { in scalingSetup()
1025 xscaleFract = ((srcWidth - 1) << 12) / dstWidth; in scalingSetup()
/hardware/intel/img/hwcomposer/merrifield/ips/common/
DOverlayPlaneBase.cpp1031 uint32_t srcWidth = mapper.getCrop().w; in scalingSetup() local
1040 srcWidth, srcHeight, in scalingSetup()
1044 if (srcWidth == dstWidth && srcHeight == dstHeight) { in scalingSetup()
1048 xscaleFract = ((srcWidth - 1) << 12) / dstWidth; in scalingSetup()
/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/msm8909/libhwcomposer/
Dhwc_utils.cpp828 int srcWidth = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in calcExtDisplayPosition() local
831 swap(srcWidth, srcHeight); in calcExtDisplayPosition()
833 qdutils::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()