Home
last modified time | relevance | path

Searched refs:yuvInfo (Results 1 - 19 of 19) sorted by relevance

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dpixel_yuv_ext_utils.cpp262 YuvImageInfo &yuvInfo, uint32_t dstYStride, uint32_t dstYHeight, uint32_t dstYWidth) in ScaleUVPlane()
264 uint32_t srcUWidth = static_cast<uint32_t>(GetUStride(yuvInfo.width)); in ScaleUVPlane()
265 uint32_t srcUHeight = static_cast<uint32_t>(GetUVHeight(yuvInfo.height)); in ScaleUVPlane()
273 const uint8_t *srcUV = src + yuvInfo.yuvDataInfo.uvOffset; in ScaleUVPlane()
274 uint32_t uvStride = yuvInfo.yuvDataInfo.uvStride; in ScaleUVPlane()
276 if (yuvInfo.yuvFormat == PixelFormat::NV12) { in ScaleUVPlane()
280 } else if (yuvInfo.yuvFormat == PixelFormat::NV21) { in ScaleUVPlane()
289 if (yuvInfo.yuvFormat == PixelFormat::NV12) { in ScaleUVPlane()
292 } else if (yuvInfo.yuvFormat == PixelFormat::NV21) { in ScaleUVPlane()
311 if (yuvInfo in ScaleUVPlane()
261 ScaleUVPlane(const uint8_t *src, uint8_t*dst, OpenSourceLibyuv::FilterMode filterMode, YuvImageInfo &yuvInfo, uint32_t dstYStride, uint32_t dstYHeight, uint32_t dstYWidth) ScaleUVPlane() argument
351 ScaleP010(YuvPixels yuvPixels, OpenSourceLibyuv::ImageYuvConverter &converter, OpenSourceLibyuv::FilterMode &filterMode, YuvImageInfo &yuvInfo, YUVStrideInfo &dstStrides) ScaleP010() argument
423 ScaleYuv420(float xAxis, float yAxis, const AntiAliasingOption &option, YuvImageInfo &yuvInfo, uint8_t *src, uint8_t *dst, YUVStrideInfo &dstStrides) ScaleYuv420() argument
452 ScaleYuv420(int32_t dst_width, int32_t dst_height, const AntiAliasingOption &option, YuvImageInfo &yuvInfo, uint8_t *src, uint8_t *dst, YUVStrideInfo &dstStrides) ScaleYuv420() argument
[all...]
H A Dpixel_yuv_utils.cpp834 static void Yuv420SPWritePixels(const YUVDataInfo &yuvInfo, uint8_t *srcPixels, in Yuv420SPWritePixels() argument
841 uint8_t *srcY = srcPixels + yuvInfo.yOffset; in Yuv420SPWritePixels()
842 uint8_t *srcUV = srcPixels + yuvInfo.uvOffset; in Yuv420SPWritePixels()
846 *(srcY + y * yuvInfo.yStride + x) = colorY; in Yuv420SPWritePixels()
853 *(srcUV + (y * yuvInfo.uvStride + x)) = colorU; in Yuv420SPWritePixels()
854 *(srcUV + (y * yuvInfo.uvStride + x) + 1) = colorV; in Yuv420SPWritePixels()
856 *(srcUV + (y * yuvInfo.uvStride + x)) = colorV; in Yuv420SPWritePixels()
857 *(srcUV + (y * yuvInfo.uvStride + x) + 1) = colorU; in Yuv420SPWritePixels()
863 static void P010WritePixels(const YUVDataInfo &yuvInfo, uint16_t *srcPixels, in P010WritePixels() argument
870 uint16_t *srcY = srcPixels + yuvInfo in P010WritePixels()
892 Yuv420WritePixels(const YUVDataInfo &yuvInfo, uint8_t *srcPixels, ImageInfo &info, const uint32_t &color) Yuv420WritePixels() argument
974 Yuv420SPTranslate(const uint8_t *srcPixels, YUVDataInfo &yuvInfo, uint8_t *dstPixels, XYaxis &xyAxis, ImageInfo &info, YUVStrideInfo &strides) Yuv420SPTranslate() argument
1006 P010Translate(YuvPixelsP010Translate yuvPixels, YUVDataInfo &yuvInfo, XYaxis &xyAxis, ImageInfo &info, YUVStrideInfo &strides) P010Translate() argument
1041 YuvTranslate(const uint8_t *srcPixels, YUVDataInfo &yuvInfo, uint8_t *dstPixels, XYaxis &xyAxis, ImageInfo &info, YUVStrideInfo &dstStrides) YuvTranslate() argument
[all...]
H A Dimage_utils.cpp599 YUVDataInfo yuvInfo; in GetPixelMapName() local
600 pixelMap->GetImageYUVInfo(yuvInfo); in GetPixelMapName()
601 yuvInfoStr += "_yWidth" + std::to_string(yuvInfo.yWidth) + in GetPixelMapName()
602 "_yHeight" + std::to_string(yuvInfo.yHeight) + in GetPixelMapName()
603 "_yStride" + std::to_string(yuvInfo.yStride) + in GetPixelMapName()
604 "_yOffset" + std::to_string(yuvInfo.yOffset) + in GetPixelMapName()
605 "_uvWidth" + std::to_string(yuvInfo.uvWidth) + in GetPixelMapName()
606 "_uvHeight" + std::to_string(yuvInfo.uvHeight) + in GetPixelMapName()
607 "_uvStride" + std::to_string(yuvInfo.uvStride) + in GetPixelMapName()
608 "_uvOffset" + std::to_string(yuvInfo in GetPixelMapName()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dpicture_handle_service.cpp189 YUVDataInfo yuvInfo; in WriteYuvDataInfo() local
190 pixelMap->GetImageYUVInfo(yuvInfo); in WriteYuvDataInfo()
192 MEDIA_DEBUG_LOG("PictureHandlerService::WriteYuvDataInfo width: %{public}d", yuvInfo.imageSize.width); in WriteYuvDataInfo()
193 data.WriteInt32(static_cast<int32_t>(yuvInfo.imageSize.width)); in WriteYuvDataInfo()
195 MEDIA_DEBUG_LOG("PictureHandlerService::WriteYuvDataInfo height: %{public}d", yuvInfo.imageSize.height); in WriteYuvDataInfo()
196 data.WriteInt32(static_cast<int32_t>(yuvInfo.imageSize.height)); in WriteYuvDataInfo()
198 MEDIA_DEBUG_LOG("PictureHandlerService::WriteYuvDataInfo yWidth: %{public}d", yuvInfo.yWidth); in WriteYuvDataInfo()
199 data.WriteInt32(static_cast<int32_t>(yuvInfo.yWidth)); in WriteYuvDataInfo()
201 MEDIA_DEBUG_LOG("PictureHandlerService::WriteYuvDataInfo yHeight: %{public}d", yuvInfo.yHeight); in WriteYuvDataInfo()
202 data.WriteInt32(static_cast<int32_t>(yuvInfo in WriteYuvDataInfo()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dimage_format_convert_ext_utils.cpp219 static void YuvToRGBParam(const YUVDataInfo &yuvInfo, SrcConvertParam &srcParam, in YuvToRGBParam() argument
222 srcParam.slice[0] = srcParam.buffer + yuvInfo.yOffset; in YuvToRGBParam()
223 srcParam.slice[1] = srcParam.buffer + yuvInfo.uvOffset; in YuvToRGBParam()
224 srcParam.stride[0] = static_cast<int>(yuvInfo.yStride); in YuvToRGBParam()
225 srcParam.stride[1] = static_cast<int>(yuvInfo.uvStride); in YuvToRGBParam()
266 static bool YuvToI420ToRGBParam(const YUVDataInfo &yuvInfo, SrcConvertParam &srcParam, I420Info &i420Info, in YuvToI420ToRGBParam() argument
269 YuvToRGBParam(yuvInfo, srcParam, destParam, destInfo); in YuvToI420ToRGBParam()
271 return I420Param(yuvInfo.yWidth, yuvInfo.yHeight, i420Info); in YuvToI420ToRGBParam()
274 static bool YuvTo420ToRGB(const uint8_t *srcBuffer, const YUVDataInfo &yuvInfo, PixelForma argument
334 YuvToRGB(const uint8_t *srcBuffer, const YUVDataInfo &yuvInfo, PixelFormat srcFormat, DestConvertInfo &destInfo, PixelFormat destFormat) YuvToRGB() argument
589 YuvToI420ToI010ToRGB10(const uint8_t *srcBuffer, const YUVDataInfo &yuvInfo, PixelFormat srcFormat, DestConvertInfo &destInfo, [[maybe_unused]]ColorSpace colorSpace) YuvToI420ToI010ToRGB10() argument
667 YuvToI420ToP010Param(const YUVDataInfo &yuvInfo, SrcConvertParam &srcParam, I420Info &i420Info, DestConvertParam &destParam, DestConvertInfo &destInfo) YuvToI420ToP010Param() argument
692 YuvToI420ToI010ToP010(const uint8_t *srcBuffer, const YUVDataInfo &yuvInfo, PixelFormat srcFormat, DestConvertInfo &destInfo, [[maybe_unused]]ColorSpace colorSpace) YuvToI420ToI010ToP010() argument
792 YuvP010ToI420ToYuvParam(const YUVDataInfo &yuvInfo, SrcConvertParam &srcParam, I420Info &i420Info, DestConvertParam &destParam, DestConvertInfo &destInfo) YuvP010ToI420ToYuvParam() argument
826 P010ToI010ToI420ToYuv(const uint8_t *srcBuffer, const YUVDataInfo &yuvInfo, PixelFormat srcFormat, DestConvertInfo &destInfo, [[maybe_unused]]ColorSpace colorSpace) P010ToI010ToI420ToYuv() argument
875 YuvP010ToRGBParam(const YUVDataInfo &yuvInfo, SrcConvertParam &srcParam, DestConvertParam &destParam, DestConvertInfo &destInfo) YuvP010ToRGBParam() argument
896 YuvP010ToI420ToRGBParam(const YUVDataInfo &yuvInfo, SrcConvertParam &srcParam, I420Info &i420Info, DestConvertParam &destParam, DestConvertInfo &destInfo) YuvP010ToI420ToRGBParam() argument
921 P010ToI010ToI420ToRGB(const uint8_t *srcBuffer, const YUVDataInfo &yuvInfo, PixelFormat srcFormat, DestConvertInfo &destInfo, [[maybe_unused]]ColorSpace colorSpace) P010ToI010ToI420ToRGB() argument
970 P010ToI010ToRGB10Param(const YUVDataInfo &yuvInfo, SrcConvertParam &srcParam, I010Info &i010Info, DestConvertParam &destParam, DestConvertInfo &destInfo) P010ToI010ToRGB10Param() argument
995 P010ToI010ToRGB10(const uint8_t *srcBuffer, const YUVDataInfo &yuvInfo, PixelFormat srcFormat, DestConvertInfo &destInfo, [[maybe_unused]]ColorSpace colorSpace) P010ToI010ToRGB10() argument
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_yuv_decoder/
H A Djpeg_yuv_decoder_test.cpp106 ASSERT_NE(context.yuvInfo.imageSize.width, 0); in DecodeToYUV()
107 ASSERT_NE(context.yuvInfo.imageSize.height, 0); in DecodeToYUV()
108 ASSERT_NE(context.yuvInfo.yWidth, 0); in DecodeToYUV()
109 ASSERT_NE(context.yuvInfo.yHeight, 0); in DecodeToYUV()
110 ASSERT_NE(context.yuvInfo.uvWidth, 0); in DecodeToYUV()
111 ASSERT_NE(context.yuvInfo.uvHeight, 0); in DecodeToYUV()
113 ASSERT_NE(context.yuvInfo.yStride, 0); in DecodeToYUV()
114 ASSERT_NE(context.yuvInfo.uStride, 0); in DecodeToYUV()
115 ASSERT_NE(context.yuvInfo.vStride, 0); in DecodeToYUV()
117 ASSERT_NE(context.yuvInfo in DecodeToYUV()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/
H A Dpixel_yuv_utils.h87 static bool YuvTranslate(const uint8_t *srcPixels, YUVDataInfo &yuvInfo, uint8_t *dstPixels, XYaxis &xyAxis,
89 static bool Yuv420WritePixels(const YUVDataInfo &yuvInfo, uint8_t *srcPixels, ImageInfo &info,
101 static void Yuv420SPTranslate(const uint8_t *srcPixels, YUVDataInfo &yuvInfo,
H A Dpixel_yuv_ext_utils.h50 YuvImageInfo &yuvInfo, uint8_t *src, uint8_t *dst, YUVStrideInfo &dstStrides);
52 YuvImageInfo &yuvInfo, uint8_t *src, uint8_t *dst, YUVStrideInfo &dstStrides);
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_decoder.cpp340 context.yuvInfo.imageSize = { info_.width(), info_.height() }; in HeapMemAlloc()
341 context.yuvInfo.yWidth = info_.width(); in HeapMemAlloc()
342 context.yuvInfo.yHeight = info_.height(); in HeapMemAlloc()
343 context.yuvInfo.uvWidth = static_cast<uint32_t>((info_.width() + 1) / NUM_2); in HeapMemAlloc()
344 context.yuvInfo.uvHeight = static_cast<uint32_t>((info_.height() + 1) / NUM_2); in HeapMemAlloc()
345 context.yuvInfo.yStride = planes->planes[0].columnStride; in HeapMemAlloc()
346 context.yuvInfo.uvStride = planes->planes[uvPlaneOffset].columnStride; in HeapMemAlloc()
347 context.yuvInfo.yOffset = planes->planes[0].offset; in HeapMemAlloc()
348 context.yuvInfo.uvOffset = planes->planes[uvPlaneOffset].offset; in HeapMemAlloc()
657 context.yuvInfo in HeapMemAlloc()
[all...]
H A Dext_encoder.cpp276 YUVDataInfo yuvInfo; in YuvToRgbaSkInfo() local
277 pixelMap->GetImageYUVInfo(yuvInfo); in YuvToRgbaSkInfo()
279 info.size.width, info.size.height, info.pixelFormat, yuvInfo}; in YuvToRgbaSkInfo()
/foundation/multimedia/media_library/interfaces/kits/js/include/
H A Dpicture_handle_client.h39 static bool ReadYuvDataInfo(MessageParcel &data, YUVDataInfo &yuvInfo);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/codec/src/
H A Dimage_source.cpp787 context.yuvInfo.imageSize.width != 0) {
788 plInfo.yuvDataInfo = context.yuvInfo;
789 plInfo.size = context.yuvInfo.imageSize;
911 static void CopyYuvInfo(YUVDataInfo &yuvInfo, ImagePlugin::PlImageInfo &plInfo)
913 yuvInfo.yWidth = plInfo.yuvDataInfo.yWidth;
914 yuvInfo.yHeight = plInfo.yuvDataInfo.yHeight;
915 yuvInfo.uvWidth = plInfo.yuvDataInfo.uvWidth;
916 yuvInfo.uvHeight = plInfo.yuvDataInfo.uvHeight;
917 yuvInfo.yStride = plInfo.yuvDataInfo.yStride;
918 yuvInfo
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_yuv_ext.cpp160 YuvImageInfo yuvInfo = {PixelYuvUtils::ConvertFormat(imageInfo.pixelFormat), in scale() local
164 PixelYuvExtUtils::ScaleYuv420(xAxis, yAxis, option, yuvInfo, data_, dst, dstStrides); in scale()
189 YuvImageInfo yuvInfo = {PixelYuvUtils::ConvertFormat(imageInfo.pixelFormat), in scale() local
192 PixelYuvExtUtils::ScaleYuv420(dstW, dstH, option, yuvInfo, data_, dst, dstStrides); in scale()
H A Dpixel_map.cpp337 void UpdateYUVDataInfo(int32_t width, int32_t height, YUVDataInfo &yuvInfo) in UpdateYUVDataInfo() argument
339 yuvInfo.yWidth = static_cast<uint32_t>(width); in UpdateYUVDataInfo()
340 yuvInfo.yHeight = static_cast<uint32_t>(height); in UpdateYUVDataInfo()
341 yuvInfo.uvWidth = static_cast<uint32_t>((width + 1) / NUM_2); in UpdateYUVDataInfo()
342 yuvInfo.uvHeight = static_cast<uint32_t>((height + 1) / NUM_2); in UpdateYUVDataInfo()
343 yuvInfo.yStride = static_cast<uint32_t>(width); in UpdateYUVDataInfo()
344 yuvInfo.uvStride = static_cast<uint32_t>(((width + 1) / NUM_2) * NUM_2); in UpdateYUVDataInfo()
345 yuvInfo.uvOffset = static_cast<uint32_t>(width * height); in UpdateYUVDataInfo()
596 bool InitYuvDataOutInfo(SurfaceBuffer* surfaceBuffer, const ImageInfo &info, YUVDataInfo &yuvInfo) in InitYuvDataOutInfo() argument
610 yuvInfo in InitYuvDataOutInfo()
[all...]
/foundation/multimedia/media_library/frameworks/js/src/
H A Dpicture_handle_client.cpp141 YUVDataInfo yuvInfo; in ReadPixelMap() local
143 ReadYuvDataInfo(data, yuvInfo); in ReadPixelMap()
160 pixelMap->SetImageYUVInfo(yuvInfo); in ReadPixelMap()
/foundation/multimedia/media_foundation/video_processing_engine/framework/algorithm/detail_enhancer/skia/
H A Dskia_impl.cpp193 const SkYUVAInfo yuvInfo = SkYUVAInfo(imageSize, planeConfig, subsampling, yuvColorSpace); in CreateYUVPixmap() local
194 const SkYUVAPixmapInfo pixmapInfo = SkYUVAPixmapInfo(yuvInfo, SkYUVAPixmapInfo::DataType::kUnorm8, rowbyte); in CreateYUVPixmap()
/foundation/multimedia/image_framework/plugins/manager/include/image/
H A Dabs_image_decoder.h75 OHOS::Media::YUVDataInfo yuvInfo; member
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/jpeg_yuv_decoder/
H A Djpeg_decoder_yuv.cpp332 JpegDecoderYuv::InitYuvDataOutInfo(outwidth, outheight, context.yuvInfo); in DoDecode()
350 JpegDecoderYuv::InitYuvDataOutInfoTo420(outwidth, outheight, context.yuvInfo, decodeParameter_.outfmt_); in DoDecode()
352 JpegDecoderYuv::InitYuvDataOutInfoTo420NV(outwidth, outheight, context.yuvInfo); in DoDecode()
/foundation/multimedia/image_framework/interfaces/innerkits/include/
H A Dpixel_map.h245 NATIVEEXPORT virtual void GetImageYUVInfo(YUVDataInfo &yuvInfo) const in GetImageYUVInfo()
247 yuvInfo = yuvDataInfo_; in GetImageYUVInfo()

Completed in 25 milliseconds