Skip to content

Commit

Permalink
Add CCLM, Dual-tree, JCCR, MIP, MRL, MTS and Dep-quant to the presets
Browse files Browse the repository at this point in the history
 - Only enabled in veryslow and placebo
  • Loading branch information
fador committed Jul 1, 2024
1 parent 63da667 commit 74451cf
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Join channel [#ultravideo](https://web.libera.chat/#ultravideo) in [Libera.Chat]

uvg266 is still under development. Speed and RD-quality will continue to improve.

http://ultravideo.fi/#encoder for more information.
https://ultravideo.fi/uvg266.html for more information.

- Linux [![uvg266_tests](https://github.com/ultravideo/uvg266/actions/workflows/uvg266.yml/badge.svg)](https://github.com/ultravideo/uvg266/actions/workflows/uvg266.yml)
- Windows [![Build status](https://ci.appveyor.com/api/projects/status/c1gwnnkyt5lycqka?svg=true)](https://ci.appveyor.com/project/Ultravideo/uvg266)
Expand Down Expand Up @@ -447,7 +447,13 @@ where the names have been abbreviated to fit the layout in GitHub.
| early-skip | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
| fast-residual-cost | 28 | 28 | 28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| max-merge | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 |

| cclm | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| dual-tree | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| jccr | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| mip | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| mrl | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| mts | off | off | off | off | off | off | off | off | both | both |
| dep-quant | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |

## uvg266 library
See [uvg266.h](src/uvg266.h) for the library API and its
Expand Down
72 changes: 71 additions & 1 deletion src/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)

static const char * const file_format_names[] = {"auto", "y4m", "yuv", NULL};

static const char * const preset_values[11][25*2] = {
static const char * const preset_values[11][32*2] = {
{
"ultrafast",
"rd", "0",
Expand All @@ -621,6 +621,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "1",
"fast-residual-cost", "28",
"max-merge", "6",
"cclm", "0",
"dual-tree", "0",
"jccr", "0",
"mip", "0",
"mrl", "0",
"mts", "off",
"dep-quant", "0",
NULL
},
{
Expand All @@ -647,6 +654,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "1",
"fast-residual-cost", "28",
"max-merge", "6",
"cclm", "0",
"dual-tree", "0",
"jccr", "0",
"mip", "0",
"mrl", "0",
"mts", "off",
"dep-quant", "0",
NULL
},
{
Expand All @@ -673,6 +687,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "1",
"fast-residual-cost", "28",
"max-merge", "6",
"cclm", "0",
"dual-tree", "0",
"jccr", "0",
"mip", "0",
"mrl", "0",
"mts", "off",
"dep-quant", "0",
NULL
},
{
Expand All @@ -699,6 +720,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "1",
"fast-residual-cost", "0",
"max-merge", "6",
"cclm", "0",
"dual-tree", "0",
"jccr", "0",
"mip", "0",
"mrl", "0",
"mts", "off",
"dep-quant", "0",
NULL
},
{
Expand All @@ -725,6 +753,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "1",
"fast-residual-cost", "0",
"max-merge", "6",
"cclm", "0",
"dual-tree", "0",
"jccr", "0",
"mip", "0",
"mrl", "0",
"mts", "off",
"dep-quant", "0",
NULL
},
{
Expand All @@ -751,6 +786,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "1",
"fast-residual-cost", "0",
"max-merge", "6",
"cclm", "0",
"dual-tree", "0",
"jccr", "0",
"mip", "0",
"mrl", "0",
"mts", "off",
"dep-quant", "0",
NULL
},
{
Expand All @@ -777,6 +819,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "1",
"fast-residual-cost", "0",
"max-merge", "6",
"cclm", "0",
"dual-tree", "0",
"jccr", "0",
"mip", "0",
"mrl", "0",
"mts", "off",
"dep-quant", "0",
NULL
},
{
Expand All @@ -803,6 +852,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "1",
"fast-residual-cost", "0",
"max-merge", "6",
"cclm", "0",
"dual-tree", "0",
"jccr", "0",
"mip", "0",
"mrl", "0",
"mts", "off",
"dep-quant", "0",
NULL
},
{
Expand All @@ -829,6 +885,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "1",
"fast-residual-cost", "0",
"max-merge", "6",
"cclm", "1",
"dual-tree", "1",
"jccr", "1",
"mip", "1",
"mrl", "1",
"mts", "both",
"dep-quant", "1",
NULL
},
{
Expand All @@ -855,6 +918,13 @@ int uvg_config_parse(uvg_config *cfg, const char *name, const char *value)
"early-skip", "0",
"fast-residual-cost", "0",
"max-merge", "6",
"cclm", "1",
"dual-tree", "1",
"jccr", "1",
"mip", "1",
"mrl", "1",
"mts", "both",
"dep-quant", "1",
NULL
},
{ NULL }
Expand Down

0 comments on commit 74451cf

Please sign in to comment.