const char * u_format_str(enum xrt_format f)
Return string for this format.
Definition: u_format.c:16
uint32_t u_format_block_width(enum xrt_format f)
Returns the width of the block for the given format.
Definition: u_format.c:58
void u_format_size_for_dimensions(enum xrt_format f, uint32_t width, uint32_t height, size_t *out_stride, size_t *out_size)
Calculate stride and size for the format and given width and height.
Definition: u_format.c:131
Common defines and enums for XRT.
bool u_format_is_blocks(enum xrt_format f)
Is this format block based, also returns true for formats that 1x1 blocks.
Definition: u_format.c:35
size_t u_format_block_size(enum xrt_format f)
Returns the size of the block for the given format.
Definition: u_format.c:104
uint32_t u_format_block_height(enum xrt_format f)
Returns the height of the block for the given format.
Definition: u_format.c:82
xrt_format
Common formats, use u_format_* functions to reason about them.
Definition: xrt_defines.h:60