21 #include <vpx/vpx_codec.h> 25 #if CONFIG_LIBVPX_VP9_ENCODER 26 #include <vpx/vpx_encoder.h> 27 #include <vpx/vp8cx.h> 36 #if CONFIG_LIBVPX_VP9_ENCODER 71 #if CONFIG_LIBVPX_VP9_ENCODER 73 vpx_codec_caps_t codec_caps = vpx_codec_get_caps(vpx_codec_vp9_cx());
74 if (codec_caps & VPX_CODEC_CAP_HIGHBITDEPTH)
75 codec->
pix_fmts = vp9_pix_fmts_highbd;
77 codec->
pix_fmts = vp9_pix_fmts_highcol;
#define AV_PIX_FMT_YUV440P10
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
#define AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_YUV420P12
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
#define AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV444P10
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
enum AVPixelFormat * pix_fmts
array of supported pixel formats, or NULL if unknown, array is terminated by -1
av_cold void ff_vp9_init_static(AVCodec *codec)
#define AV_PIX_FMT_YUV420P10
#define AV_PIX_FMT_YUV440P12
#define AV_PIX_FMT_GBRP12
static enum AVPixelFormat vp9_pix_fmts_def[]
#define AV_PIX_FMT_YUV422P10
#define AV_PIX_FMT_YUV444P12
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
AVPixelFormat
Pixel format.