ImageFormatString
功能
用于ImageFormat枚举值与其相应字符串的映射。
结构定义
static const std::map<ImageFormat, std::string> IMAGE_FORMAT_STRING = {
{ImageFormat::YUV_400, "YUV_400"},
{ImageFormat::YUV_SP_420, "YUV_SP_420"},
{ImageFormat::YVU_SP_420, "YVU_SP_420"},
{ImageFormat::YUV_SP_422, "YUV_SP_422"},
{ImageFormat::YVU_SP_422, "YVU_SP_422"},
{ImageFormat::YUV_SP_444, "YUV_SP_444"},
{ImageFormat::YVU_SP_444, "YVU_SP_444"},
{ImageFormat::YUYV_PACKED_422, "YUYV_PACKED_422"},
{ImageFormat::UYVY_PACKED_422, "UYVY_PACKED_422"},
{ImageFormat::YVYU_PACKED_422, "YVYU_PACKED_422"},
{ImageFormat::VYUY_PACKED_422, "VYUY_PACKED_422"},
{ImageFormat::YUV_PACKED_444, "YUV_PACKED_444"},
{ImageFormat::RGB_888, "RGB_888"},
{ImageFormat::BGR_888, "BGR_888"},
{ImageFormat::ARGB_8888, "ARGB_8888"},
{ImageFormat::ABGR_8888, "ABGR_8888"},
{ImageFormat::RGBA_8888, "RGBA_8888"},
{ImageFormat::BGRA_8888, "BGRA_8888"},
};
参数说明
参数名 |
说明 |
|---|---|
ImageFormat::YUV_400, "YUV_400" |
YUV_400的图像格式枚举值与其字符串的映射。 |
ImageFormat::YUV_SP_420, "YUV_SP_420" |
YUV_SP_420的图像格式枚举值与其字符串的映射。 |
ImageFormat::YVU_SP_420, "YVU_SP_420" |
YVU_SP_420的图像格式枚举值与其字符串的映射。 |
ImageFormat::YUV_SP_422, "YUV_SP_422" |
YUV_SP_422的图像格式枚举值与其字符串的映射。 |
ImageFormat::YVU_SP_422, "YVU_SP_422" |
YVU_SP_422的图像格式枚举值与其字符串的映射。 |
ImageFormat::YUV_SP_444, "YUV_SP_444" |
YUV_SP_444的图像格式枚举值与其字符串的映射。 |
ImageFormat::YVU_SP_444, "YVU_SP_444" |
YVU_SP_444的图像格式枚举值与其字符串的映射。 |
ImageFormat::YUYV_PACKED_422, "YUYV_PACKED_422" |
YUYV_PACKED_422的图像格式枚举值与其字符串的映射。 |
ImageFormat::UYVY_PACKED_422, "UYVY_PACKED_422" |
UYVY_PACKED_422的图像格式枚举值与其字符串的映射。 |
ImageFormat::YVYU_PACKED_422, "YVYU_PACKED_422" |
YVYU_PACKED_422的图像格式枚举值与其字符串的映射。 |
ImageFormat::VYUY_PACKED_422, "VYUY_PACKED_422" |
VYUY_PACKED_422的图像格式枚举值与其字符串的映射。 |
ImageFormat::YUV_PACKED_444, "YUV_PACKED_444" |
YUV_PACKED_444的图像格式枚举值与其字符串的映射。 |
ImageFormat::RGB_888, "RGB_888" |
RGB_888的图像格式枚举值与其字符串的映射。 |
ImageFormat::BGR_888, "BGR_888" |
BGR_888的图像格式枚举值与其字符串的映射。 |
ImageFormat::ARGB_8888, "ARGB_8888" |
ARGB_8888的图像格式枚举值与其字符串的映射。 |
ImageFormat::ABGR_8888, "ABGR_8888" |
ABGR_8888的图像格式枚举值与其字符串的映射。 |
ImageFormat::RGBA_8888, "RGBA_8888" |
RGBA_8888的图像格式枚举值与其字符串的映射。 |
ImageFormat::BGRA_8888, "BGRA_8888" |
BGRA_8888的图像格式枚举值与其字符串的映射。 |