summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.h
diff options
context:
space:
mode:
authorYogender Gupta <ygupta@nvidia.com>2016-09-24 17:54:58 +0200
committerLuca Barbato <lu_zero@gentoo.org>2016-09-24 18:08:54 +0200
commite02e2515b24bfc37ede6ca1744696230be55e50b (patch)
tree0fd5a51c6e88f213466b5c63eef7bf908f2fb997 /libavcodec/nvenc.h
parent352741b5ead1543d775ccf6040f33023e4491186 (diff)
nvenc: Add some easier to understand presets that match x264 terminology
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r--libavcodec/nvenc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h
index e7e6182196..26c6515c57 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -91,6 +91,9 @@ typedef struct NVENCLibraryContext
enum {
PRESET_DEFAULT,
+ PRESET_SLOW,
+ PRESET_MEDIUM,
+ PRESET_FAST,
PRESET_HP,
PRESET_HQ,
PRESET_BD ,
@@ -111,7 +114,9 @@ enum {
enum {
NVENC_LOWLATENCY = 1,
- NVENC_LOSSLESS,
+ NVENC_LOSSLESS = 2,
+ NVENC_ONE_PASS = 4,
+ NVENC_TWO_PASSES = 8,
};
enum {