Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
dc024c46
Commit
dc024c46
authored
Jan 14, 2018
by
Debargha Mukherjee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust dq_type 1/2 parameters
Change-Id: I5e205150c62f07049187ddd61b670ad5197c1645
parent
ed25a610
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
av1/common/quant_common.c
av1/common/quant_common.c
+30
-30
av1/encoder/encodeframe.c
av1/encoder/encodeframe.c
+1
-1
No files found.
av1/common/quant_common.c
View file @
dc024c46
...
...
@@ -40,85 +40,85 @@ static const qprofile_type nuq[QUANT_PROFILES][2] = {
// dq_type = 1
{
// Y/intra, dq_type 1, low quality
{ 6
6
,
12
}, // dc
{ 6
6
,
12
}, // ac
{ 6
4
,
4
}, // dc
{ 6
4
,
6
}, // ac
},
{
// Y/intra, dq_type 1, high quality
{ 6
6
,
6
}, // dc
{ 6
6
,
6
}, // ac
{ 6
4
,
2
}, // dc
{ 6
4
,
3
}, // ac
},
{
// UV/intra, dq_type 1, low quality
{ 6
6
,
12
}, // dc
{ 6
6
,
12
}, // ac
{ 6
4
,
4
}, // dc
{ 6
4
,
6
}, // ac
},
{
// UV/intra, dq_type 1, high quality
{ 6
6
,
6
}, // dc
{ 6
6
,
6
}, // ac
{ 6
4
,
2
}, // dc
{ 6
4
,
3
}, // ac
},
{
// Y/inter, dq_type 1, low quality
{ 6
6
,
12
}, // dc
{ 6
6
,
12
}, // ac
{ 6
4
,
4
}, // dc
{ 6
4
,
6
}, // ac
},
{
// Y/inter, dq_type 1, high quality
{ 6
6
,
6
}, // dc
{ 6
6
,
6
}, // ac
{ 6
4
,
3
}, // dc
{ 6
4
,
4
}, // ac
},
{
// UV/inter, dq_type 1, low quality
{ 6
6
,
12
}, // dc
{ 6
6
,
12
}, // ac
{ 6
4
,
4
}, // dc
{ 6
4
,
6
}, // ac
},
{
// UV/inter, dq_type 1, high quality
{ 6
6
,
6
}, // dc
{ 6
6
,
6
}, // ac
{ 6
4
,
3
}, // dc
{ 6
4
,
4
}, // ac
},
// dq_type = 2
{
// Y/intra, dq_type 2, low quality
{ 72, 12 }, // dc
{ 72, 1
2
}, // ac
{ 72, 1
4
}, // ac
},
{
// Y/intra, dq_type 2, high quality
{ 72, 6 }, // dc
{ 72,
6
}, // ac
{ 72,
8
}, // ac
},
{
// UV/intra, dq_type 2, low quality
{ 72, 1
2
}, // dc
{ 72, 1
2
}, // ac
{ 72, 1
4
}, // dc
{ 72, 1
6
}, // ac
},
{
// UV/intra, dq_type 2, high quality
{ 72,
6
}, // dc
{ 72,
6
}, // ac
{ 72,
8
},
// dc
{ 72,
10
}, // ac
},
{
// Y/inter, dq_type 2, low quality
{ 72, 1
2
}, // dc
{ 72, 1
2
}, // ac
{ 72, 1
6
}, // dc
{ 72, 1
8
}, // ac
},
{
// Y/inter, dq_type 2, high quality
{ 72,
6
}, // dc
{ 72,
6
}, // ac
{ 72,
10
}, // dc
{ 72,
12
}, // ac
},
{
// UV/inter, dq_type 2, low quality
{ 72, 1
2
}, // dc
{ 72,
1
2 }, // ac
{ 72, 1
8
}, // dc
{ 72, 2
0
}, // ac
},
{
// UV/inter, dq_type 2, high quality
{ 72,
6
}, // dc
{ 72,
6
}, // ac
{ 72,
12
}, // dc
{ 72,
14
}, // ac
},
// dq_type = 3
...
...
av1/encoder/encodeframe.c
View file @
dc024c46
...
...
@@ -4103,7 +4103,7 @@ void av1_encode_frame(AV1_COMP *cpi) {
#if CONFIG_NEW_QUANT
switch
(
cpi
->
sf
.
optimize_coefficients
)
{
case
NO_TRELLIS_OPT
:
cm
->
dq_type
=
DQ_MULT_OFFSET3
;
break
;
case
FINAL_PASS_TRELLIS_OPT
:
cm
->
dq_type
=
DQ_MULT_OFFSET
2
;
break
;
case
FINAL_PASS_TRELLIS_OPT
:
cm
->
dq_type
=
DQ_MULT_OFFSET
3
;
break
;
case
FULL_TRELLIS_OPT
:
cm
->
dq_type
=
DQ_MULT_OFFSET1
;
break
;
}
#endif // CONFIG_NEW_QUANT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment