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
96a381c2
Commit
96a381c2
authored
Apr 17, 2014
by
Jingning Han
Committed by
Gerrit Code Review
Apr 17, 2014
Browse files
Merge "Remove redundant buffer initialization and mode_info assignments"
parents
e890c257
b6ec6930
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
96a381c2
...
...
@@ -1284,8 +1284,10 @@ static int is_background(VP9_COMP *cpi, const TileInfo *const tile,
int
threshold
=
0
;
vp9_setup_src_planes
(
x
,
cpi
->
Source
,
mi_row
,
mi_col
);
src_stride
=
x
->
plane
[
0
].
src
.
stride
;
src
=
x
->
plane
[
0
].
src
.
buf
;
pre_stride
=
cpi
->
Last_Source
->
y_stride
;
pre
=
cpi
->
Last_Source
->
y_buffer
+
(
mi_row
*
MI_SIZE
)
*
pre_stride
+
(
mi_col
*
MI_SIZE
);
...
...
@@ -2307,16 +2309,8 @@ static void init_encode_frame_mb_context(VP9_COMP *cpi) {
// Copy data over into macro block data structures.
vp9_setup_src_planes
(
x
,
cpi
->
Source
,
0
,
0
);
// TODO(jkoleszar): are these initializations required?
vp9_setup_pre_planes
(
xd
,
0
,
get_ref_frame_buffer
(
cpi
,
LAST_FRAME
),
0
,
0
,
NULL
);
vp9_setup_dst_planes
(
xd
,
get_frame_new_buffer
(
cm
),
0
,
0
);
vp9_setup_block_planes
(
&
x
->
e_mbd
,
cm
->
subsampling_x
,
cm
->
subsampling_y
);
xd
->
mi
[
0
]
->
mbmi
.
mode
=
DC_PRED
;
xd
->
mi
[
0
]
->
mbmi
.
uv_mode
=
DC_PRED
;
// Note: this memset assumes above_context[0], [1] and [2]
// are allocated as part of the same buffer.
vpx_memset
(
xd
->
above_context
[
0
],
0
,
...
...
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