Skip to content
GitLab
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
bbfa9f69
Commit
bbfa9f69
authored
Mar 10, 2014
by
Dmitry Kovalev
Browse files
Cleaning up vp9_rdopt.c.
Change-Id: I8f06d03689ee90a19c9067840b24748bfe2d741f
parent
29beeff1
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_rdopt.c
View file @
bbfa9f69
...
...
@@ -3701,16 +3701,13 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
// combination that wins out.
if
(
cpi
->
sf
.
adaptive_rd_thresh
)
{
for
(
mode_index
=
0
;
mode_index
<
MAX_MODES
;
++
mode_index
)
{
int
*
const
fact
=
&
cpi
->
rd_thresh_freq_fact
[
bsize
][
mode_index
];
if
(
mode_index
==
best_mode_index
)
{
cpi
->
rd_thresh_freq_fact
[
bsize
][
mode_index
]
-=
(
cpi
->
rd_thresh_freq_fact
[
bsize
][
mode_index
]
>>
3
);
*
fact
-=
(
*
fact
>>
3
);
}
else
{
cpi
->
rd_thresh_freq_fact
[
bsize
][
mode_index
]
+=
RD_THRESH_INC
;
if
(
cpi
->
rd_thresh_freq_fact
[
bsize
][
mode_index
]
>
(
cpi
->
sf
.
adaptive_rd_thresh
*
RD_THRESH_MAX_FACT
))
{
cpi
->
rd_thresh_freq_fact
[
bsize
][
mode_index
]
=
cpi
->
sf
.
adaptive_rd_thresh
*
RD_THRESH_MAX_FACT
;
}
*
fact
=
MIN
(
*
fact
+
RD_THRESH_INC
,
cpi
->
sf
.
adaptive_rd_thresh
*
RD_THRESH_MAX_FACT
);
}
}
}
...
...
@@ -4416,16 +4413,13 @@ int64_t vp9_rd_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x,
// combination that wins out.
if
(
cpi
->
sf
.
adaptive_rd_thresh
)
{
for
(
mode_index
=
0
;
mode_index
<
MAX_REFS
;
++
mode_index
)
{
int
*
const
fact
=
&
cpi
->
rd_thresh_freq_sub8x8
[
bsize
][
mode_index
];
if
(
mode_index
==
best_mode_index
)
{
cpi
->
rd_thresh_freq_sub8x8
[
bsize
][
mode_index
]
-=
(
cpi
->
rd_thresh_freq_sub8x8
[
bsize
][
mode_index
]
>>
3
);
*
fact
-=
(
*
fact
>>
3
);
}
else
{
cpi
->
rd_thresh_freq_sub8x8
[
bsize
][
mode_index
]
+=
RD_THRESH_INC
;
if
(
cpi
->
rd_thresh_freq_sub8x8
[
bsize
][
mode_index
]
>
(
cpi
->
sf
.
adaptive_rd_thresh
*
RD_THRESH_MAX_FACT
))
{
cpi
->
rd_thresh_freq_sub8x8
[
bsize
][
mode_index
]
=
cpi
->
sf
.
adaptive_rd_thresh
*
RD_THRESH_MAX_FACT
;
}
*
fact
=
MIN
(
*
fact
+
RD_THRESH_INC
,
cpi
->
sf
.
adaptive_rd_thresh
*
RD_THRESH_MAX_FACT
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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