Home
last modified time | relevance | path

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

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc.cpp107 int targetHeight = (pixelMap.GetHeight() * opts.fitDensity + (info.baseDensity >> 1)) / info.baseDensity; in DecodePostProc() local
109 size.height = targetHeight; in DecodePostProc()
150 int32_t targetHeight = size.height; 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()
157 float heightScale = static_cast<float>(targetHeight) / static_cast<float>(srcHeight); in CenterScale()
165 transformData.cropTop = (srcHeight - targetHeight / scale) / HALF_F; in CenterScale()
167 transformData.cropHeight = targetHeight / scale; in CenterScale()
172 imageInfo.size.height = targetHeight; in CenterScale()
199 int32_t targetHeight = dstSize.height; 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.cpp57 int32_t targetHeight; in CheckVideoResolution() local
63 (void)format.GetIntValue("height", targetHeight); in CheckVideoResolution()
64 if (data.width.minVal > targetWidth || data.width.maxVal < targetWidth || data.height.minVal > targetHeight || in CheckVideoResolution()
65 data.height.maxVal < targetHeight) { in CheckVideoResolution()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dpost_proc.h64 int32_t targetHeight);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpost_proc_test.cpp956 int32_t targetHeight = 0; in HWTEST_F() local
957 bool ret = postProc.CenterDisplay(pixelMap, srcWidth, srcHeight, targetWidth, targetHeight); in HWTEST_F()
960 targetHeight = 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 4 milliseconds