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
9fca1ce9
Commit
9fca1ce9
authored
11 years ago
by
Dmitry Kovalev
Browse files
Options
Downloads
Patches
Plain Diff
Replacing int_mv with MV.
Change-Id: I36b8b419be92171857e77a881da066424ff47af5
parent
3ffb2043
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/encoder/vp9_temporal_filter.c
+9
-12
9 additions, 12 deletions
vp9/encoder/vp9_temporal_filter.c
with
9 additions
and
12 deletions
vp9/encoder/vp9_temporal_filter.c
+
9
−
12
View file @
9fca1ce9
...
...
@@ -134,17 +134,16 @@ static int temporal_filter_find_matching_mb_c(VP9_COMP *cpi,
int
sadpb
=
x
->
sadperbit16
;
int
bestsme
=
INT_MAX
;
int_mv
best_ref_mv1
;
int_mv
best_ref_mv1_full
;
/* full-pixel value of best_ref_mv1 */
int_mv
*
ref
_mv
;
MV
best_ref_mv1
=
{
0
,
0
}
;
MV
best_ref_mv1_full
;
/* full-pixel value of best_ref_mv1 */
MV
*
ref_mv
=
&
x
->
e_mbd
.
mi_8x8
[
0
]
->
bmi
[
0
].
as_mv
[
0
].
as
_mv
;
// Save input state
struct
buf_2d
src
=
x
->
plane
[
0
].
src
;
struct
buf_2d
pre
=
xd
->
plane
[
0
].
pre
[
0
];
best_ref_mv1
.
as_int
=
0
;
best_ref_mv1_full
.
as_mv
.
col
=
best_ref_mv1
.
as_mv
.
col
>>
3
;
best_ref_mv1_full
.
as_mv
.
row
=
best_ref_mv1
.
as_mv
.
row
>>
3
;
best_ref_mv1_full
.
col
=
best_ref_mv1
.
col
>>
3
;
best_ref_mv1_full
.
row
=
best_ref_mv1
.
row
>>
3
;
// Setup frame pointers
x
->
plane
[
0
].
src
.
buf
=
arf_frame_buf
;
...
...
@@ -161,11 +160,9 @@ static int temporal_filter_find_matching_mb_c(VP9_COMP *cpi,
/*cpi->sf.search_method == HEX*/
// Ignore mv costing by sending NULL pointer instead of cost arrays
ref_mv
=
&
x
->
e_mbd
.
mi_8x8
[
0
]
->
bmi
[
0
].
as_mv
[
0
];
bestsme
=
vp9_hex_search
(
x
,
&
best_ref_mv1_full
.
as_mv
,
step_param
,
sadpb
,
1
,
bestsme
=
vp9_hex_search
(
x
,
&
best_ref_mv1_full
,
step_param
,
sadpb
,
1
,
&
cpi
->
fn_ptr
[
BLOCK_16X16
],
0
,
&
best_ref_mv1
.
as_mv
,
&
ref_mv
->
as_mv
);
0
,
&
best_ref_mv1
,
ref_mv
);
#if ALT_REF_SUBPEL_ENABLED
// Try sub-pixel MC?
...
...
@@ -174,8 +171,8 @@ static int temporal_filter_find_matching_mb_c(VP9_COMP *cpi,
int
distortion
;
unsigned
int
sse
;
// Ignore mv costing by sending NULL pointer instead of cost array
bestsme
=
cpi
->
find_fractional_mv_step
(
x
,
&
ref_mv
->
as_mv
,
&
best_ref_mv1
.
as_mv
,
bestsme
=
cpi
->
find_fractional_mv_step
(
x
,
ref_mv
,
&
best_ref_mv1
,
cpi
->
common
.
allow_high_precision_mv
,
x
->
errorperbit
,
&
cpi
->
fn_ptr
[
BLOCK_16X16
],
...
...
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