Home
last modified time | relevance | path

Searched refs:targetWidth (Results 1 - 4 of 4) sorted by relevance

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc.cpp106 int targetWidth = (pixelMap.GetWidth() * opts.fitDensity + (info.baseDensity >> 1)) / info.baseDensity; in DecodePostProc() local
110 size.width = targetWidth; in DecodePostProc()
149 int32_t targetWidth = size.width; in CenterScale() local
151 if (targetWidth <= 0 || targetHeight <= 0 || srcWidth <= 0 || srcHeight <= 0) { in CenterScale()
152 IMAGE_LOGE("[PostProc]params invalid, targetWidth:%{public}d, targetHeight:%{public}d, " in CenterScale()
153 "srcWidth:%{public}d, srcHeight:%{public}d", targetWidth, targetHeight, srcWidth, srcHeight); in CenterScale()
156 float widthScale = static_cast<float>(targetWidth) / static_cast<float>(srcWidth); in CenterScale()
164 transformData.cropLeft = (srcWidth - targetWidth / scale) / HALF_F; in CenterScale()
166 transformData.cropWidth = targetWidth / scale; in CenterScale()
171 imageInfo.size.width = targetWidth; in CenterScale()
198 int32_t targetWidth = dstSize.width; CopyPixels() local
227 CenterDisplay(PixelMap &pixelMap, int32_t srcWidth, int32_t srcHeight, int32_t targetWidth, int32_t targetHeight) CenterDisplay() argument
[all...]
/foundation/multimedia/av_codec/services/engine/codeclist/
H A Dcodeclist_core.cpp56 int32_t targetWidth; in CheckVideoResolution() local
62 (void)format.GetIntValue("width", targetWidth); in CheckVideoResolution()
64 if (data.width.minVal > targetWidth || data.width.maxVal < targetWidth || data.height.minVal > targetHeight || in CheckVideoResolution()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dpost_proc.h63 bool CenterDisplay(PixelMap &pixelMap, int32_t srcWidth, int32_t srcHeight, int32_t targetWidth,
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpost_proc_test.cpp955 int32_t targetWidth = 0; in HWTEST_F() local
957 bool ret = postProc.CenterDisplay(pixelMap, srcWidth, srcHeight, targetWidth, targetHeight); in HWTEST_F()
959 targetWidth = 1; in HWTEST_F()
963 ret = postProc.CenterDisplay(pixelMap, srcWidth, srcHeight, targetWidth, targetHeight); in HWTEST_F()
966 ret = postProc.CenterDisplay(pixelMap, srcWidth, srcHeight, targetWidth, targetHeight); in HWTEST_F()
969 ret = postProc.CenterDisplay(pixelMap, srcWidth, srcHeight, targetWidth, targetHeight); in HWTEST_F()

Completed in 6 milliseconds