diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-01-30 21:33:48 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-02-12 10:19:26 +0100 |
commit | 28259c13db784d4b4175ca323dc1eeffec7f919b (patch) | |
tree | 92dc1af49261364777dff550715c21709bc4fdca /libavcodec/nvenc.c | |
parent | fb25d99b0a5e21fb8cc184c7a9d3736387778266 (diff) | |
download | ffmpeg-28259c13db784d4b4175ca323dc1eeffec7f919b.tar.gz |
nvenc: factor out the pixel format list
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 2dfea9431e..53f0b13e16 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -76,6 +76,13 @@ } \ } while (0) +const enum AVPixelFormat ff_nvenc_pix_fmts[] = { + AV_PIX_FMT_NV12, + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_YUV444P, + AV_PIX_FMT_NONE +}; + static const struct { NVENCSTATUS nverr; int averr; |