summaryrefslogtreecommitdiffstats
path: root/libavcodec/nvenc_hevc.c
diff options
context:
space:
mode:
authorSumit Agarwal <sumita@nvidia.com>2017-05-09 19:54:54 +0530
committerTimo Rothenpieler <timo@rothenpieler.org>2017-05-10 10:22:41 +0200
commit01775730fd1e1877c142518f8cce9d23c47060b1 (patch)
tree19520b5c59789e3d671f03a797e770bd323ae9ea /libavcodec/nvenc_hevc.c
parent18a659d1b653c24de1a691c13f7db1b6e6a95aee (diff)
downloadffmpeg-streaming-01775730fd1e1877c142518f8cce9d23c47060b1.zip
ffmpeg-streaming-01775730fd1e1877c142518f8cce9d23c47060b1.tar.gz
avcodec/nvenc: add weighted prediction support
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc_hevc.c')
-rw-r--r--libavcodec/nvenc_hevc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc_hevc.c b/libavcodec/nvenc_hevc.c
index b5ce84a..66db145 100644
--- a/libavcodec/nvenc_hevc.c
+++ b/libavcodec/nvenc_hevc.c
@@ -114,6 +114,8 @@ static const AVOption options[] = {
{ "init_qpI", "Initial QP value for I frame", OFFSET(init_qp_i), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 51, VE },
{ "qp", "Constant quantization parameter rate control method",
OFFSET(cqp), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 51, VE },
+ { "weighted_pred","Set 1 to enable weighted prediction",
+ OFFSET(weighted_pred),AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, VE },
{ NULL }
};
OpenPOWER on IntegriCloud