Home
last modified time | relevance | path

Searched refs:srcWidth (Results 1 - 16 of 16) sorted by relevance

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc.cpp147 int32_t srcWidth = pixelMap.GetWidth(); 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()
156 float widthScale = static_cast<float>(targetWidth) / static_cast<float>(srcWidth); in CenterScale()
164 transformData.cropLeft = (srcWidth - targetWidth / scale) / HALF_F; in CenterScale()
180 srcWidth = pixelMap.GetWidth(); in CenterScale()
182 if (srcWidth == targetWidth && srcHeight == targetHeight) { in CenterScale()
185 if (srcWidth < targetWidth || srcHeight < targetHeight) { in CenterScale()
187 "%{public}d]", srcWidth, srcHeigh 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
597 int32_t srcWidth = pixelMap.GetWidth(); ScalePixelMap() local
795 int32_t srcWidth = pixelMap.GetWidth(); CheckPixelMapSLR() local
884 int32_t srcWidth = pixelMap.GetWidth(); ScalePixelMapEx() local
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dpixel_yuv_ext_utils.cpp369 int32_t srcWidth = yuvInfo.width; 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()
382 if (converter.P010ToI010(srcY, srcWidth, srcUV, in ScaleP010()
383 srcWidth, dstY, srcWidth, dstU, GetUStride(srcWidth), dstV, in ScaleP010()
384 GetUStride(srcWidth), srcWidth, srcHeigh in ScaleP010()
433 int srcWidth = yuvInfo.width; ScaleYuv420() local
462 int srcWidth = yuvInfo.width; ScaleYuv420() local
[all...]
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/
H A Davmetadatahelper_impl.cpp444 int32_t srcWidth = pixelMap->GetWidth(); in SetPixelMapYuvInfo() local
446 YUVDataInfo yuvDataInfo = { .yWidth = srcWidth, in SetPixelMapYuvInfo()
448 .uvWidth = srcWidth / 2, in SetPixelMapYuvInfo()
450 .yStride = srcWidth, in SetPixelMapYuvInfo()
451 .uvStride = srcWidth, in SetPixelMapYuvInfo()
452 .uvOffset = srcWidth * srcHeight}; in SetPixelMapYuvInfo()
726 int32_t srcWidth = pixelMap->GetWidth(); in FetchFrameAtTime() local
729 (param.dstWidth <= srcWidth && param.dstHeight <= srcHeight) && in FetchFrameAtTime()
730 (param.dstWidth < srcWidth || param.dstHeight < srcHeight) && srcWidth > in FetchFrameAtTime()
740 int32_t srcWidth = pixelMap->GetWidth(); 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()
72 rightBottomX = rightBottomX > srcWidth ? srcWidth : rightBottomX; in CalculateCropRegion()
/foundation/multimedia/av_codec/services/engine/common/include/
H A Dcodec_utils.h39 int32_t srcWidth = 0; member
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/
H A Dffmpeg_convert.h72 int32_t srcWidth{0};
H A Dffmpeg_convert.cpp195 sws_getContext(scalePara_.srcWidth, scalePara_.srcHeight, scalePara_.srcFfFmt, scalePara_.dstWidth, in Init()
/foundation/multimedia/media_foundation/engine/include/plugin/convert/
H A Dffmpeg_convert.h67 int32_t srcWidth {0};
/foundation/multimedia/av_codec/services/services/codec/ipc/
H A Dbuffer_converter.cpp105 const int32_t srcWidth = srcRect.wStride >> 1; in ConvertYUV420P() local
117 src += srcWidth; in ConvertYUV420P()
127 src += srcWidth; in ConvertYUV420P()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_bitmap_test.cpp391 const int srcWidth = 100; in HWTEST_F() local
397 skiaBitmap.Build(srcWidth, srcHight, bitmapFormat, 0); in HWTEST_F()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpost_proc_test.cpp953 int32_t srcWidth = 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/media_foundation/engine/plugin/convert/
H A Dffmpeg_convert.cpp116 auto swsContext = sws_getContext(scalePara_.srcWidth, scalePara_.srcHeight, scalePara_.srcFfFmt, in Init()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_util.cpp313 uint32_t srcWidth = static_cast<uint32_t>(params.srcRect.GetWidth()); 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()
335 newWidth = newWidth * srcWidth / boundsWidth; in SrcRectScaleFit()
336 if (newWidth < srcWidth) { in SrcRectScaleFit()
337 float halfdw = (srcWidth - newWidth) / 2; in SrcRectScaleFit()
H A Drs_base_render_engine.cpp745 auto srcWidth = params.srcRect.GetWidth(); in DrawImage() local
747 auto sx = params.dstRect.GetWidth() / srcWidth; in DrawImage()
751 if (ROSEN_EQ(srcWidth, 0.0f) || ROSEN_EQ(srcHeight, 0.0f)) { in DrawImage()
/foundation/multimedia/av_codec/services/engine/common/
H A Dcodec_utils.cpp289 sws_getContext(scalePara_.srcWidth, scalePara_.srcHeight, scalePara_.srcFfFmt, scalePara_.dstWidth, in Init()

Completed in 29 milliseconds