Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
bb9b6a95
Commit
bb9b6a95
authored
11 years ago
by
Dmitry Kovalev
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Cleaning up vp9_mvref_common.c."
parents
79175101
d689f2ad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/common/vp9_mvref_common.c
+10
-20
10 additions, 20 deletions
vp9/common/vp9_mvref_common.c
with
10 additions
and
20 deletions
vp9/common/vp9_mvref_common.c
+
10
−
20
View file @
bb9b6a95
...
...
@@ -191,7 +191,7 @@ static void find_mv_refs_idx(const VP9_COMMON *cm, const MACROBLOCKD *xd,
MODE_INFO
*
mi
,
const
MODE_INFO
*
prev_mi
,
MV_REFERENCE_FRAME
ref_frame
,
int_mv
*
mv_ref_list
,
int
block
_idx
,
int
mi_row
,
int
mi_col
)
{
int
block
,
int
mi_row
,
int
mi_col
)
{
const
int
*
ref_sign_bias
=
cm
->
ref_frame_sign_bias
;
int
i
,
refmv_count
=
0
;
const
POSITION
*
const
mv_ref_search
=
mv_ref_blocks
[
mi
->
mbmi
.
sb_type
];
...
...
@@ -214,19 +214,12 @@ static void find_mv_refs_idx(const VP9_COMMON *cm, const MACROBLOCKD *xd,
const
MB_MODE_INFO
*
const
candidate
=
&
candidate_mi
->
mbmi
;
// Keep counts for entropy encoding.
context_counter
+=
mode_2_counter
[
candidate
->
mode
];
different_ref_found
=
1
;
// Check if the candidate comes from the same reference frame.
if
(
candidate
->
ref_frame
[
0
]
==
ref_frame
)
{
ADD_MV_REF_LIST
(
get_sub_block_mv
(
candidate_mi
,
0
,
mv_ref
->
col
,
block_idx
));
different_ref_found
=
candidate
->
ref_frame
[
1
]
!=
ref_frame
;
}
else
{
if
(
candidate
->
ref_frame
[
1
]
==
ref_frame
)
// Add second motion vector if it has the same ref_frame.
ADD_MV_REF_LIST
(
get_sub_block_mv
(
candidate_mi
,
1
,
mv_ref
->
col
,
block_idx
));
different_ref_found
=
1
;
}
if
(
candidate
->
ref_frame
[
0
]
==
ref_frame
)
ADD_MV_REF_LIST
(
get_sub_block_mv
(
candidate_mi
,
0
,
mv_ref
->
col
,
block
));
else
if
(
candidate
->
ref_frame
[
1
]
==
ref_frame
)
ADD_MV_REF_LIST
(
get_sub_block_mv
(
candidate_mi
,
1
,
mv_ref
->
col
,
block
));
}
}
...
...
@@ -239,15 +232,12 @@ static void find_mv_refs_idx(const VP9_COMMON *cm, const MACROBLOCKD *xd,
const
MB_MODE_INFO
*
const
candidate
=
&
xd
->
mi_8x8
[
mv_ref
->
col
+
mv_ref
->
row
*
xd
->
mode_info_stride
]
->
mbmi
;
different_ref_found
=
1
;
if
(
candidate
->
ref_frame
[
0
]
==
ref_frame
)
{
if
(
candidate
->
ref_frame
[
0
]
==
ref_frame
)
ADD_MV_REF_LIST
(
candidate
->
mv
[
0
]);
different_ref_found
=
candidate
->
ref_frame
[
1
]
!=
ref_frame
;
}
else
{
if
(
candidate
->
ref_frame
[
1
]
==
ref_frame
)
ADD_MV_REF_LIST
(
candidate
->
mv
[
1
]);
different_ref_found
=
1
;
}
else
if
(
candidate
->
ref_frame
[
1
]
==
ref_frame
)
ADD_MV_REF_LIST
(
candidate
->
mv
[
1
]);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment