37 return back_name && !strcmp(
name, back_name);
156 printf(
"Testing av_get_pix_fmt() / av_get_pix_fmt_name() round-trip\n");
160 printf(
"\nTesting av_color_*_name() / av_color_*_from_name() round-trips\n");
161 printf(
" av_color_range: %s\n",
163 printf(
" av_color_primaries: %s\n",
165 printf(
" av_color_transfer: %s\n",
167 printf(
" av_color_space: %s\n",
169 printf(
" av_chroma_location: %s\n",
171 printf(
" av_alpha_mode: %s\n",
174 printf(
"\nTesting av_chroma_location_enum_to_pos / pos_to_enum round-trip\n");
178 printf(
"\nTesting pixel format descriptors\n");
186 printf(
" %3d unused pixel format values\n",
skip);
189 printf(
" pix fmt %s avg_bpp:%d planes:%d\n",
desc->name,
static void BS_FUNC skip(BSCTX *bc, unsigned int n)
Skip n bits in the buffer.
#define i(width, name, range_min, range_max)
__device__ int printf(const char *,...)
Utility Preprocessor macros.
int av_color_space_from_name(const char *name)
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
int av_chroma_location_from_name(const char *name)
int av_color_transfer_from_name(const char *name)
const char * av_color_space_name(enum AVColorSpace space)
const char * av_color_range_name(enum AVColorRange range)
const char * av_alpha_mode_name(enum AVAlphaMode mode)
const char * av_get_pix_fmt_name(enum AVPixelFormat pix_fmt)
Return the short name for a pixel format, NULL in case pix_fmt is unknown.
int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc)
Return the number of bits per pixel for the pixel format described by pixdesc, including any padding ...
enum AVPixelFormat av_get_pix_fmt(const char *name)
Return the pixel format corresponding to name.
const char * av_chroma_location_name(enum AVChromaLocation location)
int av_color_range_from_name(const char *name)
const char * av_color_transfer_name(enum AVColorTransferCharacteristic transfer)
enum AVChromaLocation av_chroma_location_pos_to_enum(int xpos, int ypos)
Converts swscale x/y chroma position to AVChromaLocation.
const char * av_color_primaries_name(enum AVColorPrimaries primaries)
int av_color_primaries_from_name(const char *name)
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
int av_chroma_location_enum_to_pos(int *xpos, int *ypos, enum AVChromaLocation pos)
Converts AVChromaLocation to swscale x/y chroma position.
enum AVAlphaMode av_alpha_mode_from_name(const char *name)
@ AVCHROMA_LOC_NB
Not part of ABI.
@ AVCHROMA_LOC_UNSPECIFIED
@ AVCOL_RANGE_NB
Not part of ABI.
@ AVALPHA_MODE_NB
Not part of ABI.
@ AV_PIX_FMT_NB
number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of...
@ AVCOL_PRI_NB
Not part of ABI.
@ AVCOL_TRC_NB
Not part of ABI.
@ AVCOL_SPC_NB
Not part of ABI.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
static int test_color_transfer_round_trip(void)
static int test_color_space_round_trip(void)
static int test_color_primaries_round_trip(void)
static int test_color_range_round_trip(void)
static int test_pix_fmt_round_trip(void)
static int test_chroma_location_pos_round_trip(void)
static int test_alpha_mode_round_trip(void)
static int test_chroma_location_round_trip(void)
static int check_name_equivalence(const char *name, const char *back_name)