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
Yushin Cho
aom-rav1e
Commits
2c7ae8c2
Commit
2c7ae8c2
authored
Aug 12, 2013
by
Dmitry Kovalev
Browse files
Little cleanup inside decode_tile() function.
Change-Id: I3ed4beb59371fe21ca3e82253aa98e0cbd5e0630
parent
4417c045
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/decoder/vp9_decodframe.c
View file @
2c7ae8c2
...
...
@@ -583,11 +583,12 @@ static void decode_tile(VP9D_COMP *pbi, vp9_reader *r) {
const
int
num_threads
=
pbi
->
oxcf
.
max_threads
;
VP9_COMMON
*
const
pc
=
&
pbi
->
common
;
int
mi_row
,
mi_col
;
YV12_BUFFER_CONFIG
*
const
fb
=
&
pc
->
yv12_fb
[
pc
->
new_fb_idx
];
if
(
pbi
->
do_loopfilter_inline
)
{
if
(
num_threads
>
1
)
{
LFWorkerData
*
const
lf_data
=
(
LFWorkerData
*
)
pbi
->
lf_worker
.
data1
;
lf_data
->
frame_buffer
=
&
pbi
->
common
.
yv12_fb
[
pbi
->
common
.
new_fb_idx
]
;
lf_data
->
frame_buffer
=
fb
;
lf_data
->
cm
=
pc
;
lf_data
->
xd
=
pbi
->
mb
;
lf_data
->
y_only
=
0
;
...
...
@@ -598,8 +599,8 @@ static void decode_tile(VP9D_COMP *pbi, vp9_reader *r) {
for
(
mi_row
=
pc
->
cur_tile_mi_row_start
;
mi_row
<
pc
->
cur_tile_mi_row_end
;
mi_row
+=
MI_BLOCK_SIZE
)
{
// For a SB there are 2 left contexts, each pertaining to a MB row within
vp
x_memset
(
&
pc
->
left_context
,
0
,
sizeof
(
pc
->
left_context
)
)
;
vp
x_memset
(
pc
->
left_seg_context
,
0
,
sizeof
(
pc
->
left_seg_context
)
)
;
vp
9_zero
(
pc
->
left_context
);
vp
9_zero
(
pc
->
left_seg_context
);
for
(
mi_col
=
pc
->
cur_tile_mi_col_start
;
mi_col
<
pc
->
cur_tile_mi_col_end
;
mi_col
+=
MI_BLOCK_SIZE
)
{
decode_modes_sb
(
pbi
,
mi_row
,
mi_col
,
r
,
BLOCK_64X64
);
...
...
@@ -619,15 +620,12 @@ static void decode_tile(VP9D_COMP *pbi, vp9_reader *r) {
pbi
->
lf_worker
.
hook
=
vp9_loop_filter_worker
;
vp9_worker_launch
(
&
pbi
->
lf_worker
);
}
else
{
YV12_BUFFER_CONFIG
*
const
fb
=
&
pbi
->
common
.
yv12_fb
[
pbi
->
common
.
new_fb_idx
];
vp9_loop_filter_rows
(
fb
,
pc
,
&
pbi
->
mb
,
lf_start
,
mi_row
,
0
);
}
}
}
if
(
pbi
->
do_loopfilter_inline
)
{
YV12_BUFFER_CONFIG
*
const
fb
=
&
pbi
->
common
.
yv12_fb
[
pbi
->
common
.
new_fb_idx
];
if
(
num_threads
>
1
)
{
// TODO(jzern): since the loop filter is delayed one mb row, this will be
// forced to wait for the last row scheduled in the for loop.
...
...
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