Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
bb7b4bad
Commit
bb7b4bad
authored
Dec 16, 2013
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Dec 16, 2013
Browse files
Merge "Getting rid of b_{width, height}_log2 calls in non-420 loop filter."
parents
fb53409d
466cc94e
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_loopfilter.c
View file @
bb7b4bad
...
...
@@ -989,15 +989,16 @@ static void filter_block_plane_non420(VP9_COMMON *cm,
// Determine the vertical edges that need filtering
for
(
c
=
0
;
c
<
MI_BLOCK_SIZE
&&
mi_col
+
c
<
cm
->
mi_cols
;
c
+=
col_step
)
{
const
MODE_INFO
*
mi
=
mi_8x8
[
c
];
const
BLOCK_SIZE
sb_type
=
mi
[
0
].
mbmi
.
sb_type
;
const
int
skip_this
=
mi
[
0
].
mbmi
.
skip_coeff
&&
is_inter_block
(
&
mi
[
0
].
mbmi
);
// left edge of current unit is block/partition edge -> no skip
const
int
block_edge_left
=
b
_wid
th
_lo
g2
(
mi
[
0
].
mbmi
.
sb_type
)
?
!
(
c
&
(
(
1
<<
(
b
_wid
th
_lo
g2
(
mi
[
0
].
mbmi
.
sb_type
)
-
1
))
-
1
))
:
1
;
const
int
block_edge_left
=
(
num_4x4_blocks
_wid
e
_lo
okup
[
sb_type
]
>
1
)
?
!
(
c
&
(
num_8x8_blocks
_wid
e
_lo
okup
[
sb_type
]
-
1
))
:
1
;
const
int
skip_this_c
=
skip_this
&&
!
block_edge_left
;
// top edge of current unit is block/partition edge -> no skip
const
int
block_edge_above
=
b
_h
e
igh
t
_lo
g2
(
mi
[
0
].
mbmi
.
sb_type
)
?
!
(
r
&
(
(
1
<<
(
b
_h
e
igh
t
_lo
g2
(
mi
[
0
].
mbmi
.
sb_type
)
-
1
))
-
1
))
:
1
;
const
int
block_edge_above
=
(
num_4x4_blocks
_high_lo
okup
[
sb_type
]
>
1
)
?
!
(
r
&
(
num_8x8_blocks
_high_lo
okup
[
sb_type
]
-
1
))
:
1
;
const
int
skip_this_r
=
skip_this
&&
!
block_edge_above
;
const
TX_SIZE
tx_size
=
(
plane
->
plane_type
==
PLANE_TYPE_UV
)
?
get_uv_tx_size
(
&
mi
[
0
].
mbmi
)
...
...
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