/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc.cpp | 148 int32_t srcHeight = pixelMap.GetHeight(); in CenterScale() local 151 if (targetWidth <= 0 || targetHeight <= 0 || srcWidth <= 0 || srcHeight <= 0) { 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() 181 srcHeight = pixelMap.GetHeight(); in CenterScale() 182 if (srcWidth == targetWidth && srcHeight == targetHeight) { in CenterScale() 185 if (srcWidth < targetWidth || srcHeight < targetHeight) { in CenterScale() 187 "%{public}d]", srcWidth, srcHeight, targetWidt in CenterScale() 194 CopyPixels(PixelMap& pixelMap, uint8_t* dstPixels, const Size& dstSize, const int32_t srcWidth, const int32_t srcHeight, int32_t srcRowStride, int32_t targetRowStride) CopyPixels() argument 227 CenterDisplay(PixelMap &pixelMap, int32_t srcWidth, int32_t srcHeight, int32_t targetWidth, int32_t targetHeight) CenterDisplay() argument 598 int32_t srcHeight = pixelMap.GetHeight(); ScalePixelMap() local 796 int32_t srcHeight = pixelMap.GetHeight(); CheckPixelMapSLR() local 885 int32_t srcHeight = pixelMap.GetHeight(); ScalePixelMapEx() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | pixel_yuv_ext_utils.cpp | 370 int32_t srcHeight = yuvInfo.height; in ScaleP010() local 374 std::unique_ptr<uint16_t[]> dstPixels = std::make_unique<uint16_t[]>(GetImageSize(srcWidth, srcHeight)); in ScaleP010() 380 uint16_t* dstU = dstPixels.get() + GetYSize(srcWidth, srcHeight); in ScaleP010() 381 uint16_t* dstV = dstPixels.get() + GetVOffset(srcWidth, srcHeight); in ScaleP010() 384 GetUStride(srcWidth), srcWidth, srcHeight) == -1) { in ScaleP010() 397 GetUStride(srcWidth), srcWidth, srcHeight, scaleY, dst_width, scaleU, in ScaleP010() 434 int srcHeight = yuvInfo.height; in ScaleYuv420() local 447 converter.NV12Scale(srcY, srcYStride, srcUV, srcUVStride, srcWidth, srcHeight, in ScaleYuv420() 463 int srcHeight = yuvInfo.height; in ScaleYuv420() local 471 PixelSize pixelSize = {srcWidth, srcHeight, dst_widt in ScaleYuv420() [all...] |
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/ |
H A D | avmetadatahelper_impl.cpp | 445 int32_t srcHeight = pixelMap->GetHeight(); in SetPixelMapYuvInfo() local 447 .yHeight = srcHeight, in SetPixelMapYuvInfo() 449 .uvHeight = srcHeight / 2, in SetPixelMapYuvInfo() 452 .uvOffset = srcWidth * srcHeight}; in SetPixelMapYuvInfo() 727 int32_t srcHeight = pixelMap->GetHeight(); in FetchFrameAtTime() local 729 (param.dstWidth <= srcWidth && param.dstHeight <= srcHeight) && in FetchFrameAtTime() 730 (param.dstWidth < srcWidth || param.dstHeight < srcHeight) && srcWidth > 0 && srcHeight > 0; in FetchFrameAtTime() 732 pixelMap->scale((1.0f * param.dstWidth) / srcWidth, (1.0f * param.dstHeight) / srcHeight); in FetchFrameAtTime() 741 int32_t srcHeight in ScalePixelMap() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/ |
H A D | post_proc.h | 63 bool CenterDisplay(PixelMap &pixelMap, int32_t srcWidth, int32_t srcHeight, int32_t targetWidth, 68 const int32_t srcWidth, const int32_t srcHeight,
|
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/crop/ |
H A D | crop_efilter.cpp | 48 void CalculateCropRegion(int32_t srcWidth, int32_t srcHeight, std::map<std::string, Plugin::Any> &values, in CalculateCropRegion() argument 51 AreaInfo areaInfo = { 0, 0, srcWidth, srcHeight }; in CalculateCropRegion() 73 rightBottomY = rightBottomY > srcHeight ? srcHeight : rightBottomY; in CalculateCropRegion()
|
/foundation/multimedia/media_foundation/engine/plugin/convert/ |
H A D | ffmpeg_convert.cpp | 116 auto swsContext = sws_getContext(scalePara_.srcWidth, scalePara_.srcHeight, scalePara_.srcFfFmt, in Init() 143 auto res = sws_scale(swsCtx_.get(), srcData, srcLineSize, 0, scalePara_.srcHeight, in Convert()
|
/foundation/multimedia/av_codec/services/engine/common/include/ |
H A D | codec_utils.h | 40 int32_t srcHeight = 0; member
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/ |
H A D | ffmpeg_convert.h | 73 int32_t srcHeight{0};
|
H A D | ffmpeg_convert.cpp | 195 sws_getContext(scalePara_.srcWidth, scalePara_.srcHeight, scalePara_.srcFfFmt, scalePara_.dstWidth, in Init() 221 auto res = sws_scale(swsCtx_.get(), srcData, srcLineSize, 0, scalePara_.srcHeight, dstData, dstLineSize); in Convert()
|
/foundation/multimedia/media_foundation/engine/include/plugin/convert/ |
H A D | ffmpeg_convert.h | 68 int32_t srcHeight {0};
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | post_proc_test.cpp | 954 int32_t srcHeight = 0; in HWTEST_F() local 957 bool ret = postProc.CenterDisplay(pixelMap, srcWidth, srcHeight, targetWidth, targetHeight); 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()
|
/foundation/multimedia/av_codec/services/engine/common/ |
H A D | codec_utils.cpp | 289 sws_getContext(scalePara_.srcWidth, scalePara_.srcHeight, scalePara_.srcFfFmt, scalePara_.dstWidth, in Init() 314 auto res = sws_scale(swsCtx_.get(), srcData, srcLineSize, 0, scalePara_.srcHeight, dstData, dstLineSize); in Convert()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_uni_render_util.cpp | 314 uint32_t srcHeight = static_cast<uint32_t>(params.srcRect.GetHeight()); in SrcRectScaleFit() local 320 if (boundsWidth == 0 || boundsHeight == 0 || srcWidth == 0 || srcHeight == 0) { in SrcRectScaleFit() 324 if (srcWidth * boundsHeight > srcHeight * boundsWidth) { in SrcRectScaleFit() 326 newHeight = srcHeight * newWidth / srcWidth; in SrcRectScaleFit() 327 } else if (srcWidth * boundsHeight < srcHeight * boundsWidth) { in SrcRectScaleFit() 329 newWidth = newHeight * srcWidth / srcHeight; in SrcRectScaleFit() 334 newHeight = newHeight * srcHeight / boundsHeight; in SrcRectScaleFit() 342 } else if (newHeight < srcHeight) { in SrcRectScaleFit() 343 float halfdh = (srcHeight - newHeight) / 2; in SrcRectScaleFit()
|
H A D | rs_base_render_engine.cpp | 746 auto srcHeight = params.srcRect.GetHeight(); in DrawImage() local 748 auto sy = params.dstRect.GetHeight() / srcHeight; in DrawImage() 751 if (ROSEN_EQ(srcWidth, 0.0f) || ROSEN_EQ(srcHeight, 0.0f)) { in DrawImage()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | scene_util.cpp | 422 const float srcHeight = getMeshHeight(*meshManager, srcMeshEntity); in CalculateScalingFactor() local 423 if ((dstHeight == 0.f) || (srcHeight == 0.f)) { in CalculateScalingFactor() 430 const auto srcSize = srcHeight * srcMeshScale.y; in CalculateScalingFactor()
|