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
4172d7c5
Commit
4172d7c5
authored
Aug 21, 2013
by
Dmitry Kovalev
Browse files
Cleaning up foreach_transformed_block_in_plane.
Change-Id: I9f45af3894c57f35cb266c255e2b904295d39c34
parent
3286abd8
Changes
1
Show whitespace changes
Inline
Side-by-side
vp9/common/vp9_blockd.h
View file @
4172d7c5
...
@@ -400,8 +400,8 @@ static INLINE void foreach_transformed_block_in_plane(
...
@@ -400,8 +400,8 @@ static INLINE void foreach_transformed_block_in_plane(
const
TX_SIZE
tx_size
=
plane
?
get_uv_tx_size
(
mbmi
)
const
TX_SIZE
tx_size
=
plane
?
get_uv_tx_size
(
mbmi
)
:
mbmi
->
txfm_size
;
:
mbmi
->
txfm_size
;
const
BLOCK_SIZE_TYPE
plane_bsize
=
get_plane_block_size
(
bsize
,
pd
);
const
BLOCK_SIZE_TYPE
plane_bsize
=
get_plane_block_size
(
bsize
,
pd
);
const
int
bw
=
b
_wid
th
_lo
g2
(
plane_bsize
)
;
const
int
num_4x4_w
=
num_4x4_blocks
_wid
e
_lo
okup
[
plane_bsize
]
;
const
int
bh
=
b
_h
e
igh
t
_lo
g2
(
plane_bsize
)
;
const
int
num_4x4_h
=
num_4x4_blocks
_high_lo
okup
[
plane_bsize
]
;
const
int
step
=
1
<<
(
tx_size
<<
1
);
const
int
step
=
1
<<
(
tx_size
<<
1
);
int
i
;
int
i
;
...
@@ -411,8 +411,8 @@ static INLINE void foreach_transformed_block_in_plane(
...
@@ -411,8 +411,8 @@ static INLINE void foreach_transformed_block_in_plane(
if
(
xd
->
mb_to_right_edge
<
0
||
xd
->
mb_to_bottom_edge
<
0
)
{
if
(
xd
->
mb_to_right_edge
<
0
||
xd
->
mb_to_bottom_edge
<
0
)
{
int
r
,
c
;
int
r
,
c
;
int
max_blocks_wide
=
1
<<
b
w
;
int
max_blocks_wide
=
num_4x4_
w
;
int
max_blocks_high
=
1
<<
b
h
;
int
max_blocks_high
=
num_4x4_
h
;
// xd->mb_to_right_edge is in units of pixels * 8. This converts
// xd->mb_to_right_edge is in units of pixels * 8. This converts
// it to 4x4 block sizes.
// it to 4x4 block sizes.
...
@@ -426,15 +426,15 @@ static INLINE void foreach_transformed_block_in_plane(
...
@@ -426,15 +426,15 @@ static INLINE void foreach_transformed_block_in_plane(
// Unlike the normal case - in here we have to keep track of the
// Unlike the normal case - in here we have to keep track of the
// row and column of the blocks we use so that we know if we are in
// row and column of the blocks we use so that we know if we are in
// the unrestricted motion border.
// the unrestricted motion border.
for
(
r
=
0
;
r
<
(
1
<<
bh
)
;
r
+=
(
1
<<
tx_size
))
{
for
(
r
=
0
;
r
<
num_4x4_h
;
r
+=
(
1
<<
tx_size
))
{
for
(
c
=
0
;
c
<
(
1
<<
bw
)
;
c
+=
(
1
<<
tx_size
))
{
for
(
c
=
0
;
c
<
num_4x4_w
;
c
+=
(
1
<<
tx_size
))
{
if
(
r
<
max_blocks_high
&&
c
<
max_blocks_wide
)
if
(
r
<
max_blocks_high
&&
c
<
max_blocks_wide
)
visit
(
plane
,
i
,
plane_bsize
,
tx_size
,
arg
);
visit
(
plane
,
i
,
plane_bsize
,
tx_size
,
arg
);
i
+=
step
;
i
+=
step
;
}
}
}
}
}
else
{
}
else
{
for
(
i
=
0
;
i
<
(
1
<<
(
bw
+
bh
))
;
i
+=
step
)
for
(
i
=
0
;
i
<
num_4x4_w
*
num_4x4_h
;
i
+=
step
)
visit
(
plane
,
i
,
plane_bsize
,
tx_size
,
arg
);
visit
(
plane
,
i
,
plane_bsize
,
tx_size
,
arg
);
}
}
}
}
...
...
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