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
a8ba34d2
Commit
a8ba34d2
authored
Jan 03, 2014
by
Dmitry Kovalev
Browse files
Pre planes configuration cleanup.
Change-Id: I1d50f8701d9c9dedb84387a773a3e9b4daaad720
parent
f215c641
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
a8ba34d2
...
...
@@ -2583,20 +2583,14 @@ static void encode_superblock(VP9_COMP *cpi, TOKENEXTRA **t, int output_enabled,
if
(
output_enabled
)
sum_intra_stats
(
cm
,
mi
);
}
else
{
int
idx
=
cm
->
ref_frame_map
[
get_ref_frame_idx
(
cpi
,
mbmi
->
ref_frame
[
0
])]
;
YV12_BUFFER_CONFIG
*
ref_fb
=
&
cm
->
yv12_fb
[
idx
]
;
YV12_BUFFER_CONFIG
*
second_ref_fb
=
NULL
;
if
(
has_second_ref
(
mbmi
))
{
idx
=
cm
->
ref_frame_map
[
get_ref_frame_idx
(
cpi
,
mbmi
->
ref_frame
[
1
])];
se
cond_ref_fb
=
&
cm
->
yv12_fb
[
idx
]
;
int
ref
;
const
int
is_compound
=
has_second_ref
(
mbmi
)
;
for
(
ref
=
0
;
ref
<
1
+
is_compound
;
++
ref
)
{
YV12_BUFFER_CONFIG
*
cfg
=
&
cm
->
yv12_fb
[
cm
->
ref_frame_map
[
get_ref_frame_idx
(
cpi
,
mbmi
->
ref_frame
[
ref
])]
]
;
se
tup_pre_planes
(
xd
,
ref
,
cfg
,
mi_row
,
mi_col
,
xd
->
scale_factors
[
ref
])
;
}
assert
(
cm
->
frame_type
!=
KEY_FRAME
);
setup_pre_planes
(
xd
,
0
,
ref_fb
,
mi_row
,
mi_col
,
xd
->
scale_factors
[
0
]);
setup_pre_planes
(
xd
,
1
,
second_ref_fb
,
mi_row
,
mi_col
,
xd
->
scale_factors
[
1
]);
vp9_build_inter_predictors_sb
(
xd
,
mi_row
,
mi_col
,
MAX
(
bsize
,
BLOCK_8X8
));
}
...
...
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