Home
last modified time | relevance | path

Searched refs:dstPixels (Results 1 – 25 of 53) sorted by relevance

123

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpixel_convert_adapter_test.cpp68 void *dstPixels = malloc(bufferSize1); variable
69 EXPECT_NE(dstPixels, nullptr);
91 void *dstPixels = nullptr; variable
134 void *dstPixels = malloc(bufferSize1); variable
135 EXPECT_NE(dstPixels, nullptr);
161 void *dstPixels = nullptr; variable
253 void *dstPixels = malloc(bufferSize1); variable
254 EXPECT_NE(dstPixels, nullptr);
297 EXPECT_NE(dstPixels, nullptr);
340 EXPECT_NE(dstPixels, nullptr);
[all …]
H A Dpixel_yuv_ext_utils_test.cpp111 uint8_t dstPixels[LENGTH] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; variable
122 …bool res = PixelYuvExtUtils::YuvRotate(srcPixels, pixelFormat, info, dstSize, dstPixels, dstStride…
190 uint8_t dstPixels[LENGTH] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; variable
201 …bool res = PixelYuvExtUtils::YuvRotate(srcPixels, pixelFormat, info, dstSize, dstPixels, dstStride…
213 uint8_t dstPixels[LENGTH] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; variable
228 …bool res = PixelYuvExtUtils::YuvRotate(srcPixels, pixelFormat, info, dstSize, dstPixels, dstStride…
240 uint8_t dstPixels[LENGTH] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; variable
261 …bool res = PixelYuvExtUtils::YuvRotate(srcPixels, pixelFormat, info, dstSize, dstPixels, dstStride…
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/src/
H A Dpixel_convert_adapter.cpp82 static void ARGBToRGBA(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in ARGBToRGBA() argument
89 uint8_t *dst = dstPixels; in ARGBToRGBA()
108 uint8_t *dst = dstPixels; in RGBAToARGB()
127 uint8_t *dst = dstPixels; in RGBxToRGB()
145 uint8_t *dst = dstPixels; in RGBToRGBx()
172 if (srcPixels == nullptr || dstPixels == nullptr) { in WritePixelsConvert()
187 auto keepDstPixels = dstPixels; in WritePixelsConvert()
188 dstPixels = (dstInfo.pixelFormat == PixelFormat::RGB_888) ? &dstRGBxPixels[0] : dstPixels; in WritePixelsConvert()
206 if (!dstBitmap.installPixels(dstImageInfo, dstPixels, dstRowBytes)) { in WritePixelsConvert()
217 RGBAToARGB(static_cast<uint8_t*>(dstPixels), static_cast<uint8_t*>(dstPixels), dstSize); in WritePixelsConvert()
[all …]
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/
H A Dwebp_encoder.cpp437 void *dstPixels = dst; in DoTransformRGBX() local
469 void *dstPixels = dst; in DoTransformRgbA() local
501 void *dstPixels = dst; in DoTransformBGRX() local
533 void *dstPixels = dst; in DoTransformBGRA() local
565 void *dstPixels = dst; in DoTransformBgrA() local
597 void *dstPixels = dst; in DoTransformF16To8888() local
629 void *dstPixels = dst; in DoTransformF16pTo8888() local
661 void *dstPixels = dst; in DoTransformArgbToRgb() local
693 void *dstPixels = dst; in DoTransformArgbToRgba() local
725 void *dstPixels = dst; in DoTransformRGB565() local
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/
H A Dpixel_yuv_utils.h65 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, XYaxi…
100 uint8_t *dstPixels, YuvImageInfo &dstInfo, int32_t module);
102 uint8_t *dstPixels, XYaxis &xyAxis, ImageInfo &info, YUVStrideInfo &strides);
H A Dpixel_yuv_ext_utils.h33 uint8_t *dstPixels; member
47 uint8_t* dstPixels, YUVStrideInfo& dstStrides, OpenSourceLibyuv::RotationMode &rotateNum);
H A Dimage_utils.h51 static void BGRAToARGB(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount);
52 static void ARGBToBGRA(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount);
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dpixel_yuv_utils.cpp125 uint8_t *dstY = dstPixels + yuvDataInfo.yOffset; in WriteDataNV12Convert()
126 uint8_t *dstUV = dstPixels + yuvDataInfo.uvOffset; in WriteDataNV12Convert()
152 uint16_t *dstY = dstPixels + yuvDataInfo.yOffset; in WriteDataNV12P010Convert()
153 uint16_t *dstUV = dstPixels + yuvDataInfo.uvOffset; in WriteDataNV12P010Convert()
178 if (srcPixels == nullptr || dstPixels == nullptr) { in WriteYuvConvert()
464 FillDstFrameInfo(dstFrame, dstPixels, dstInfo); in YuvScale()
725 void *dstPixels, const ImageInfo &dstInfo) in ReadYuvConvert() argument
727 if (srcPixels == nullptr || dstPixels == nullptr) { in ReadYuvConvert()
979 uint8_t *dstY = dstPixels; in Yuv420SPTranslate()
980 uint8_t *dstUV = dstPixels + strides.uvOffset; in Yuv420SPTranslate()
[all …]
H A Dpixel_yuv_ext_utils.cpp181 uint16_t* dstY = dstPixels.get(); in NV12P010Rotate()
182 uint16_t* dstU = dstPixels.get() + GetYSize(info.yStride, size.srcH); in NV12P010Rotate()
183 uint16_t* dstV = dstPixels.get() + GetVOffset(info.yStride, size.srcH); in NV12P010Rotate()
204 uint16_t* dstbuffer = reinterpret_cast<uint16_t *>(yuvPixels.dstPixels); in NV12P010Rotate()
218 …Size& dstSize, uint8_t* dstPixels, YUVStrideInfo& dstStrides, OpenSourceLibyuv::RotationMode &rota… in YuvRotate() argument
225 YuvPixels yuvPixels = {srcPixels, dstPixels, 0, 0}; in YuvRotate()
232 if (!NV12Rotate(srcPixels, pixelSize, info, rotateNum, dstPixels, dstStrides)) { in YuvRotate()
336 uint16_t *dstBuffer = reinterpret_cast<uint16_t *>(yuvPixels.dstPixels); in ScaleP010()
344 uint16_t* dstY = dstPixels.get(); in ScaleP010()
345 uint16_t* dstU = dstPixels.get() + GetYSize(srcYStride, srcHeight); in ScaleP010()
[all …]
H A Dimage_utils.cpp414 static void ReversePixels(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in ReversePixels() argument
421 uint8_t *dst = dstPixels; in ReversePixels()
433 void ImageUtils::BGRAToARGB(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in BGRAToARGB() argument
436 ReversePixels(srcPixels, dstPixels, byteCount); in BGRAToARGB()
439 void ImageUtils::ARGBToBGRA(uint8_t* srcPixels, uint8_t* dstPixels, uint32_t byteCount) in ARGBToBGRA() argument
441 ReversePixels(srcPixels, dstPixels, byteCount); in ARGBToBGRA()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpixel_convert.cpp1096 void *dstPixels, const FFMPEG_CONVERT_INFO& dstInfo) in FFMpegConvert() argument
1160 void *dstPixels, PixelFormat dstpixelmap) in ConvertForFFMPEG() argument
1189 void *dstPixels, ImageInfo dstInfo) in P010ConvertRGBA1010102() argument
1230 void *dstPixels, ImageInfo dstInfo) in ConvertRGBA1010102ToYUV() argument
1271 void *dstPixels, const ImageInfo &dstInfo) in YUVConvertRGB() argument
1313 void *dstPixels, const ImageInfo &dstInfo) in ConvertFromYUV() argument
1339 void *dstPixels, const ImageInfo &dstInfo) in ConvertFromP010() argument
1387 void *dstPixels, const ImageInfo &dstInfo) in RGBConvertYUV() argument
1427 void *dstPixels, const ImageInfo &dstInfo) in ConvertToYUV() argument
1452 void *dstPixels, const ImageInfo &dstInfo) in ConvertToP010() argument
[all …]
H A Dpost_proc.cpp194 bool PostProc::CopyPixels(PixelMap& pixelMap, uint8_t* dstPixels, const Size& dstSize, in CopyPixels() argument
222 dstStartPixel = dstPixels + scanLine * targetRowStride; in CopyPixels()
246 uint8_t *dstPixels = nullptr; in CenterDisplay() local
251 if (!AllocHeapBuffer(bufferSize, &dstPixels)) { in CenterDisplay()
255 dstPixels = AllocDmaMemory(dstImageInfo, bufferSize, &nativeBuffer, targetRowStride); in CenterDisplay()
257 dstPixels = AllocSharedMemory(dstImageInfo.size, bufferSize, fd, pixelMap.GetUniqueId()); in CenterDisplay()
259 if (dstPixels == nullptr) { in CenterDisplay()
265 ReleaseBuffer(pixelMap.GetAllocatorType(), fd, bufferSize, &dstPixels, nativeBuffer); in CenterDisplay()
270 pixelMap.SetPixelsAddr(dstPixels, nullptr, bufferSize, AllocatorType::HEAP_ALLOC, nullptr); in CenterDisplay()
928 uint8_t *dstPixels[FFMPEG_NUM] = {}; in ScalePixelMapEx() local
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/include/
H A Dpixel_convert_adapter.h40 void *dstPixels, const Position &dstPos, uint32_t dstRowBytes,
43 const ImageInfo &srcInfo, void *dstPixels, uint32_t dstRowBytes,
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_bitmap.cpp142 void* dstPixels, size_t dstRowBytes, int32_t srcX, int32_t srcY) in OH_Drawing_BitmapReadPixels() argument
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()
/ohos5.0/foundation/multimedia/av_session/frameworks/native/session/src/
H A Davsession_pixel_map_adapter.cpp80 bool AVSessionPixelMapAdapter::CopyPixMapToDst(Media::PixelMap &source, void* dstPixels, uint32_t b… in CopyPixMapToDst() argument
87 if (memcpy_s(dstPixels, source.GetRowBytes(), in CopyPixMapToDst()
93 dstPixels = reinterpret_cast<uint8_t *>(dstPixels) + source.GetRowBytes(); in CopyPixMapToDst()
97 if (memcpy_s(dstPixels, bufferSize, source.GetPixels(), bufferSize) != 0) { in CopyPixMapToDst()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dskia_image.cpp32 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()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_bitmap.cpp109 bool SkiaBitmap::ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in ReadPixels() argument
113 return skiaBitmap_.readPixels(skImageInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels()
152 void* dstPixels = dst.GetPixels(); in CopyPixels() local
158 skiaBitmap_.readPixels(skImageInfo, dstPixels, dst.GetRowBytes(), srcX, srcY); in CopyPixels()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/
H A Dbitmap.cpp85 bool Bitmap::ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in ReadPixels() argument
88 return bmpImplPtr->ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels()
H A Dimage.cpp176 bool Image::ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in ReadPixels() argument
179 return imageImplPtr->ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_map.cpp702 if (dstPixels == nullptr) { in UpdatePixelsAlpha()
723 dstPixels[i] = ALPHA_OPAQUE; in UpdatePixelsAlpha()
823 void *dstPixels = nullptr; in SourceCropAndConvert() local
827 dstPixels = malloc(uBufferSize); in SourceCropAndConvert()
829 if (dstPixels == nullptr) { in SourceCropAndConvert()
910 dstPixels = reinterpret_cast<uint8_t *>(dstPixels) + source.GetRowStride(); in CopyPixMapToDst()
967 void *dstPixels = nullptr; in CopyPixelMap() local
978 dstPixels = memory->data.data; in CopyPixelMap()
980 dstPixels = malloc(uBufferSize); in CopyPixelMap()
982 if (dstPixels == nullptr) { in CopyPixelMap()
[all …]
/ohos5.0/foundation/multimedia/av_session/frameworks/native/session/include/
H A Davsession_pixel_map_adapter.h32 static bool CopyPixMapToDst(Media::PixelMap &source, void* dstPixels, uint32_t bufferSize);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/
H A Ddrawing_bitmap.h191 void* dstPixels, size_t dstRowBytes, int32_t srcX, int32_t srcY);
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_bitmap.h73 …const TestingImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int32_t srcX, int32_t srcY) … in ReadPixels() argument
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/
H A Dcanvas_test.cpp322 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()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/
H A Dbitmap.h79 bool ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,

123