/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | pixel_convert_adapter_test.cpp | 68 void *dstPixels = malloc(bufferSize1); in HWTEST_F() local 69 EXPECT_NE(dstPixels, nullptr); in HWTEST_F() 75 srcRowBytes, info, dstPixels, dstPos, dstRowBytes, dstInfo); in HWTEST_F() 91 void *dstPixels = nullptr; in HWTEST_F() local 98 srcRowBytes, srcInfo, dstPixels, dstPos, dstRowBytes, dstInfo); in HWTEST_F() 134 void *dstPixels = malloc(bufferSize1); in HWTEST_F() local 135 EXPECT_NE(dstPixels, nullptr); in HWTEST_F() 141 dstPos, srcRowBytes, info, dstPixels, dstRowBytes, dstInfo); in HWTEST_F() 161 void *dstPixels = nullptr; in HWTEST_F() local 168 dstPos, srcRowBytes, srcInfo, dstPixels, dstRowByte in HWTEST_F() 253 void *dstPixels = malloc(bufferSize1); HWTEST_F() local 296 void *dstPixels = malloc(bufferSize1); HWTEST_F() local 339 void *dstPixels = malloc(bufferSize1); HWTEST_F() local 382 void *dstPixels = malloc(bufferSize1); HWTEST_F() local [all...] |
H A D | pixel_yuv_ext_utils_test.cpp | 111 uint8_t dstPixels[LENGTH] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; in HWTEST_F() local 122 bool res = PixelYuvExtUtils::YuvRotate(srcPixels, pixelFormat, info, dstSize, dstPixels, dstStrides, rotateNum); in HWTEST_F() 190 uint8_t dstPixels[LENGTH] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; in HWTEST_F() local 201 bool res = PixelYuvExtUtils::YuvRotate(srcPixels, pixelFormat, info, dstSize, dstPixels, dstStrides, rotateNum); in HWTEST_F() 213 uint8_t dstPixels[LENGTH] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; in HWTEST_F() local 228 bool res = PixelYuvExtUtils::YuvRotate(srcPixels, pixelFormat, info, dstSize, dstPixels, dstStrides, rotateNum); in HWTEST_F() 240 uint8_t dstPixels[LENGTH] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; in HWTEST_F() local 261 bool res = PixelYuvExtUtils::YuvRotate(srcPixels, pixelFormat, info, dstSize, dstPixels, dstStrides, rotateNum); in HWTEST_F()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/ |
H A D | webp_encoder.cpp | 437 void *dstPixels = dst; in DoTransformRGBX() local 444 if ((srcPixels == nullptr) || (dstPixels == nullptr)) { in DoTransformRGBX() 451 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformRGBX() 469 void *dstPixels = dst; in DoTransformRgbA() local 476 if ((srcPixels == nullptr) || (dstPixels == nullptr)) { in DoTransformRgbA() 483 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformRgbA() 501 void *dstPixels = dst; in DoTransformBGRX() local 508 if ((srcPixels == nullptr) || (dstPixels == nullptr)) { in DoTransformBGRX() 515 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformBGRX() 533 void *dstPixels in DoTransformBGRA() local 565 void *dstPixels = dst; DoTransformBgrA() local 597 void *dstPixels = dst; DoTransformF16To8888() local 629 void *dstPixels = dst; DoTransformF16pTo8888() local 661 void *dstPixels = dst; DoTransformArgbToRgb() local 693 void *dstPixels = dst; DoTransformArgbToRgba() local 725 void *dstPixels = dst; DoTransformRGB565() local 757 void *dstPixels = dst; DoTransformGray() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/src/ |
H A D | pixel_convert_adapter.cpp | 82 static void ARGBToRGBA(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in ARGBToRGBA() argument 89 uint8_t *dst = dstPixels; in ARGBToRGBA() 101 static void RGBAToARGB(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in RGBAToARGB() argument 108 uint8_t *dst = dstPixels; in RGBAToARGB() 120 static void RGBxToRGB(const uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in RGBxToRGB() argument 127 uint8_t *dst = dstPixels; in RGBxToRGB() 138 static void RGBToRGBx(const uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in RGBToRGBx() argument 145 uint8_t *dst = dstPixels; in RGBToRGBx() 168 void *dstPixels, const Position &dstPos, uint32_t dstRowBytes, in WritePixelsConvert() 172 if (srcPixels == nullptr || dstPixels in WritePixelsConvert() 167 WritePixelsConvert(const void *srcPixels, uint32_t srcRowBytes, const ImageInfo &srcInfo, void *dstPixels, const Position &dstPos, uint32_t dstRowBytes, const ImageInfo &dstInfo) WritePixelsConvert() argument 225 ReadPixelsConvert(const void *srcPixels, const Position &srcPos, uint32_t srcRowBytes, const ImageInfo &srcInfo, void *dstPixels, uint32_t dstRowBytes, const ImageInfo &dstInfo) ReadPixelsConvert() argument [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/ |
H A D | pixel_yuv_utils.h | 65 uint16_t *dstPixels; member 71 static bool WriteYuvConvert(const void *srcPixels, const ImageInfo &srcInfo, void *dstPixels, 74 void *dstPixels, const ImageInfo &dstInfo); 87 static bool YuvTranslate(const uint8_t *srcPixels, YUVDataInfo &yuvInfo, uint8_t *dstPixels, XYaxis &xyAxis, 100 uint8_t *dstPixels, YuvImageInfo &dstInfo, int32_t module); 102 uint8_t *dstPixels, XYaxis &xyAxis, ImageInfo &info, YUVStrideInfo &strides);
|
H A D | pixel_yuv_ext_utils.h | 33 uint8_t *dstPixels; member 47 uint8_t* dstPixels, YUVStrideInfo& dstStrides, OpenSourceLibyuv::RotationMode &rotateNum);
|
H A D | image_utils.h | 52 static void BGRAToARGB(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount); 53 static void ARGBToBGRA(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount);
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/include/ |
H A D | pixel_convert_adapter.h | 40 void *dstPixels, const Position &dstPos, uint32_t dstRowBytes, 43 const ImageInfo &srcInfo, void *dstPixels, uint32_t dstRowBytes,
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | pixel_yuv_utils.cpp | 122 static void WriteDataNV12Convert(uint8_t *srcPixels, const Size &size, uint8_t *dstPixels, in WriteDataNV12Convert() argument 125 uint8_t *dstY = dstPixels + yuvDataInfo.yOffset; in WriteDataNV12Convert() 126 uint8_t *dstUV = dstPixels + yuvDataInfo.uvOffset; in WriteDataNV12Convert() 149 static void WriteDataNV12P010Convert(uint16_t *srcPixels, const Size &size, uint16_t *dstPixels, in WriteDataNV12P010Convert() argument 152 uint16_t *dstY = dstPixels + yuvDataInfo.yOffset; in WriteDataNV12P010Convert() 153 uint16_t *dstUV = dstPixels + yuvDataInfo.uvOffset; in WriteDataNV12P010Convert() 175 bool PixelYuvUtils::WriteYuvConvert(const void *srcPixels, const ImageInfo &srcInfo, void *dstPixels, in WriteYuvConvert() argument 178 if (srcPixels == nullptr || dstPixels == nullptr) { in WriteYuvConvert() 184 WriteDataNV12Convert((uint8_t *)srcPixels, srcInfo.size, static_cast<uint8_t *>(dstPixels), dstPos, in WriteYuvConvert() 188 WriteDataNV12Convert((uint8_t *)srcPixels, srcInfo.size, static_cast<uint8_t *>(dstPixels), dstPo in WriteYuvConvert() 436 YuvScale(uint8_t *srcPixels, YuvImageInfo &srcInfo, uint8_t *dstPixels, YuvImageInfo &dstInfo, int32_t module) YuvScale() argument 724 ReadYuvConvert(const void *srcPixels, const Position &srcPos, YuvImageInfo &info, void *dstPixels, const ImageInfo &dstInfo) ReadYuvConvert() argument 974 Yuv420SPTranslate(const uint8_t *srcPixels, YUVDataInfo &yuvInfo, uint8_t *dstPixels, XYaxis &xyAxis, ImageInfo &info, YUVStrideInfo &strides) Yuv420SPTranslate() argument 1041 YuvTranslate(const uint8_t *srcPixels, YUVDataInfo &yuvInfo, uint8_t *dstPixels, XYaxis &xyAxis, ImageInfo &info, YUVStrideInfo &dstStrides) YuvTranslate() argument [all...] |
H A D | pixel_yuv_ext_utils.cpp | 178 std::unique_ptr<uint16_t[]> dstPixels = std::make_unique<uint16_t[]>(GetImageSize(info.yStride, size.srcH)); in NV12P010Rotate() local 183 uint16_t* dstY = dstPixels.get(); in NV12P010Rotate() 184 uint16_t* dstU = dstPixels.get() + GetYSize(info.yStride, size.srcH); in NV12P010Rotate() 185 uint16_t* dstV = dstPixels.get() + GetVOffset(info.yStride, size.srcH); in NV12P010Rotate() 206 uint16_t* dstbuffer = reinterpret_cast<uint16_t *>(yuvPixels.dstPixels); in NV12P010Rotate() 220 Size& dstSize, uint8_t* dstPixels, YUVStrideInfo& dstStrides, OpenSourceLibyuv::RotationMode &rotateNum) in YuvRotate() 227 YuvPixels yuvPixels = {srcPixels, dstPixels, 0, 0}; in YuvRotate() 234 if (!NV12Rotate(srcPixels, pixelSize, info, rotateNum, dstPixels, dstStrides)) { in YuvRotate() 371 uint16_t *dstBuffer = reinterpret_cast<uint16_t *>(yuvPixels.dstPixels); in ScaleP010() 374 std::unique_ptr<uint16_t[]> dstPixels in ScaleP010() local 219 YuvRotate(uint8_t* srcPixels, const PixelFormat& format, YUVDataInfo& info, Size& dstSize, uint8_t* dstPixels, YUVStrideInfo& dstStrides, OpenSourceLibyuv::RotationMode &rotateNum) YuvRotate() argument [all...] |
H A D | image_utils.cpp | 408 static void ReversePixels(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in ReversePixels() argument 415 uint8_t *dst = dstPixels; in ReversePixels() 427 void ImageUtils::BGRAToARGB(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in BGRAToARGB() argument 430 ReversePixels(srcPixels, dstPixels, byteCount); in BGRAToARGB() 433 void ImageUtils::ARGBToBGRA(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in ARGBToBGRA() argument 435 ReversePixels(srcPixels, dstPixels, byteCount); in ARGBToBGRA()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_bitmap.cpp | 142 void* dstPixels, size_t dstRowBytes, int32_t srcX, int32_t srcY) in OH_Drawing_BitmapReadPixels() 144 if (cBitmap == nullptr || dstInfo == nullptr || dstPixels == nullptr) { in OH_Drawing_BitmapReadPixels() 152 return CastToBitmap(cBitmap)->ReadPixels(imageInfo, dstPixels, dstRowBytes, srcX, srcY); in OH_Drawing_BitmapReadPixels() 141 OH_Drawing_BitmapReadPixels(OH_Drawing_Bitmap* cBitmap, const OH_Drawing_Image_Info* dstInfo, void* dstPixels, size_t dstRowBytes, int32_t srcX, int32_t srcY) OH_Drawing_BitmapReadPixels() argument
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | pixel_convert.cpp | 1096 void *dstPixels, const FFMPEG_CONVERT_INFO& dstInfo) in FFMpegConvert() 1121 av_image_fill_arrays(outputFrame->data, outputFrame->linesize, (uint8_t *)dstPixels, in FFMpegConvert() 1161 void *dstPixels, PixelFormat dstpixelmap) in ConvertForFFMPEG() 1167 if (!FFMpegConvert(srcPixels, srcFFmpegInfo, dstPixels, dstFFmpegInfo)) { in ConvertForFFMPEG() 1175 static bool ConvertAndCollapseByFFMpeg(const void *srcPixels, const ImageInfo &srcInfo, void *dstPixels, in ConvertAndCollapseByFFMpeg() argument 1182 if (!FFMpegConvert(srcPixels, srcFFMpegInfo, dstPixels, dstFFMpegInfo)) { in ConvertAndCollapseByFFMpeg() 1190 void *dstPixels, ImageInfo dstInfo) in P010ConvertRGBA1010102() 1219 dstPixels, pos, PixelMap::GetRGBxRowDataSize(dstInfo), dstInfo)) { in P010ConvertRGBA1010102() 1231 void *dstPixels, ImageInfo dstInfo) in ConvertRGBA1010102ToYUV() 1260 if (!FFMpegConvert(tmpPixels, srcFFmpegInfo, dstPixels, dstFFmpegInf in ConvertRGBA1010102ToYUV() 1095 FFMpegConvert(const void *srcPixels, const FFMPEG_CONVERT_INFO& srcInfo, void *dstPixels, const FFMPEG_CONVERT_INFO& dstInfo) FFMpegConvert() argument 1160 ConvertForFFMPEG(const void *srcPixels, PixelFormat srcpixelmap, ImageInfo srcInfo, void *dstPixels, PixelFormat dstpixelmap) ConvertForFFMPEG() argument 1189 P010ConvertRGBA1010102(const void *srcPixels, ImageInfo srcInfo, void *dstPixels, ImageInfo dstInfo) P010ConvertRGBA1010102() argument 1230 ConvertRGBA1010102ToYUV(const void *srcPixels, ImageInfo srcInfo, void *dstPixels, ImageInfo dstInfo) ConvertRGBA1010102ToYUV() argument 1271 YUVConvertRGB(const void *srcPixels, const ImageInfo &srcInfo, void *dstPixels, const ImageInfo &dstInfo) YUVConvertRGB() argument 1313 ConvertFromYUV(const void *srcPixels, const int32_t srcLength, const ImageInfo &srcInfo, void *dstPixels, const ImageInfo &dstInfo) ConvertFromYUV() argument 1339 ConvertFromP010(const void *srcPixels, const int32_t srcLength, const ImageInfo &srcInfo, void *dstPixels, const ImageInfo &dstInfo) ConvertFromP010() argument 1387 RGBConvertYUV(const void *srcPixels, const ImageInfo &srcInfo, void *dstPixels, const ImageInfo &dstInfo) RGBConvertYUV() argument 1427 ConvertToYUV(const void *srcPixels, const int32_t srcLength, const ImageInfo &srcInfo, void *dstPixels, const ImageInfo &dstInfo) ConvertToYUV() argument 1452 ConvertToP010(const void *srcPixels, const int32_t srcLength, const ImageInfo &srcInfo, void *dstPixels, const ImageInfo &dstInfo) ConvertToP010() argument 1503 YUVConvert(const void *srcPixels, const int32_t srcLength, const ImageInfo &srcInfo, void *dstPixels, const ImageInfo &dstInfo) YUVConvert() argument [all...] |
H A D | post_proc.cpp | 194 bool PostProc::CopyPixels(PixelMap& pixelMap, uint8_t* dstPixels, const Size& dstSize, in CopyPixels() argument 216 dstStartPixel = dstPixels + scanLine * targetRowStride; in CopyPixels() 240 uint8_t *dstPixels = nullptr; in CenterDisplay() local 245 if (!AllocHeapBuffer(bufferSize, &dstPixels)) { in CenterDisplay() 249 dstPixels = AllocDmaMemory(dstImageInfo, bufferSize, &nativeBuffer, targetRowStride); in CenterDisplay() 251 dstPixels = AllocSharedMemory(dstImageInfo.size, bufferSize, fd, pixelMap.GetUniqueId()); in CenterDisplay() 253 if (dstPixels == nullptr) { in CenterDisplay() 257 if (!CopyPixels(pixelMap, dstPixels, dstImageInfo.size, srcWidth, srcHeight, srcRowStride, targetRowStride)) { in CenterDisplay() 259 ReleaseBuffer(pixelMap.GetAllocatorType(), fd, bufferSize, &dstPixels, nativeBuffer); in CenterDisplay() 264 pixelMap.SetPixelsAddr(dstPixels, nullpt in CenterDisplay() 913 uint8_t *dstPixels[FFMPEG_NUM] = {}; ScalePixelMapEx() local [all...] |
/foundation/multimedia/av_session/frameworks/native/session/src/ |
H A D | avsession_pixel_map_adapter.cpp | 79 bool AVSessionPixelMapAdapter::CopyPixMapToDst(Media::PixelMap &source, void* dstPixels, uint32_t bufferSize) in CopyPixMapToDst() argument 86 if (memcpy_s(dstPixels, source.GetRowBytes(), in CopyPixMapToDst() 92 dstPixels = reinterpret_cast<uint8_t *>(dstPixels) + source.GetRowBytes(); in CopyPixMapToDst() 96 if (memcpy_s(dstPixels, bufferSize, source.GetPixels(), bufferSize) != 0) { in CopyPixMapToDst()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/ |
H A D | bitmap.cpp | 84 bool Bitmap::ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in ReadPixels() argument 87 return bmpImplPtr->ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels()
|
H A D | image.cpp | 171 bool Image::ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in ReadPixels() argument 174 return imageImplPtr->ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | skia_image.cpp | 32 SkPixmap CloneSkPixmap(SkPixmap& srcPixmap, const std::unique_ptr<uint8_t[]>& dstPixels) in CloneSkPixmap() argument 37 SkPixmap dstPixmap(dstImageInfo, dstPixels.get(), srcPixmap.rowBytes()); in CloneSkPixmap() 177 auto dstPixels = std::make_unique<uint8_t[]>(srcPixmap.computeByteSize()); in GetPixelMap() local 178 SkPixmap newSrcPixmap = CloneSkPixmap(srcPixmap, dstPixels); in GetPixelMap()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_bitmap.cpp | 100 bool SkiaBitmap::ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in ReadPixels() argument 104 return skiaBitmap_.readPixels(skImageInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels() 143 void* dstPixels = dst.GetPixels(); in CopyPixels() local 149 skiaBitmap_.readPixels(skImageInfo, dstPixels, dst.GetRowBytes(), srcX, srcY); in CopyPixels()
|
H A D | skia_bitmap.h | 46 bool ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_bitmap.h | 176 * @brief Copies a rect of pixels from bitmap to dstPixels. Copy starts at (srcX, srcY), 182 * @param dstPixels Destination pixel storage. 186 * @return Returns true if pixels are copied to dstPixels. 191 void* dstPixels, size_t dstRowBytes, int32_t srcX, int32_t srcY);
|
/foundation/multimedia/av_session/frameworks/native/session/include/ |
H A D | avsession_pixel_map_adapter.h | 32 static bool CopyPixMapToDst(Media::PixelMap &source, void* dstPixels, uint32_t bufferSize);
|
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_bitmap.h | 73 const TestingImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int32_t srcX, int32_t srcY) const in ReadPixels() 72 ReadPixels( const TestingImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int32_t srcX, int32_t srcY) const ReadPixels() argument
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | bitmap_impl.h | 45 virtual bool ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | canvas_test.cpp | 322 char* dstPixels = static_cast<char*>(malloc(100 * 100 * 4)); // 100 4 用于像素计算 in OnTestPerformance() local 323 if (dstPixels == nullptr) in OnTestPerformance() 328 res = OH_Drawing_CanvasReadPixels(canvas, &imageInfo, dstPixels, 100 * 4, 0, 0); // 100, 4 用于像素计算 in OnTestPerformance() 330 free(dstPixels); in OnTestPerformance()
|