Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
b3bb318d
Commit
b3bb318d
authored
Jan 24, 2018
by
Frederic Barbier
Committed by
Fred BARBIER
Jan 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give skip_mode priority over segmentation
BUG=aomedia:1266 Change-Id: I7612e379aa7c63da56e975e95cd7266cd1f8c68d
parent
c5024215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
24 deletions
+27
-24
av1/decoder/decodemv.c
av1/decoder/decodemv.c
+27
-24
No files found.
av1/decoder/decodemv.c
View file @
b3bb318d
...
...
@@ -1276,6 +1276,13 @@ static void set_ref_frames_for_skip_mode(AV1_COMMON *const cm,
static
void
read_ref_frames
(
AV1_COMMON
*
const
cm
,
MACROBLOCKD
*
const
xd
,
aom_reader
*
r
,
int
segment_id
,
MV_REFERENCE_FRAME
ref_frame
[
2
])
{
#if CONFIG_EXT_SKIP
if
(
xd
->
mi
[
0
]
->
mbmi
.
skip_mode
)
{
set_ref_frames_for_skip_mode
(
cm
,
ref_frame
);
return
;
}
#endif // CONFIG_EXT_SKIP
if
(
segfeature_active
(
&
cm
->
seg
,
segment_id
,
SEG_LVL_REF_FRAME
))
{
ref_frame
[
0
]
=
(
MV_REFERENCE_FRAME
)
get_segdata
(
&
cm
->
seg
,
segment_id
,
SEG_LVL_REF_FRAME
);
...
...
@@ -1291,13 +1298,6 @@ static void read_ref_frames(AV1_COMMON *const cm, MACROBLOCKD *const xd,
ref_frame
[
0
]
=
LAST_FRAME
;
ref_frame
[
1
]
=
NONE_FRAME
;
}
else
{
#if CONFIG_EXT_SKIP
if
(
xd
->
mi
[
0
]
->
mbmi
.
skip_mode
)
{
set_ref_frames_for_skip_mode
(
cm
,
ref_frame
);
return
;
}
#endif // CONFIG_EXT_SKIP
const
REFERENCE_MODE
mode
=
read_block_reference_mode
(
cm
,
xd
,
r
);
if
(
mode
==
COMPOUND_REFERENCE
)
{
...
...
@@ -1820,29 +1820,32 @@ static void read_inter_block_mode_info(AV1Decoder *const pbi,
mode_ctx
=
av1_mode_context_analyzer
(
inter_mode_ctx
,
mbmi
->
ref_frame
);
mbmi
->
ref_mv_idx
=
0
;
#if CONFIG_EXT_SKIP
if
(
mbmi
->
skip_mode
)
{
assert
(
is_compound
);
mbmi
->
mode
=
NEAREST_NEARESTMV
;
}
else
{
#endif // CONFIG_EXT_SKIP
#if CONFIG_SEGMENT_GLOBALMV
if
(
segfeature_active
(
&
cm
->
seg
,
mbmi
->
segment_id
,
SEG_LVL_SKIP
)
||
segfeature_active
(
&
cm
->
seg
,
mbmi
->
segment_id
,
SEG_LVL_GLOBALMV
))
if
(
segfeature_active
(
&
cm
->
seg
,
mbmi
->
segment_id
,
SEG_LVL_SKIP
)
||
segfeature_active
(
&
cm
->
seg
,
mbmi
->
segment_id
,
SEG_LVL_GLOBALMV
))
#else
if
(
segfeature_active
(
&
cm
->
seg
,
mbmi
->
segment_id
,
SEG_LVL_SKIP
))
#endif
{
mbmi
->
mode
=
GLOBALMV
;
{
mbmi
->
mode
=
GLOBALMV
;
}
else
{
if
(
is_compound
)
mbmi
->
mode
=
read_inter_compound_mode
(
cm
,
xd
,
r
,
mode_ctx
);
else
mbmi
->
mode
=
read_inter_mode
(
ec_ctx
,
xd
,
r
,
mode_ctx
);
if
(
mbmi
->
mode
==
NEWMV
||
mbmi
->
mode
==
NEW_NEWMV
||
have_nearmv_in_inter_mode
(
mbmi
->
mode
))
read_drl_idx
(
ec_ctx
,
xd
,
mbmi
,
r
);
}
#if CONFIG_EXT_SKIP
}
else
if
(
mbmi
->
skip_mode
)
{
assert
(
is_compound
);
mbmi
->
mode
=
NEAREST_NEARESTMV
;
#endif // CONFIG_EXT_SKIP
}
else
{
if
(
is_compound
)
mbmi
->
mode
=
read_inter_compound_mode
(
cm
,
xd
,
r
,
mode_ctx
);
else
mbmi
->
mode
=
read_inter_mode
(
ec_ctx
,
xd
,
r
,
mode_ctx
);
if
(
mbmi
->
mode
==
NEWMV
||
mbmi
->
mode
==
NEW_NEWMV
||
have_nearmv_in_inter_mode
(
mbmi
->
mode
))
read_drl_idx
(
ec_ctx
,
xd
,
mbmi
,
r
);
}
#endif
if
(
is_compound
!=
is_inter_compound_mode
(
mbmi
->
mode
))
{
aom_internal_error
(
&
cm
->
error
,
AOM_CODEC_CORRUPT_FRAME
,
"Prediction mode %d invalid with ref frame %d %d"
,
...
...
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