Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
b202e475
Commit
b202e475
authored
Jun 19, 2014
by
Jingning Han
Committed by
Gerrit Code Review
Jun 19, 2014
Browse files
Merge "Separate rate-distortion modeling for DC and AC coefficients"
parents
26955b2b
7c45dc98
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_pickmode.c
View file @
b202e475
...
...
@@ -172,15 +172,15 @@ static void model_rd_for_sb_y(VP9_COMP *cpi, BLOCK_SIZE bsize,
else
x
->
skip_txfm
=
0
;
// TODO(jingning) This is a temporary solution to account for frames with
// light changes. Need to customize the rate-distortion modeling for non-RD
// mode decision.
if
((
sse
>>
3
)
>
var
)
sse
=
var
;
vp9_model_rd_from_var_lapndz
(
var
+
sse
,
1
<<
num_pels_log2_lookup
[
bsize
],
ac_quant
>>
3
,
&
rate
,
&
dist
);
*
out_rate_sum
=
rate
;
vp9_model_rd_from_var_lapndz
(
sse
-
var
,
1
<<
num_pels_log2_lookup
[
bsize
],
dc_quant
>>
3
,
&
rate
,
&
dist
);
*
out_rate_sum
=
rate
>>
1
;
*
out_dist_sum
=
dist
<<
3
;
vp9_model_rd_from_var_lapndz
(
var
,
1
<<
num_pels_log2_lookup
[
bsize
],
ac_quant
>>
3
,
&
rate
,
&
dist
);
*
out_rate_sum
+=
rate
;
*
out_dist_sum
+=
dist
<<
4
;
}
// TODO(jingning) placeholder for inter-frame non-RD mode decision.
...
...
Write
Preview
Supports
Markdown
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