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
c36d502e
Commit
c36d502e
authored
Jul 09, 2013
by
Jim Bankoski
Browse files
decoder speedup - get-segment-id only if segmentation enabled
Change-Id: I9355f8446660aeb7dfdbc5ee56635c791ac35e95
parent
df573127
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/decoder/vp9_decodemv.c
View file @
c36d502e
...
...
@@ -367,13 +367,14 @@ static int read_inter_segment_id(VP9D_COMP *pbi, int mi_row, int mi_col,
VP9_COMMON
*
const
cm
=
&
pbi
->
common
;
MACROBLOCKD
*
const
xd
=
&
pbi
->
mb
;
const
BLOCK_SIZE_TYPE
bsize
=
xd
->
mode_info_context
->
mbmi
.
sb_type
;
const
int
pred_segment_id
=
vp9_get_segment_id
(
cm
,
cm
->
last_frame_seg_map
,
bsize
,
mi_row
,
mi_col
);
int
pred_segment_id
;
int
segment_id
;
if
(
!
xd
->
segmentation_enabled
)
return
0
;
// Default for disabled segmentation
pred_segment_id
=
vp9_get_segment_id
(
cm
,
cm
->
last_frame_seg_map
,
bsize
,
mi_row
,
mi_col
);
if
(
!
xd
->
update_mb_segmentation_map
)
return
pred_segment_id
;
...
...
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