24.04
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CORE_UTILS_FORMATUTILS_H
25 #define ARM_COMPUTE_CORE_UTILS_FORMATUTILS_H
int plane_idx_from_channel(Format format, Channel channel)
Return the plane index of a given channel given an input format.
@ RGB888
3 channels, 1 U8 per channel
const std::string & string_from_format(Format format)
Convert a tensor format into a string.
size_t num_channels_from_format(Format format)
Return the number of channels for a given single-planar pixel format.
#define ARM_COMPUTE_ERROR(msg)
Print the given message then throw an std::runtime_error.
size_t num_planes_from_format(Format format)
Return the number of planes for a given format.
@ UV88
2 channel, 1 U8 per channel
@ IYUV
A 3 plane of 8-bit 4:2:0 sampled Y, U, V planes.
@ RGBA8888
4 channels, 1 U8 per channel
@ U8
1 channel, 1 U8 per channel
Format
Image colour formats.
Channel
Available channels.
@ S32
1 channel, 1 S32 per channel
@ YUYV422
A single plane of 32-bit macro pixel of Y0, U0, Y1, V0 bytes.
@ YUV444
A 3 plane of 8 bit 4:4:4 sampled Y, U, V planes.
@ UYVY422
A single plane of 32-bit macro pixel of U0, Y0, V0, Y1 byte.
@ F32
1 channel, 1 F32 per channel
Copyright (c) 2017-2024 Arm Limited.
@ NV12
A 2 plane YUV format of Luma (Y) and interleaved UV data at 4:2:0 sampling.
int channel_idx_from_format(Format format, Channel channel)
Return the channel index of a given channel given an input format.
@ F16
1 channel, 1 F16 per channel
@ S16
1 channel, 1 S16 per channel
size_t pixel_size_from_format(Format format)
The size in bytes of the pixel format.
@ BFLOAT16
16-bit brain floating-point number
@ NV21
A 2 plane YUV format of Luma (Y) and interleaved VU data at 4:2:0 sampling.
@ U32
1 channel, 1 U32 per channel
@ U16
1 channel, 1 U16 per channel