Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 834262
Collapse All | Expand All

(-)a/CHANGELOG.md (+1 lines)
Lines 26-31 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Link Here
26
*   - speed 8-9: re-test and re-adjust speed according to your app needs
26
*   - speed 8-9: re-test and re-adjust speed according to your app needs
27
* Update aom.cmd: v3.2.0
27
* Update aom.cmd: v3.2.0
28
* Update dav1d.cmd: 0.9.2
28
* Update dav1d.cmd: 0.9.2
29
* Update svt-av1.cmd: v0.9.0
29
* Pass TestCase's minQuantizer, maxQuantizer, speed to encoder.
30
* Pass TestCase's minQuantizer, maxQuantizer, speed to encoder.
30
* Regenerate tests.json
31
* Regenerate tests.json
31
* Disable JSON-based tests for now, the metrics are inconsistent/unreliable
32
* Disable JSON-based tests for now, the metrics are inconsistent/unreliable
(-)a/ext/svt.cmd (-1 / +1 lines)
Lines 11-17 Link Here
11
: # If you're running this on Windows, be sure you've already run this (from your VC2019 install dir):
11
: # If you're running this on Windows, be sure you've already run this (from your VC2019 install dir):
12
: #    "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
12
: #    "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
13
13
14
git clone -b v0.8.7 --depth 1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
14
git clone -b v0.9.0 --depth 1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
15
15
16
cd SVT-AV1
16
cd SVT-AV1
17
cd Build/windows
17
cd Build/windows
(-)a/ext/svt.sh (-1 / +1 lines)
Lines 2-8 Link Here
2
# then enable CMake's AVIF_CODEC_SVT and AVIF_LOCAL_SVT options.
2
# then enable CMake's AVIF_CODEC_SVT and AVIF_LOCAL_SVT options.
3
# cmake and ninja must be in your PATH.
3
# cmake and ninja must be in your PATH.
4
4
5
git clone -b v0.8.7 --depth 1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
5
git clone -b v0.9.0 --depth 1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
6
6
7
cd SVT-AV1
7
cd SVT-AV1
8
cd Build/linux
8
cd Build/linux
(-)a/src/codec_svt.c (+6 lines)
Lines 92-98 static avifResult svtCodecEncodeImage(avifCodec * codec, Link Here
92
        }
92
        }
93
        svt_config->encoder_color_format = color_format;
93
        svt_config->encoder_color_format = color_format;
94
        svt_config->encoder_bit_depth = (uint8_t)image->depth;
94
        svt_config->encoder_bit_depth = (uint8_t)image->depth;
95
#if !SVT_AV1_CHECK_VERSION(0, 9, 0)
95
        svt_config->is_16bit_pipeline = image->depth > 8;
96
        svt_config->is_16bit_pipeline = image->depth > 8;
97
#endif
96
98
97
        // Follow comment in svt header: set if input is HDR10 BT2020 using SMPTE ST2084.
99
        // Follow comment in svt header: set if input is HDR10 BT2020 using SMPTE ST2084.
98
        svt_config->high_dynamic_range_input = (image->depth == 10 && image->colorPrimaries == AVIF_COLOR_PRIMARIES_BT2020 &&
100
        svt_config->high_dynamic_range_input = (image->depth == 10 && image->colorPrimaries == AVIF_COLOR_PRIMARIES_BT2020 &&
Lines 104-111 static avifResult svtCodecEncodeImage(avifCodec * codec, Link Here
104
        svt_config->logical_processors = encoder->maxThreads;
106
        svt_config->logical_processors = encoder->maxThreads;
105
        svt_config->enable_adaptive_quantization = AVIF_FALSE;
107
        svt_config->enable_adaptive_quantization = AVIF_FALSE;
106
        // disable 2-pass
108
        // disable 2-pass
109
#if SVT_AV1_CHECK_VERSION(0, 9, 0)
110
        svt_config->rc_stats_buffer = (SvtAv1FixedBuf) { NULL, 0 };
111
#else
107
        svt_config->rc_firstpass_stats_out = AVIF_FALSE;
112
        svt_config->rc_firstpass_stats_out = AVIF_FALSE;
108
        svt_config->rc_twopass_stats_in = (SvtAv1FixedBuf) { NULL, 0 };
113
        svt_config->rc_twopass_stats_in = (SvtAv1FixedBuf) { NULL, 0 };
114
#endif
109
115
110
        if (alpha) {
116
        if (alpha) {
111
            svt_config->min_qp_allowed = AVIF_CLAMP(encoder->minQuantizerAlpha, 0, 63);
117
            svt_config->min_qp_allowed = AVIF_CLAMP(encoder->minQuantizerAlpha, 0, 63);

Return to bug 834262