Skip to content

Commit 9583cbf

Browse files
committed
Adding high dynamic range
Changed help description to: High dynamic range input (HDR10) Signed-off-by: Mark Feldman <[email protected]>
1 parent e2b8625 commit 9583cbf

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

ffmpeg_plugin/0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From a8f5eeaeebb6f3968c9b4406c648c2ca3a461387 Mon Sep 17 00:00:00 2001
1+
From 7ddcc6c50b9b70535a7109e2f67cb18b54849621 Mon Sep 17 00:00:00 2001
22
From: Jing Sun <[email protected]>
33
Date: Wed, 21 Nov 2018 11:33:04 +0800
44
Subject: [PATCH] lavc/svt_hevc: add libsvt hevc encoder wrapper
@@ -11,8 +11,8 @@ Signed-off-by: Jing Sun <[email protected]>
1111
configure | 4 +
1212
libavcodec/Makefile | 1 +
1313
libavcodec/allcodecs.c | 1 +
14-
libavcodec/libsvt_hevc.c | 517 +++++++++++++++++++++++++++++++++++++++++++++++
15-
4 files changed, 523 insertions(+)
14+
libavcodec/libsvt_hevc.c | 518 +++++++++++++++++++++++++++++++++++++++
15+
4 files changed, 524 insertions(+)
1616
create mode 100644 libavcodec/libsvt_hevc.c
1717

1818
diff --git a/configure b/configure
@@ -77,10 +77,10 @@ index d2f9a39..d8788a7 100644
7777
extern AVCodec ff_libvo_amrwbenc_encoder;
7878
diff --git a/libavcodec/libsvt_hevc.c b/libavcodec/libsvt_hevc.c
7979
new file mode 100644
80-
index 0000000..61bf490
80+
index 0000000..9a28836
8181
--- /dev/null
8282
+++ b/libavcodec/libsvt_hevc.c
83-
@@ -0,0 +1,517 @@
83+
@@ -0,0 +1,518 @@
8484
+/*
8585
+* Scalable Video Technology for HEVC encoder library plugin
8686
+*
@@ -143,6 +143,7 @@ index 0000000..61bf490
143143
+ int forced_idr;
144144
+ int la_depth;
145145
+ int thread_count;
146+
+ int high_dynamic_range;
146147
+} SvtContext;
147148
+
148149
+static int error_mapping(EB_ERRORTYPE svt_ret)
@@ -276,7 +277,7 @@ index 0000000..61bf490
276277
+ param->accessUnitDelimiter = svt_enc->aud;
277278
+ param->asmType = svt_enc->asm_type;
278279
+ param->intraRefreshType = svt_enc->forced_idr;
279-
+
280+
+ param->highDynamicRangeInput = svt_enc->high_dynamic_range;
280281
+ if (param->rateControlMode) {
281282
+ param->maxQpAllowed = avctx->qmax;
282283
+ param->minQpAllowed = avctx->qmin;
@@ -557,7 +558,7 @@ index 0000000..61bf490
557558
+ AV_OPT_TYPE_CONST, { .i64 = 1 }, INT_MIN, INT_MAX, VE, "tune" },
558559
+ { "vmaf", "VMAF optimized mode", 0,
559560
+ AV_OPT_TYPE_CONST, { .i64 = 2 }, INT_MIN, INT_MAX, VE, "tune" },
560-
+
561+
+ { "hdr", "High dynamic range input (HDR10)", OFFSET(high_dynamic_range), AV_OPT_TYPE_INT, { .i64 = 0}, 0, 1, VE, "hdr" },
561562
+ {NULL},
562563
+};
563564
+
@@ -599,5 +600,5 @@ index 0000000..61bf490
599600
+ .wrapper_name = "libsvt_hevc",
600601
+};
601602
--
602-
2.7.4
603+
2.17.1
603604

0 commit comments

Comments
 (0)