diff options
author | Andrey Turkin <andrey.turkin@gmail.com> | 2016-05-25 17:26:25 +0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-05-31 15:48:43 +0200 |
commit | 9824321b321448854102070383aa99fa8e56f491 (patch) | |
tree | d14651e51146a1b878bfeb49cbf01c71e39e2594 /libavcodec/nvenc.h | |
parent | faffff88c21c24765e5a3c87ffc657b191c4efc0 (diff) | |
download | ffmpeg-9824321b321448854102070383aa99fa8e56f491.tar.gz |
avcodec/nvenc: convert profile parsing to AVOptions
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r-- | libavcodec/nvenc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h index 5b81fc8667..b5a0a2abf0 100644 --- a/libavcodec/nvenc.h +++ b/libavcodec/nvenc.h @@ -120,6 +120,13 @@ enum { }; enum { + NV_ENC_H264_PROFILE_BASELINE, + NV_ENC_H264_PROFILE_MAIN, + NV_ENC_H264_PROFILE_HIGH, + NV_ENC_H264_PROFILE_HIGH_444P, +}; + +enum { NVENC_LOWLATENCY = 1, NVENC_LOSSLESS = 2, NVENC_ONE_PASS = 4, @@ -160,7 +167,7 @@ typedef struct NvencContext void *nvencoder; int preset; - char *profile; + int profile; char *level; char *tier; int cbr; |