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
8a3d80eb
Commit
8a3d80eb
authored
Dec 05, 2017
by
Sebastien Alaiwan
Committed by
Urvang Joshi
Dec 08, 2017
Browse files
Avoid memset when possible
Also, reduce scope of one local. Change-Id: I41cb53528d4b7bc88eb343d8c943ed241230af82
parent
3f2b57d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/decoder/decodemv.c
View file @
8a3d80eb
...
...
@@ -1850,10 +1850,9 @@ static void read_inter_block_mode_info(AV1Decoder *const pbi,
const
BLOCK_SIZE
bsize
=
mbmi
->
sb_type
;
const
int
allow_hp
=
cm
->
allow_high_precision_mv
;
int_mv
nearestmv
[
2
],
nearmv
[
2
];
int_mv
ref_mvs
[
MODE_CTX_REF_FRAMES
][
MAX_MV_REF_CANDIDATES
];
int_mv
ref_mvs
[
MODE_CTX_REF_FRAMES
][
MAX_MV_REF_CANDIDATES
]
=
{
{
{
0
}
}
}
;
int16_t
inter_mode_ctx
[
MODE_CTX_REF_FRAMES
];
int16_t
compound_inter_mode_ctx
[
MODE_CTX_REF_FRAMES
];
int
mode_ctx
=
0
;
int
pts
[
SAMPLES_ARRAY_SIZE
],
pts_inref
[
SAMPLES_ARRAY_SIZE
];
#if CONFIG_EXT_WARPED_MOTION
int
pts_mv
[
SAMPLES_ARRAY_SIZE
],
pts_wm
[
SAMPLES_ARRAY_SIZE
];
...
...
@@ -1866,8 +1865,6 @@ static void read_inter_block_mode_info(AV1Decoder *const pbi,
mbmi
->
palette_mode_info
.
palette_size
[
0
]
=
0
;
mbmi
->
palette_mode_info
.
palette_size
[
1
]
=
0
;
memset
(
ref_mvs
,
0
,
sizeof
(
ref_mvs
));
read_ref_frames
(
cm
,
xd
,
r
,
mbmi
->
segment_id
,
mbmi
->
ref_frame
);
const
int
is_compound
=
has_second_ref
(
mbmi
);
...
...
@@ -1934,6 +1931,8 @@ static void read_inter_block_mode_info(AV1Decoder *const pbi,
}
}
int
mode_ctx
=
0
;
if
(
is_compound
)
mode_ctx
=
compound_inter_mode_ctx
[
mbmi
->
ref_frame
[
0
]];
else
...
...
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