/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | pixel_yuv_ext_utils.cpp | 104 const uint8_t *srcY = sample + info.yOffset; in Yuv420ToBGRA() local 109 converter.NV12ToARGB(srcY, info.yStride, srcUV, info.uvStride, in Yuv420ToBGRA() 112 converter.NV21ToARGB(srcY, info.yStride, srcUV, info.uvStride, in Yuv420ToBGRA() 140 uint8_t *srcY = src + info.yOffset; in NV12Rotate() local 153 if (converter.NV12ToI420Rotate(srcY, srcYStride, srcUV, srcUVStride, in NV12Rotate() 180 uint16_t* srcY = srcbuffer + info.yOffset; in NV12P010Rotate() local 187 if (converter.P010ToI010(srcY, info.yStride, srcUV, GetUVStride(info.yStride), in NV12P010Rotate() 324 uint16_t* srcY = src + srcStrides.yOffset; in CopyP010Pixels() local 325 uint16_t* srcUV = srcY + srcStrides.uvOffset; in CopyP010Pixels() 330 errno_t ret = memcpy_s(dstY, stride * BYTE_PER_PIXEL, srcY, strid in CopyP010Pixels() 367 uint16_t* srcY = srcPixels.get(); ScaleP010() local 429 uint8_t* srcY = src + yuvInfo.yuvDataInfo.yOffset; ScaleYuv420() local 458 uint8_t* srcY = src + yuvInfo.yuvDataInfo.yOffset; ScaleYuv420() local 482 uint8_t *srcY = src + info.yOffset; FlipXaxis() local 503 uint8_t *srcY = src + info.yOffset; Mirror() local [all...] |
H A D | pixel_yuv_utils.cpp | 841 uint8_t *srcY = srcPixels + yuvInfo.yOffset; in Yuv420SPWritePixels() local 846 *(srcY + y * yuvInfo.yStride + x) = colorY; in Yuv420SPWritePixels() 870 uint16_t *srcY = srcPixels + yuvInfo.yOffset; in P010WritePixels() local 875 *(srcY + y * yuvInfo.yStride + x) = colorY; in P010WritePixels() 916 uint8_t *srcY = srcPixels + yuvDataInfo.yOffset; in Yuv420SPWritePixel() local 922 *(srcY + (pos.y * yuvDataInfo.yStride + pos.x)) = colorY; in Yuv420SPWritePixel() 936 uint16_t *srcY = srcPixels + yuvDataInfo.yOffset; in P010WritePixel() local 937 uint16_t *srcUV = srcY + yuvDataInfo.uvOffset; in P010WritePixel() 942 *(srcY + (pos.y * yuvDataInfo.yStride + pos.x)) = colorY; in P010WritePixel() 977 const uint8_t *srcY in Yuv420SPTranslate() local 1009 const uint16_t *srcY = yuvPixels.srcPixels + yuvInfo.yOffset; P010Translate() local [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/jpeg_yuv_decoder/ |
H A D | jpeg_yuvdata_converter.cpp | 145 const uint8_t* srcY = nullptr; in CopyYData() local 147 srcY = src.planes[YCOM] + k * src.strides[YCOM]; in CopyYData() 149 bool ret = CopyLineData(outY, dest.strides[YCOM], srcY, src.strides[YCOM]); in CopyYData() 154 if (dest.planeHeight[YCOM] > height && srcY) { in CopyYData() 156 bool ret = CopyLineData(outY, dest.strides[YCOM], srcY, src.strides[YCOM]); in CopyYData() 333 const uint8_t* srcY = nullptr; in I400ToI420_wrapper() local 335 srcY = src.planes[YCOM] + k * src.strides[YCOM]; in I400ToI420_wrapper() 337 CopyLineData(outY, dest.strides[YCOM], srcY, std::min(src.strides[YCOM], dest.strides[YCOM])); in I400ToI420_wrapper() 339 if (dest.planeHeight[YCOM] > height && srcY) { in I400ToI420_wrapper() 341 CopyLineData(outY, dest.strides[YCOM], srcY, sr in I400ToI420_wrapper() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/ |
H A D | bitmap.cpp | 85 int32_t srcX, int32_t srcY) const in ReadPixels() 87 return bmpImplPtr->ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels()
|
H A D | image.cpp | 172 int32_t srcX, int32_t srcY) const in ReadPixels() 174 return imageImplPtr->ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels()
|
/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() 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
|
H A D | drawing_canvas.cpp | 776 void* dstPixels, uint32_t dstRowBytes, int32_t srcX, int32_t srcY) in OH_Drawing_CanvasReadPixels() 785 return canvas->ReadPixels(imageInfo, dstPixels, dstRowBytes, srcX, srcY); in OH_Drawing_CanvasReadPixels() 789 int32_t srcX, int32_t srcY) in OH_Drawing_CanvasReadPixelsToBitmap() 796 return canvas->ReadPixels(CastToBitmap(*cBitmap), srcX, srcY); in OH_Drawing_CanvasReadPixelsToBitmap() 775 OH_Drawing_CanvasReadPixels(OH_Drawing_Canvas* cCanvas, OH_Drawing_Image_Info* cImageInfo, void* dstPixels, uint32_t dstRowBytes, int32_t srcX, int32_t srcY) OH_Drawing_CanvasReadPixels() argument 788 OH_Drawing_CanvasReadPixelsToBitmap(OH_Drawing_Canvas* cCanvas, OH_Drawing_Bitmap* cBitmap, int32_t srcX, int32_t srcY) OH_Drawing_CanvasReadPixelsToBitmap() argument
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_bitmap.cpp | 101 int32_t srcX, int32_t srcY) const in ReadPixels() 104 return skiaBitmap_.readPixels(skImageInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels() 147 int srcY = srcTop; in CopyPixels() local 149 skiaBitmap_.readPixels(skImageInfo, dstPixels, dst.GetRowBytes(), srcX, srcY); in CopyPixels()
|
H A D | skia_bitmap.h | 47 int32_t srcX, int32_t srcY) const override;
|
H A D | skia_canvas.h | 75 int srcX, int srcY) override; 76 bool ReadPixels(const Bitmap& dstBitmap, int srcX, int srcY) override;
|
H A D | skia_image.h | 85 int32_t srcX, int32_t srcY) const override;
|
H A D | skia_canvas.cpp | 171 int srcX, int srcY) in ReadPixels() 183 return skCanvas_->readPixels(info, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels() 186 bool SkiaCanvas::ReadPixels(const Bitmap& dstBitmap, int srcX, int srcY) in ReadPixels() argument 193 return skCanvas_->readPixels(skBitmap, srcX, srcY); in ReadPixels() 170 ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY) ReadPixels() argument
|
/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), 185 * @param srcY Row index whose absolute value is less than height. 191 void* dstPixels, size_t dstRowBytes, int32_t srcX, int32_t srcY);
|
H A D | drawing_canvas.h | 778 * @param srcY offset into canvas writable pixels on y-axis. 784 void* dstPixels, uint32_t dstRowBytes, int32_t srcX, int32_t srcY); 793 * @param srcY offset into canvas writable pixels on y-axis. 798 bool OH_Drawing_CanvasReadPixelsToBitmap(OH_Drawing_Canvas*, OH_Drawing_Bitmap*, int32_t srcX, int32_t srcY);
|
/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()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | bitmap_impl.h | 46 int32_t srcX, int32_t srcY) const = 0;
|
H A D | image_impl.h | 87 int32_t srcX, int32_t srcY) const = 0;
|
H A D | core_canvas_impl.h | 81 int srcX, int srcY) = 0; 82 virtual bool ReadPixels(const Bitmap& dstBitmap, int srcX, int srcY) = 0;
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/ |
H A D | core_canvas.cpp | 181 int srcX, int srcY) in ReadPixels() 183 return impl_->ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels() 186 bool CoreCanvas::ReadPixels(const Bitmap& dstBitmap, int srcX, int srcY) in ReadPixels() argument 188 return impl_->ReadPixels(dstBitmap, srcX, srcY); in ReadPixels() 180 ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY) ReadPixels() argument
|
H A D | core_canvas.h | 200 int srcX, int srcY); 202 bool ReadPixels(const Bitmap& dstBitmap, int srcX, int srcY);
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | basic_transformer.cpp | 358 uint32_t srcY = (pt.y * MULTI_65536) - HALF_BASIC < 0 ? 0 : (pt.y * MULTI_65536) - HALF_BASIC; in BilinearProc() 366 procArgs.suby = GetSubValue(srcY); in BilinearProc() 371 aroundPos.y0 = RightShift16Bit(srcY, pixmapInfo.imageInfo.size.height - 1); in BilinearProc() 372 aroundPos.y1 = RightShift16Bit(srcY + BASIC, pixmapInfo.imageInfo.size.height - 1); in BilinearProc()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/ |
H A D | bitmap.h | 58 * @brief Copies a Rect of pixels from Bitmap to dstPixels. Copy starts at (srcX, srcY), 67 * srcX and srcY may be negative to copy only top or left of source. Returns false 69 * Returns false if abs(srcX) >= Bitmap GetWidth(), or if abs(srcY) >= Bitmap GetHeight(). 75 * @param srcY row index whose absolute value is less than GetHeight() 79 int32_t srcX, int32_t srcY) const; 119 * srcX and srcY may be negative to copy only top or left of source. Returns false
|
H A D | image.h | 405 int32_t srcX, int32_t srcY) const;
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/bitmap_fuzzer/ |
H A D | bitmap_fuzzer.cpp | 101 int32_t srcY = GetObject<int32_t>() % height; in BitmapFuzzTest003() local 108 bitmap.ReadPixels(imageInfo, pixels, dstRowBytes, srcX, srcY); in BitmapFuzzTest003()
|
/foundation/multimedia/player_framework/services/engine/histreamer/avmetadatahelper/ |
H A D | av_thumbnail_generator.cpp | 381 uint16_t *srcY = reinterpret_cast<uint16_t *>(srcP010 + strideWidth * i); in ConvertP010ToNV12() local 384 *dstY = static_cast<uint8_t>(*srcY >> SHIFT_BITS_P010_2_NV12); in ConvertP010ToNV12() 385 srcY++; in ConvertP010ToNV12()
|