Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
a33f1784
Commit
a33f1784
authored
11 years ago
by
Dmitry Kovalev
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Cleaning up foreach_transformed_block_in_plane."
parents
359b5714
4172d7c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/common/vp9_blockd.h
+7
-7
7 additions, 7 deletions
vp9/common/vp9_blockd.h
with
7 additions
and
7 deletions
vp9/common/vp9_blockd.h
+
7
−
7
View file @
a33f1784
...
...
@@ -400,8 +400,8 @@ static INLINE void foreach_transformed_block_in_plane(
const
TX_SIZE
tx_size
=
plane
?
get_uv_tx_size
(
mbmi
)
:
mbmi
->
txfm_size
;
const
BLOCK_SIZE_TYPE
plane_bsize
=
get_plane_block_size
(
bsize
,
pd
);
const
int
bw
=
b
_wid
th
_lo
g2
(
plane_bsize
)
;
const
int
bh
=
b
_h
e
igh
t
_lo
g2
(
plane_bsize
)
;
const
int
num_4x4_w
=
num_4x4_blocks
_wid
e
_lo
okup
[
plane_bsize
]
;
const
int
num_4x4_h
=
num_4x4_blocks
_high_lo
okup
[
plane_bsize
]
;
const
int
step
=
1
<<
(
tx_size
<<
1
);
int
i
;
...
...
@@ -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
)
{
int
r
,
c
;
int
max_blocks_wide
=
1
<<
b
w
;
int
max_blocks_high
=
1
<<
b
h
;
int
max_blocks_wide
=
num_4x4_
w
;
int
max_blocks_high
=
num_4x4_
h
;
// xd->mb_to_right_edge is in units of pixels * 8. This converts
// it to 4x4 block sizes.
...
...
@@ -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
// row and column of the blocks we use so that we know if we are in
// the unrestricted motion border.
for
(
r
=
0
;
r
<
(
1
<<
bh
)
;
r
+=
(
1
<<
tx_size
))
{
for
(
c
=
0
;
c
<
(
1
<<
bw
)
;
c
+=
(
1
<<
tx_size
))
{
for
(
r
=
0
;
r
<
num_4x4_h
;
r
+=
(
1
<<
tx_size
))
{
for
(
c
=
0
;
c
<
num_4x4_w
;
c
+=
(
1
<<
tx_size
))
{
if
(
r
<
max_blocks_high
&&
c
<
max_blocks_wide
)
visit
(
plane
,
i
,
plane_bsize
,
tx_size
,
arg
);
i
+=
step
;
}
}
}
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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment