Home
last modified time | relevance | path

Searched refs:pixelBytes (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc.cpp202 int32_t pixelBytes = pixelMap.GetPixelBytes(); in CopyPixels() local
209 int32_t srcRowBytes = srcWidth * pixelBytes; in CopyPixels()
321 static_cast<uint64_t>(pixelBytes); in CheckScanlineFilter()
384 if (pixelBytes == 0) { in ConvertProc()
411 if (pixelBytes == 0) { in PixelConvertProc()
436 if (pixelBytes == 0) { in AllocBuffer()
446 static_cast<uint64_t>(pixelBytes); in AllocBuffer()
826 int32_t pixelBytes = pixelMap.GetPixelBytes(); in CheckPixelMapSLR() local
827 if (pixelBytes <= 0) { in CheckPixelMapSLR()
833 static_cast<uint64_t>(pixelBytes); in CheckPixelMapSLR()
[all …]
H A Dbasic_transformer.cpp168 int32_t pixelBytes = ImageUtils::GetPixelBytes(inPixmap.imageInfo.pixelFormat); in TransformPixmap() local
169 if (pixelBytes == 0) { in TransformPixmap()
178 ImageUtils::CheckMulOverflow(dstSize.width, dstSize.height, pixelBytes)) { in TransformPixmap()
185 static_cast<uint64_t>(pixelBytes); in TransformPixmap()
208 if (!DrawPixelmap(inPixmap, pixelBytes, dstSize, outPixmap.data)) { in TransformPixmap()
227 bool BasicTransformer::DrawPixelmap(const PixmapInfo &pixmapInfo, const int32_t pixelBytes, const S… in DrawPixelmap() argument
235 uint32_t rb = pixmapInfo.imageInfo.size.width * pixelBytes; in DrawPixelmap()
251 uint32_t shiftBytes = (y * size.width + x) * pixelBytes; in DrawPixelmap()
/ohos5.0/base/update/updater/services/ui/driver/
H A Dgraphic_engine.cpp116 uint8_t pixelBytes = OHOS::DrawUtils::GetByteSizeByColorMode(colorMode_); in GetFBBufferInfo() local
117 if (pixelBytes == 0) { in GetFBBufferInfo()
126 UiRotation::GetInstance().InitRotation(width_, height_, pixelBytes); in GetFBBufferInfo()
129 virAddr_ = std::make_unique<uint8_t[]>(width_ * height_ * pixelBytes); in GetFBBufferInfo()
136 buffInfo_->stride = static_cast<uint32_t>(width_ * pixelBytes); in GetFBBufferInfo()
H A Dui_rotation.cpp27 void UiRotation::InitRotation(int realWidth, int realHeight, uint8_t pixelBytes) in InitRotation() argument
30 ", pixelBytes = " << static_cast<int>(pixelBytes); in InitRotation()
31 pixelBytes_ = pixelBytes; in InitRotation()
H A Dfbdev_driver.cpp128 surface.pixelBytes = vinfo_.bits_per_pixel / 8; // 8: byte bit len in GetGrSurface()
129 surface.width = static_cast<int>(surface.rowBytes / surface.pixelBytes); in GetGrSurface()
H A Dgraphic_drv.h24 unsigned int pixelBytes {};
H A Dui_rotation.h39 void InitRotation(int realWidth, int realHeight, uint8_t pixelBytes);
H A Ddrm_driver.cpp46 surface.pixelBytes = 0; in GetGrSurface()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dimage_utils.cpp153 int pixelBytes = 0; in GetPixelBytes() local
160 pixelBytes = ARGB8888_BYTES; in GetPixelBytes()
163 pixelBytes = ALPHA8_BYTES; in GetPixelBytes()
166 pixelBytes = RGB888_BYTES; in GetPixelBytes()
169 pixelBytes = RGB565_BYTES; in GetPixelBytes()
173 pixelBytes = RGBA_F16_BYTES; in GetPixelBytes()
182 pixelBytes = ASTC_4X4_BYTES; in GetPixelBytes()
186 pixelBytes = NV21P010_BYTES; in GetPixelBytes()
193 return pixelBytes; in GetPixelBytes()
199 uint64_t pixelBytes = static_cast<uint64_t>(GetPixelBytes(format)); in GetRowDataSizeByPixelFormat() local
[all …]
/ohos5.0/base/powermgr/battery_manager/charger/src/
H A Dcharger_graphic_engine.cpp107 uint8_t pixelBytes = OHOS::DrawUtils::GetByteSizeByColorMode(colorMode_); in GetFBBufferInfo() local
108 if (pixelBytes == 0) { in GetFBBufferInfo()
117 virAddr_ = std::make_unique<uint8_t[]>(width_ * height_ * pixelBytes); in GetFBBufferInfo()
124 buffInfo_->stride = static_cast<uint32_t>(width_ * pixelBytes); in GetFBBufferInfo()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/transaction/
H A Drs_ashmem_test.cpp176 int pixelBytes = 4; variable
187 ASSERT_TRUE((int)parcel.GetDataSize() < width * height * pixelBytes);
226 int pixelBytes = 4; variable
237 ASSERT_TRUE((int)parcel.GetDataSize() < width * height * pixelBytes);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_pixelmap.cpp61 static std::vector<uint8_t> GenerateMiniature(const uint8_t* data, size_t size, uint32_t pixelBytes) in GenerateMiniature() argument
70 ((pixelBytes > 0) && (pixelBytes < pixelBytesThreshold)) ? pixelBytes : rgbaBytesPerPixel; in GenerateMiniature()
89 …ctor<uint8_t> GenerateImageData(const uint8_t* data, size_t size, bool isAstc, uint32_t pixelBytes) in GenerateImageData() argument
95 return isAstc ? GenerateMiniatureAstc(data, size) : GenerateMiniature(data, size, pixelBytes); in GenerateImageData()
/ohos5.0/base/powermgr/battery_manager/charger/include/dev/
H A Ddisplay_drv.h28 unsigned int pixelBytes {};
/ohos5.0/drivers/peripheral/display/hal/default_standard/src/display_device/core/
H A Dhdi_layer.cpp185 const int32_t pixelBytes = 4; in SetPixel() local
195 if ((position * pixelBytes) > handle.size) { in SetPixel()
/ohos5.0/drivers/peripheral/display/composer/vdi_base/src/
H A Dhdi_layer.cpp240 const int32_t pixelBytes = 4; in SetPixel() local
249 if ((position * pixelBytes) > handle.size) { in SetPixel()
/ohos5.0/base/powermgr/battery_manager/charger/src/dev/
H A Dfbdev_driver.cpp92 dsInfo.pixelBytes = vinfo_.bits_per_pixel / 8; // 8: byte bit len in GetDisplayInfo()
H A Ddrm_driver.cpp48 dsInfo.pixelBytes = 0; in GetDisplayInfo()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dpost_proc.h66 int32_t pixelBytes, ScanlineFilter &scanlineFilter);
H A Dbasic_transformer.h170 …bool DrawPixelmap(const PixmapInfo &pixmapInfo, const int32_t pixelBytes, const Size &size, uint8_…
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/datastore/
H A Drender_data_store_default_staging.cpp304 const uint32_t pixelBytes = gpuResourceMgr_.GetFormatProperties(ref.handle).bytesPerPixel; in GetImageClearByteSize() local
305 byteSize += (pixelBytes * desc.width * desc.height); // no 3D supported in GetImageClearByteSize()
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hevcdecoder/
H A Dhevc_decoder.cpp1141 int32_t pixelBytes = 1; in DumpOutputBuffer() local
1143 pixelBytes = 2; // 2 in DumpOutputBuffer()
1147 static_cast<int32_t>(cachedFrame_->width * pixelBytes)); in DumpOutputBuffer()
1151 static_cast<int32_t>(cachedFrame_->width * pixelBytes / 2)); // 2 in DumpOutputBuffer()
1155 static_cast<int32_t>(cachedFrame_->width * pixelBytes / 2)); // 2 in DumpOutputBuffer()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpost_proc_test.cpp905 int32_t pixelBytes = 0; variable
909 …uint32_t ret = postProc.CheckScanlineFilter(cropRect, dstImageInfo, pixelMap, pixelBytes, scanline…
913 … ret = postProc.CheckScanlineFilter(cropRect, dstImageInfo, pixelMap, pixelBytes, scanlineFilter);
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/
H A Djpeg_decoder.cpp349 uint32_t pixelBytes = in GetRowBytes() local
351 return decodeInfo_.output_width * pixelBytes; in GetRowBytes()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_map.cpp284 int32_t pixelBytes = ImageUtils::GetPixelBytes(info.pixelFormat); in GetRGBxRowDataSize() local
285 if (pixelBytes < 0) { in GetRGBxRowDataSize()
289 return pixelBytes * info.size.width; in GetRGBxRowDataSize()
715 uint8_t pixelBytes = dstPixelMap.GetPixelBytes(); in UpdatePixelsAlpha() local
722 for (uint32_t i = alphaIndex; i < uBufferSize; i += pixelBytes) { in UpdatePixelsAlpha()