51 const char *
s1 = *(
const char **)a;
52 const char *
s2 = *(
const char **)b;
53 return strcmp(s1, s2);
68 const char *pix_name = pix_desc->
name;
79 qsort(pix_fmts, nb_pix_fmts,
sizeof(*pix_fmts),
cmp_str);
82 for (j = 0; j < nb_pix_fmts; j++)
83 printf(
" %s\n", pix_fmts[j]);
static av_always_inline int isAnyRGB(enum AVPixelFormat pix_fmt)
static enum AVPixelFormat pix_fmt
static av_always_inline int isPlanarRGB(enum AVPixelFormat pix_fmt)
Memory handling functions.
static av_always_inline int is16BPS(enum AVPixelFormat pix_fmt)
int(* cond)(enum AVPixelFormat pix_fmt)
static av_always_inline int isYUV(enum AVPixelFormat pix_fmt)
#define AV_PIX_FMT_BGR32_1
enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc)
static av_always_inline int isBayer(enum AVPixelFormat pix_fmt)
static const struct @257 query_tab[]
#define FF_ARRAY_ELEMS(a)
static av_always_inline int isBE(enum AVPixelFormat pix_fmt)
static av_always_inline int isPlanar(enum AVPixelFormat pix_fmt)
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
static int cmp_str(const void *a, const void *b)
static av_always_inline int isRGB(enum AVPixelFormat pix_fmt)
static av_always_inline int isRGBinInt(enum AVPixelFormat pix_fmt)
static av_always_inline int isPlanarYUV(enum AVPixelFormat pix_fmt)
static enum AVPixelFormat pix_fmts[]
void av_dynarray_add(void *tab_ptr, int *nb_ptr, void *elem)
Add the pointer to an element to a dynamic array.
#define AV_PIX_FMT_RGB32_1
static av_always_inline int isBGRinInt(enum AVPixelFormat pix_fmt)
static av_always_inline int isPackedRGB(enum AVPixelFormat pix_fmt)
static av_always_inline int usePal(enum AVPixelFormat pix_fmt)
static av_always_inline int isPacked(enum AVPixelFormat pix_fmt)
AVPixelFormat
Pixel format.
static av_always_inline int isNBPS(enum AVPixelFormat pix_fmt)
const AVPixFmtDescriptor * av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)
Iterate over all pixel format descriptors known to libavutil.