Home
last modified time | relevance | path

Searched refs:srcHeight (Results 1 - 15 of 15) sorted by relevance

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc.cpp148 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 Dpixel_yuv_ext_utils.cpp370 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 Davmetadatahelper_impl.cpp445 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 Dpost_proc.h63 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 Dcrop_efilter.cpp48 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 Dffmpeg_convert.cpp116 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 Dcodec_utils.h40 int32_t srcHeight = 0; member
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/
H A Dffmpeg_convert.h73 int32_t srcHeight{0};
H A Dffmpeg_convert.cpp195 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 Dffmpeg_convert.h68 int32_t srcHeight {0};
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpost_proc_test.cpp954 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 Dcodec_utils.cpp289 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 Drs_uni_render_util.cpp314 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 Drs_base_render_engine.cpp746 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 Dscene_util.cpp422 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()

Completed in 15 milliseconds