Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
4074099e
Commit
4074099e
authored
Oct 29, 2014
by
Adrian Grange
Browse files
Simplify vp9_set_rd_speed_thresholds_sub8x8
Change-Id: I4bf0f9a38697f5aea564a47afd7f02bb8b2888b6
parent
982dab60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
vp9/encoder/vp9_rd.c
vp9/encoder/vp9_rd.c
+9
-15
No files found.
vp9/encoder/vp9_rd.c
View file @
4074099e
...
...
@@ -594,21 +594,15 @@ void vp9_set_rd_speed_thresholds_sub8x8(VP9_COMP *cpi) {
const
SPEED_FEATURES
*
const
sf
=
&
cpi
->
sf
;
RD_OPT
*
const
rd
=
&
cpi
->
rd
;
int
i
;
for
(
i
=
0
;
i
<
MAX_REFS
;
++
i
)
rd
->
thresh_mult_sub8x8
[
i
]
=
cpi
->
oxcf
.
mode
==
BEST
?
-
500
:
0
;
rd
->
thresh_mult_sub8x8
[
THR_LAST
]
+=
2500
;
rd
->
thresh_mult_sub8x8
[
THR_GOLD
]
+=
2500
;
rd
->
thresh_mult_sub8x8
[
THR_ALTR
]
+=
2500
;
rd
->
thresh_mult_sub8x8
[
THR_INTRA
]
+=
2500
;
rd
->
thresh_mult_sub8x8
[
THR_COMP_LA
]
+=
4500
;
rd
->
thresh_mult_sub8x8
[
THR_COMP_GA
]
+=
4500
;
// Check for masked out split cases.
for
(
i
=
0
;
i
<
MAX_REFS
;
++
i
)
if
(
sf
->
disable_split_mask
&
(
1
<<
i
))
rd
->
thresh_mult_sub8x8
[
i
]
=
INT_MAX
;
static
const
int
thresh_mult
[
2
][
MAX_REFS
]
=
{{
2500
,
2500
,
2500
,
4500
,
4500
,
2500
},
{
2000
,
2000
,
2000
,
4000
,
4000
,
2000
}};
for
(
i
=
0
;
i
<
MAX_REFS
;
++
i
)
{
rd
->
thresh_mult_sub8x8
[
i
]
=
(
sf
->
disable_split_mask
&
(
1
<<
i
))
?
INT_MAX
:
thresh_mult
[
cpi
->
oxcf
.
mode
==
BEST
][
i
];
}
}
int
vp9_get_intra_cost_penalty
(
int
qindex
,
int
qdelta
,
...
...
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