---
title: ImageFormat
description: "图像格式，用于描述解码后Image类的数据格式。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0165.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0165.html
indexId: 6da2f4acd3605af746ad889e02ac5c65d155553362860fba47cdb731c5857250102
---
# ImageFormat

#### 功能

图像格式，用于描述解码后Image类的数据格式。


#### 结构定义

```
enum class ImageFormat {
YUV_400 = 0,
YUV_SP_420 = 1,
YVU_SP_420 = 2,
YUV_SP_422 = 3,
YVU_SP_422 = 4,
YUV_SP_444 = 5,
YVU_SP_444 = 6,
YUYV_PACKED_422 = 7,
UYVY_PACKED_422 = 8,
YVYU_PACKED_422 = 9,
VYUY_PACKED_422 = 10,
YUV_PACKED_444 = 11,
RGB_888 = 12,
BGR_888 = 13,
ARGB_8888 = 14,
ABGR_8888 = 15,
RGBA_8888 = 16,
BGRA_8888 = 17,
};
```


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| YUV\_400 | YUV\_400 的图像格式。 |
| YUV\_SP\_420 | YUV\_SP\_420 的图像格式。 |
| YVU\_SP\_420 | YVU\_SP\_420 的图像格式。 |
| YUV\_SP\_422 | YUV\_SP\_422 的图像格式。 |
| YVU\_SP\_422 | YVU\_SP\_422 的图像格式。 |
| YUV\_SP\_444 | YUV\_SP\_444 的图像格式。 |
| YVU\_SP\_444 | YVU\_SP\_444 的图像格式。 |
| YUYV\_PACKED\_422 | YUYV\_PACKED\_422 的图像格式。 |
| UYVY\_PACKED\_422 | UYVY\_PACKED\_422 的图像格式。 |
| YVYU\_PACKED\_422 | YVYU\_PACKED\_422 的图像格式。 |
| VYUY\_PACKED\_422 | VYUY\_PACKED\_422 的图像格式。 |
| YUV\_PACKED\_444 | YUV\_PACKED\_444 的图像格式。 |
| RGB\_888 | RGB\_888 的图像格式。 |
| BGR\_888 | BGR\_888 的图像格式。 |
| ARGB\_8888 | ARGB\_8888 的图像格式。 |
| ABGR\_8888 | ABGR\_8888 的图像格式。 |
| RGBA\_8888 | RGBA\_8888 的图像格式。 |
| BGRA\_8888 | BGRA\_8888 的图像格式。 |
