/foundation/arkui/ace_engine/frameworks/core/image/apng/ |
H A D | apng_image_object.cpp | 31 int32_t dstWidth = -1; in UploadToGpuForRender() local 34 dstWidth = static_cast<int32_t>(imageSize.Width() + SizeOffset); in UploadToGpuForRender() 43 dstWidth, in UploadToGpuForRender() 48 int32_t dstWidth = static_cast<int32_t>(imageSize.Width() + SizeOffset); in UploadToGpuForRender() local 50 animatedPlayer_->SetTargetSize(dstWidth, dstHeight); in UploadToGpuForRender()
|
H A D | apng_image_player.cpp | 33 int32_t dstWidth, in APngImagePlayer() 36 apngDecoder_(decoder), dstWidth_(dstWidth), dstHeight_(dstHeight) in APngImagePlayer() 230 [weak = AceType::WeakClaim(this), index, dstWidth = dstWidth_, dstHeight = dstHeight_, taskExecutor] { in RenderFrame() 243 if (dstWidth > 0 && dstHeight > 0) { in RenderFrame() 244 skImage = ImageProvider::ApplySizeToSkImage(skImage, dstWidth, dstHeight); in RenderFrame() 253 if (dstWidth > 0 && dstHeight > 0) { in RenderFrame() 254 dImage = ImageProvider::ApplySizeToDrawingImage(dImage, dstWidth, dstHeight); in RenderFrame() 28 APngImagePlayer( ImageSourceInfo source, UploadSuccessCallback successCallback, const WeakPtr<PipelineBase>& weakContext, const RefPtr<PNGImageDecoder>& decoder, int32_t dstWidth, int32_t dstHeight) APngImagePlayer() argument
|
H A D | apng_image_player.h | 103 int32_t dstWidth = -1,
|
/foundation/arkui/ace_engine/frameworks/core/image/ |
H A D | image_object_animated.cpp | 114 int32_t dstWidth = -1; in UploadToGpuForRender() local 117 dstWidth = static_cast<int32_t>(imageSize.Width() + SizeOffset); in UploadToGpuForRender() 125 dstWidth, in UploadToGpuForRender() 130 int32_t dstWidth = static_cast<int32_t>(imageSize.Width() + SizeOffset); in UploadToGpuForRender() local 132 animatedPlayer_->SetTargetSize(dstWidth, dstHeight); in UploadToGpuForRender()
|
H A D | animated_image_player.cpp | 49 [weak = AceType::WeakClaim(this), index, dstWidth = dstWidth_, dstHeight = dstHeight_, taskExecutor] { in RenderFrame() 58 if (dstWidth > 0 && dstHeight > 0) { in RenderFrame() 59 skImage = ImageProvider::ApplySizeToSkImage(skImage, dstWidth, dstHeight); in RenderFrame() 68 if (dstWidth > 0 && dstHeight > 0) { in RenderFrame() 69 dImage = ImageProvider::ApplySizeToDrawingImage(dImage, dstWidth, dstHeight); in RenderFrame()
|
H A D | image_provider.cpp | 527 int32_t dstWidth = static_cast<int32_t>(imageSize.Width() + 0.5); local 533 if (rawImage->width() > dstWidth) { 536 dstWidth = rawImage->width(); 549 rawImage, dstWidth, dstHeight, ImageObject::GenerateCacheKey(ImageSourceInfo(src), imageSize)); 559 int32_t dstWidth = static_cast<int32_t>(imageSize.Width() + 0.5); local 565 if (rawImage->GetWidth() > dstWidth) { 568 dstWidth = rawImage->GetWidth(); 581 rawImage, dstWidth, dstHeight, ImageObject::GenerateCacheKey(ImageSourceInfo(src), imageSize)); 587 const sk_sp<SkImage>& rawImage, int32_t dstWidth, int32_t dstHeight, const std::string& srcKey) 591 SkImageInfo::Make(dstWidth, dstHeigh 586 ApplySizeToSkImage( const sk_sp<SkImage>& rawImage, int32_t dstWidth, int32_t dstHeight, const std::string& srcKey) global() argument 637 ApplySizeToDrawingImage( const std::shared_ptr<RSImage>& rawRSImage, int32_t dstWidth, int32_t dstHeight, const std::string& srcKey) global() argument [all...] |
H A D | animated_image_player.h | 37 const WeakPtr<PipelineBase>& weakContext, std::unique_ptr<SkCodec> codec, int32_t dstWidth = -1, in AnimatedImagePlayer() 41 frameInfos_(codec_->getFrameInfo()), dstWidth_(dstWidth), dstHeight_(dstHeight) in AnimatedImagePlayer()
|
H A D | image_provider.h | 109 const sk_sp<SkImage>& rawImage, int32_t dstWidth, int32_t dstHeight, const std::string& srcKey = std::string()); 117 const std::shared_ptr<RSImage>& rawRSImage, int32_t dstWidth, int32_t dstHeight,
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | pixel_yuv_ext.cpp | 214 int32_t dstWidth = imageInfo_.size.width; in rotate() local 216 if (!YuvRotateConvert(imageInfo_.size, degrees, dstWidth, dstHeight, rotateNum)) { in rotate() 221 IMAGE_LOGD("PixelYuvExt::rotate dstWidth=%{public}d dstHeight=%{public}d", dstWidth, dstHeight); in rotate() 223 auto m = CreateMemory(imageInfo_.pixelFormat, "rotate ImageData", dstWidth, dstHeight, dstStrides); in rotate() 231 Size dstSize = {dstWidth, dstHeight}; in rotate() 240 UpdateYUVDataInfo(imageInfo_.pixelFormat, dstWidth, dstHeight, dstStrides) in rotate() 325 int32_t dstWidth = dst.info.width(); in ColorSpaceBGRAToYuv() local 329 uint32_t pictureSize = GetImageSize(dstWidth, dstHeight, format); in ColorSpaceBGRAToYuv() 331 if (!PixelYuvExtUtils::BGRAToYuv420(bgraData, data_, dstWidth, dstHeigh in ColorSpaceBGRAToYuv() [all...] |
H A D | pixel_yuv.cpp | 191 bool PixelYuv::YuvRotateConvert(Size &size, int32_t degrees, int32_t &dstWidth, int32_t &dstHeight, in YuvRotateConvert() argument 196 dstWidth = size.height; in YuvRotateConvert() 204 dstWidth = size.height; in YuvRotateConvert() 244 std::unique_ptr<AbsMemory> PixelYuv::CreateMemory(PixelFormat pixelFormat, std::string memoryTag, int32_t dstWidth, in CreateMemory() argument 247 uint32_t pictureSize = GetImageSize(dstWidth, dstHeight, pixelFormat); in CreateMemory() 248 int32_t dst_yStride = dstWidth; in CreateMemory() 249 int32_t dst_uvStride = (dstWidth + 1) / NUM_2 * NUM_2; in CreateMemory() 254 MemoryData memoryData = {nullptr, pictureSize, memoryTag.c_str(), {dstWidth, dstHeight}, pixelFormat}; in CreateMemory() 294 int32_t dstWidth = imageInfo_.size.width; in rotate() local 296 if (!YuvRotateConvert(imageInfo_.size, degrees, dstWidth, dstHeigh in rotate() 926 int32_t dstWidth = dst.info.width(); ColorSpaceBGRAToYuv() local [all...] |
/foundation/multimedia/player_framework/services/include/ |
H A D | i_avmetadatahelper_service.h | 56 int32_t dstWidth = -1; member 62 return dstWidth == other.dstWidth && dstHeight == other.dstHeight && colorFormat == other.colorFormat; in operator ==()
|
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/ |
H A D | avmetadatahelper_impl.cpp | 707 config.dstWidth = param.dstWidth; in FetchFrameAtTime() 728 bool needScale = (param.dstWidth > 0 && param.dstHeight > 0) && in FetchFrameAtTime() 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() 742 int32_t dstWidth = info.rotation % NUM_180 == 0 ? param.dstWidth : param.dstHeight; in ScalePixelMap() local 743 int32_t dstHeight = info.rotation % NUM_180 == 0 ? param.dstHeight : param.dstWidth; in ScalePixelMap() 744 bool needScale = (dstWidth > in ScalePixelMap() [all...] |
/foundation/multimedia/av_codec/services/services/codec/ipc/ |
H A D | buffer_converter.cpp | 104 const int32_t dstWidth = dstRect.wStride >> 1; in ConvertYUV420P() local 114 ret = memcpy_s(dst, dstWidth, src, rect.wStride); in ConvertYUV420P() 116 dst += dstWidth; in ConvertYUV420P() 124 ret = memcpy_s(dst, dstWidth, src, rect.wStride); in ConvertYUV420P() 126 dst += dstWidth; in ConvertYUV420P()
|
/foundation/multimedia/image_framework/interfaces/innerkits/include/ |
H A D | pixel_yuv.h | 73 bool YuvRotateConvert(Size &size, int32_t degrees, int32_t &dstWidth, int32_t &dstHeight, 82 int32_t dstWidth, int32_t dstHeight, YUVStrideInfo &dstStrides);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_uni_render_composer_adapter.cpp | 1023 uint32_t dstWidth = static_cast<uint32_t>(dstRect.w); in LayerScaleDown() local 1032 std::swap(dstWidth, dstHeight); in LayerScaleDown() 1036 uint32_t newHeightDstWidth = newHeight * dstWidth; in LayerScaleDown() 1038 " newHeightDstWidth:%{public}d newWidth:%{public}d newHeight:%{public}d dstWidth:%{public}d" in LayerScaleDown() 1039 " dstHeight:%{public}d", newWidthDstHeight, newHeightDstWidth, newWidth, newHeight, dstWidth, dstHeight); in LayerScaleDown() 1042 newWidth = dstWidth * newHeight / dstHeight; in LayerScaleDown() 1045 newHeight = dstHeight * newWidth / dstWidth; in LayerScaleDown() 1091 uint32_t dstWidth = static_cast<uint32_t>(dstRect.w); in LayerScaleDown() local 1100 std::swap(dstWidth, dstHeight); in LayerScaleDown() 1104 uint32_t newHeightDstWidth = newHeight * dstWidth; in LayerScaleDown() 1164 uint32_t dstWidth = static_cast<uint32_t>(dstRect.w); LayerScaleFit() local [all...] |
H A D | rs_uni_render_util.cpp | 1626 uint32_t dstWidth = static_cast<uint32_t>(dstRect.width_); in LayerScaleDown() local 1628 if (newWidth == 0 || newHeight == 0 || dstWidth == 0 || dstHeight == 0) { in LayerScaleDown() 1638 std::swap(dstWidth, dstHeight); in LayerScaleDown() 1642 uint32_t newHeightDstWidth = newHeight * dstWidth; in LayerScaleDown() 1646 newWidth = dstWidth * newHeight / dstHeight; in LayerScaleDown() 1649 newHeight = dstHeight * newWidth / dstWidth; in LayerScaleDown() 1695 uint32_t dstWidth = static_cast<uint32_t>(dstRect.width_); in LayerScaleFit() local 1698 if (newWidth == 0 || newHeight == 0 || dstWidth == 0 || dstHeight == 0) { in LayerScaleFit() 1703 uint32_t newHeightDstWidth = newHeight * dstWidth; in LayerScaleFit() 1706 newHeight = newHeight * dstWidth / newWidt in LayerScaleFit() [all...] |
/foundation/multimedia/media_foundation/engine/plugin/convert/ |
H A D | ffmpeg_convert.cpp | 117 scalePara_.dstWidth, scalePara_.dstHeight, scalePara_.dstFfFmt, in Init() 125 auto ret = av_image_alloc(dstData, dstLineSize, scalePara_.dstWidth, scalePara_.dstHeight, in Init()
|
/foundation/multimedia/av_codec/services/engine/common/include/ |
H A D | codec_utils.h | 42 int32_t dstWidth = 0; member
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/ |
H A D | ffmpeg_convert.h | 75 int32_t dstWidth{0};
|
H A D | ffmpeg_convert.cpp | 195 sws_getContext(scalePara_.srcWidth, scalePara_.srcHeight, scalePara_.srcFfFmt, scalePara_.dstWidth, in Init() 203 auto ret = av_image_alloc(dstData, dstLineSize, scalePara_.dstWidth, scalePara_.dstHeight, scalePara_.dstFfFmt, in Init()
|
/foundation/multimedia/media_foundation/engine/include/plugin/convert/ |
H A D | ffmpeg_convert.h | 70 int32_t dstWidth {0};
|
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/crop/ |
H A D | crop_efilter.cpp | 90 int32_t dstWidth = static_cast<int32_t>(dst->bufferInfo_->width_); in Crop() local 94 int32_t pixelCount = cropWidth > dstWidth ? dstWidth : cropWidth; in Crop()
|
/foundation/multimedia/player_framework/interfaces/inner_api/native/ |
H A D | avmetadatahelper.h | 317 int32_t dstWidth = -1; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/adapter/ |
H A D | image_decoder.cpp | 210 int32_t dstWidth = std::lround(desiredSize_.Width()); in QueryCompressedCache() local 212 canvasImage->SetCompressData(stripped, dstWidth, dstHeight); in QueryCompressedCache()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | pixel_yuv_ext_utils.cpp | 163 int dstWidth = size.dstW; in NV12Rotate() local 168 dstY, dstYStride, dstUV, dstUVStride, dstWidth, dstHeight) == -1) { in NV12Rotate() 222 int32_t dstWidth = dstSize.width; in YuvRotate() local 224 PixelSize pixelSize = {info.imageSize.width, info.imageSize.height, dstWidth, dstHeight}; in YuvRotate()
|