FFmpeg  4.0
Macros | Functions | Variables
pixfmt_best.c File Reference
#include "libavutil/pixdesc.c"

Go to the source code of this file.

Macros

#define TEST(input, expected)
 

Functions

static enum AVPixelFormat find_best (enum AVPixelFormat pixfmt)
 
int main (void)
 

Variables

static enum AVPixelFormat pixfmt_list []
 

Macro Definition Documentation

◆ TEST

#define TEST (   input,
  expected 
)
Value:
do { \
output = find_best(input); \
if (output != expected) { \
printf("Matching %s: got %s, expected %s\n", \
av_get_pix_fmt_name(expected)); \
++fail; \
} else \
++pass; \
} while (0)
static enum AVPixelFormat find_best(enum AVPixelFormat pixfmt)
Definition: pixfmt_best.c:42
#define fail()
Definition: checkasm.h:116
#define pass
Definition: fft_template.c:593
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.
Definition: pixdesc.c:2279

Referenced by main().

Function Documentation

◆ find_best()

static enum AVPixelFormat find_best ( enum AVPixelFormat  pixfmt)
static

Definition at line 42 of file pixfmt_best.c.

◆ main()

int main ( void  )

Definition at line 52 of file pixfmt_best.c.

Variable Documentation

◆ pixfmt_list

enum AVPixelFormat pixfmt_list[]
static
Initial value:
= {
}
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:67
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:64
#define AV_PIX_FMT_GRAY10
Definition: pixfmt.h:350
#define AV_PIX_FMT_YUV444P16
Definition: pixfmt.h:381
#define AV_PIX_FMT_RGB48
Definition: pixfmt.h:354
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:371
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:66
#define AV_PIX_FMT_GRAY16
Definition: pixfmt.h:352
#define AV_PIX_FMT_YUV420P16
Definition: pixfmt.h:379
#define AV_PIX_FMT_YUV420P10
Definition: pixfmt.h:368
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
Definition: pixfmt.h:193
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:369
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:62
Y , 8bpp.
Definition: pixfmt.h:70
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:71
#define AV_PIX_FMT_RGB565
Definition: pixfmt.h:355
#define AV_PIX_FMT_YUV422P16
Definition: pixfmt.h:380

Definition at line 21 of file pixfmt_best.c.

Referenced by find_best(), and main().