|
1 | | -From a8f5eeaeebb6f3968c9b4406c648c2ca3a461387 Mon Sep 17 00:00:00 2001 |
| 1 | +From 7ddcc6c50b9b70535a7109e2f67cb18b54849621 Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Jing Sun < [email protected]> |
3 | 3 | Date: Wed, 21 Nov 2018 11:33:04 +0800 |
4 | 4 | Subject: [PATCH] lavc/svt_hevc: add libsvt hevc encoder wrapper |
|
11 | 11 | configure | 4 + |
12 | 12 | libavcodec/Makefile | 1 + |
13 | 13 | 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(+) |
16 | 16 | create mode 100644 libavcodec/libsvt_hevc.c |
17 | 17 |
|
18 | 18 | diff --git a/configure b/configure |
@@ -77,10 +77,10 @@ index d2f9a39..d8788a7 100644 |
77 | 77 | extern AVCodec ff_libvo_amrwbenc_encoder; |
78 | 78 | diff --git a/libavcodec/libsvt_hevc.c b/libavcodec/libsvt_hevc.c |
79 | 79 | new file mode 100644 |
80 | | -index 0000000..61bf490 |
| 80 | +index 0000000..9a28836 |
81 | 81 | --- /dev/null |
82 | 82 | +++ b/libavcodec/libsvt_hevc.c |
83 | | -@@ -0,0 +1,517 @@ |
| 83 | +@@ -0,0 +1,518 @@ |
84 | 84 | +/* |
85 | 85 | +* Scalable Video Technology for HEVC encoder library plugin |
86 | 86 | +* |
@@ -143,6 +143,7 @@ index 0000000..61bf490 |
143 | 143 | + int forced_idr; |
144 | 144 | + int la_depth; |
145 | 145 | + int thread_count; |
| 146 | ++ int high_dynamic_range; |
146 | 147 | +} SvtContext; |
147 | 148 | + |
148 | 149 | +static int error_mapping(EB_ERRORTYPE svt_ret) |
@@ -276,7 +277,7 @@ index 0000000..61bf490 |
276 | 277 | + param->accessUnitDelimiter = svt_enc->aud; |
277 | 278 | + param->asmType = svt_enc->asm_type; |
278 | 279 | + param->intraRefreshType = svt_enc->forced_idr; |
279 | | -+ |
| 280 | ++ param->highDynamicRangeInput = svt_enc->high_dynamic_range; |
280 | 281 | + if (param->rateControlMode) { |
281 | 282 | + param->maxQpAllowed = avctx->qmax; |
282 | 283 | + param->minQpAllowed = avctx->qmin; |
@@ -557,7 +558,7 @@ index 0000000..61bf490 |
557 | 558 | + AV_OPT_TYPE_CONST, { .i64 = 1 }, INT_MIN, INT_MAX, VE, "tune" }, |
558 | 559 | + { "vmaf", "VMAF optimized mode", 0, |
559 | 560 | + 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" }, |
561 | 562 | + {NULL}, |
562 | 563 | +}; |
563 | 564 | + |
@@ -599,5 +600,5 @@ index 0000000..61bf490 |
599 | 600 | + .wrapper_name = "libsvt_hevc", |
600 | 601 | +}; |
601 | 602 | -- |
602 | | -2.7.4 |
| 603 | +2.17.1 |
603 | 604 |
|
0 commit comments