FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#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:109
#define pass
Definition: fft_template.c:593
if(ret< 0)
Definition: vf_mcdeint.c:279
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:2335

Referenced by main().

Function Documentation

static enum AVPixelFormat find_best ( enum AVPixelFormat  pixfmt)
static

Definition at line 42 of file pixfmt_best.c.

int main ( void  )

Definition at line 52 of file pixfmt_best.c.

Variable Documentation

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:361
#define AV_PIX_FMT_YUV444P16
Definition: pixfmt.h:392
#define AV_PIX_FMT_RGB48
Definition: pixfmt.h:365
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:382
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:363
#define AV_PIX_FMT_YUV420P16
Definition: pixfmt.h:390
#define AV_PIX_FMT_YUV420P10
Definition: pixfmt.h:379
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
Definition: pixfmt.h:209
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:380
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:366
#define AV_PIX_FMT_YUV422P16
Definition: pixfmt.h:391

Definition at line 21 of file pixfmt_best.c.

Referenced by find_best(), and main().