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
38d79453
Commit
38d79453
authored
Apr 11, 2013
by
Ronald S. Bultje
Browse files
Slight simplification of SB RD loop recursion conditions.
Change-Id: I87a406fcd18ab043253ca0c009d1182fdc5c3046
parent
4eb537c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_encodeframe.c
+4
-6
No files found.
vp9/encoder/vp9_encodeframe.c
View file @
38d79453
...
...
@@ -1097,9 +1097,8 @@ static void encode_sb_row(VP9_COMP *cpi,
sb64_skip
+=
splitmodes_used
;
}
if
(
!
sb32_skip
&&
!
(((
cm
->
mb_cols
&
1
)
&&
mb_col
+
x_idx
==
cm
->
mb_cols
-
1
)
||
((
cm
->
mb_rows
&
1
)
&&
mb_row
+
y_idx
==
cm
->
mb_rows
-
1
)))
{
if
(
!
sb32_skip
&&
!
(
mb_col
+
x_idx
+
1
>=
cm
->
mb_cols
||
mb_row
+
y_idx
+
1
>=
cm
->
mb_rows
))
{
/* Pick a mode assuming that it applies to all 4 of the MBs in the SB */
pick_sb_modes
(
cpi
,
mb_row
+
y_idx
,
mb_col
+
x_idx
,
tp
,
&
sb_rate
,
&
sb_dist
);
...
...
@@ -1137,9 +1136,8 @@ static void encode_sb_row(VP9_COMP *cpi,
memcpy
(
cm
->
left_context
,
&
l
,
sizeof
(
l
));
sb32_rate
+=
vp9_cost_bit
(
cm
->
prob_sb64_coded
,
0
);
if
(
!
sb64_skip
&&
!
(((
cm
->
mb_cols
&
3
)
&&
mb_col
+
3
>=
cm
->
mb_cols
)
||
((
cm
->
mb_rows
&
3
)
&&
mb_row
+
3
>=
cm
->
mb_rows
)))
{
if
(
!
sb64_skip
&&
!
(
mb_col
+
3
>=
cm
->
mb_cols
||
mb_row
+
3
>=
cm
->
mb_rows
))
{
pick_sb64_modes
(
cpi
,
mb_row
,
mb_col
,
tp
,
&
sb64_rate
,
&
sb64_dist
);
sb64_rate
+=
vp9_cost_bit
(
cm
->
prob_sb64_coded
,
1
);
}
...
...
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