Go to the source code of this file.
◆ find_best_wrapper
| #define find_best_wrapper |
( |
| name, |
|
|
| list ) |
Value:
{ \
return best; \
}
#define i(width, name, range_min, range_max)
enum AVPixelFormat pixfmt
enum AVPixelFormat av_find_best_pix_fmt_of_2(enum AVPixelFormat dst_pix_fmt1, enum AVPixelFormat dst_pix_fmt2, enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr)
Compute what kind of losses will occur when converting from one specific pixel format to another.
AVPixelFormat
Pixel format.
#define FF_ARRAY_ELEMS(a)
Definition at line 81 of file pixfmt_best.c.
◆ TEST
| #define TEST |
( |
| input, |
|
|
| expected ) |
Value: test(input, expected, &pass, &
fail, find_best_base)
static void test(const char *pattern, const char *host)
Referenced by main().
◆ TEST_SEMIPLANAR
| #define TEST_SEMIPLANAR |
( |
| input, |
|
|
| expected ) |
Value: test(input, expected, &pass, &
fail, find_best_seminplanar)
Referenced by main().
◆ TEST_PACKED
| #define TEST_PACKED |
( |
| input, |
|
|
| expected ) |
Value: test(input, expected, &pass, &
fail, find_best_packed)
Referenced by main().
◆ TEST_SUBSAMPLED
| #define TEST_SUBSAMPLED |
( |
| input, |
|
|
| expected ) |
Value: test(input, expected, &pass, &
fail, find_best_subsampled)
Referenced by main().
◆ TEST_DEPTH_CHROMA
| #define TEST_DEPTH_CHROMA |
( |
| input, |
|
|
| expected ) |
Value: test(input, expected, &pass, &
fail, find_best_depthchroma)
Referenced by main().
◆ find_best_t
◆ find_best_wrapper()
◆ main()
◆ pixfmt_list
Initial value:= {
}
#define AV_PIX_FMT_YUV420P16
#define AV_PIX_FMT_YUV420P10
#define AV_PIX_FMT_YUV422P10
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ AV_PIX_FMT_VAAPI
Hardware acceleration through VA-API, data[3] contains a VASurfaceID.
@ AV_PIX_FMT_MONOWHITE
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb.
@ AV_PIX_FMT_VDPAU
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
#define AV_PIX_FMT_GRAY10
#define AV_PIX_FMT_RGB565
#define AV_PIX_FMT_YUV422P16
#define AV_PIX_FMT_GRAY16
#define AV_PIX_FMT_YUV444P16
#define AV_PIX_FMT_YUV444P10
Definition at line 21 of file pixfmt_best.c.
Referenced by find_best_wrapper(), and main().
◆ semiplanar_list
Initial value:= {
}
@ AV_PIX_FMT_NV12
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
@ AV_PIX_FMT_NV24
planar YUV 4:4:4, 24bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
@ AV_PIX_FMT_NV16
interleaved chroma YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition at line 42 of file pixfmt_best.c.
Referenced by find_best_wrapper(), and main().
◆ packed_list
Initial value:= {
}
@ AV_PIX_FMT_VUYX
packed VUYX 4:4:4:4, 32bpp, Variant of VUYA where alpha channel is left undefined
@ AV_PIX_FMT_YUYV422
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
Definition at line 55 of file pixfmt_best.c.
Referenced by find_best_wrapper(), and main().
◆ subsampled_list
◆ depthchroma_list