mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
增加PixelFormat宏定义
Signed-off-by: WangJiazhen <wangjiazhen4@huawei.com>
This commit is contained in:
parent
f3941c19f6
commit
2ad599b710
@ -29,6 +29,8 @@ PixelFormat PixelMapOhos::PixelFormatConverter(Media::PixelFormat pixelFormat)
|
||||
return PixelFormat::RGB_565;
|
||||
case Media::PixelFormat::RGBA_8888:
|
||||
return PixelFormat::RGBA_8888;
|
||||
case Media::PixelFormat::RGBA_1010102:
|
||||
return PixelFormat::RGBA_1010102;
|
||||
case Media::PixelFormat::BGRA_8888:
|
||||
return PixelFormat::BGRA_8888;
|
||||
case Media::PixelFormat::ALPHA_8:
|
||||
|
@ -47,6 +47,7 @@ enum class PixelFormat : int32_t {
|
||||
NV21 = 8, // Each pixel is stored on 3/2 bytes.
|
||||
NV12 = 9,
|
||||
CMYK = 10,
|
||||
RGBA_1010102 = 14,
|
||||
};
|
||||
|
||||
enum class AlphaType : int32_t {
|
||||
|
@ -906,6 +906,8 @@ RSColorType ImageProvider::PixelFormatToDrawingColorType(const RefPtr<PixelMap>&
|
||||
return RSColorType::COLORTYPE_RGB_565;
|
||||
case PixelFormat::RGBA_8888:
|
||||
return RSColorType::COLORTYPE_RGBA_8888;
|
||||
case PixelFormat::RGBA_1010102:
|
||||
return RSColorType::COLORTYPE_RGBA_1010102;
|
||||
case PixelFormat::BGRA_8888:
|
||||
return RSColorType::COLORTYPE_BGRA_8888;
|
||||
case PixelFormat::ALPHA_8:
|
||||
|
Loading…
Reference in New Issue
Block a user