summaryrefslogtreecommitdiff
path: root/media-libs/libavif/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-03-24 23:59:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-03-24 23:59:54 +0000
commit401101f9c8077911929d3f2b60a37098460a5d89 (patch)
treec2bef4719f6787550f0916aeaa8f4f403a9296af /media-libs/libavif/files
parent4cbcc855382a06088e2f016f62cafdbcb7e40665 (diff)
gentoo resync : 25.03.2022
Diffstat (limited to 'media-libs/libavif/files')
-rw-r--r--media-libs/libavif/files/libavif-0.9.3-dav1d-1.0.0.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/media-libs/libavif/files/libavif-0.9.3-dav1d-1.0.0.patch b/media-libs/libavif/files/libavif-0.9.3-dav1d-1.0.0.patch
new file mode 100644
index 000000000000..a4358e7223cd
--- /dev/null
+++ b/media-libs/libavif/files/libavif-0.9.3-dav1d-1.0.0.patch
@@ -0,0 +1,32 @@
+https://github.com/AOMediaCodec/libavif/commit/74a21444397e323a088fa1f274c9fc942ee7a870.patch
+https://bugs.gentoo.org/834262
+
+From: Jamaika1 <lukaszcz18@wp.pl>
+Date: Wed, 26 Jan 2022 18:24:31 +0100
+Subject: [PATCH] Change function in SVT-AV1 0.9.0 (#807)
+
+--- a/src/codec_svt.c
++++ b/src/codec_svt.c
+@@ -92,7 +92,9 @@ static avifResult svtCodecEncodeImage(avifCodec * codec,
+ }
+ svt_config->encoder_color_format = color_format;
+ svt_config->encoder_bit_depth = (uint8_t)image->depth;
++#if !SVT_AV1_CHECK_VERSION(0, 9, 0)
+ svt_config->is_16bit_pipeline = image->depth > 8;
++#endif
+
+ // Follow comment in svt header: set if input is HDR10 BT2020 using SMPTE ST2084.
+ svt_config->high_dynamic_range_input = (image->depth == 10 && image->colorPrimaries == AVIF_COLOR_PRIMARIES_BT2020 &&
+@@ -104,8 +106,12 @@ static avifResult svtCodecEncodeImage(avifCodec * codec,
+ svt_config->logical_processors = encoder->maxThreads;
+ svt_config->enable_adaptive_quantization = AVIF_FALSE;
+ // disable 2-pass
++#if SVT_AV1_CHECK_VERSION(0, 9, 0)
++ svt_config->rc_stats_buffer = (SvtAv1FixedBuf) { NULL, 0 };
++#else
+ svt_config->rc_firstpass_stats_out = AVIF_FALSE;
+ svt_config->rc_twopass_stats_in = (SvtAv1FixedBuf) { NULL, 0 };
++#endif
+
+ if (alpha) {
+ svt_config->min_qp_allowed = AVIF_CLAMP(encoder->minQuantizerAlpha, 0, 63);