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
a4ccfadc
Commit
a4ccfadc
authored
Dec 11, 2013
by
Jingning Han
Committed by
Gerrit Code Review
Dec 11, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Rename clamp_mv_min_max to set_mv_search_range"
parents
e7910316
9d6e7ce1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
vp9/encoder/vp9_mbgraph.c
vp9/encoder/vp9_mbgraph.c
+1
-1
vp9/encoder/vp9_mcomp.c
vp9/encoder/vp9_mcomp.c
+1
-1
vp9/encoder/vp9_mcomp.h
vp9/encoder/vp9_mcomp.h
+1
-1
vp9/encoder/vp9_rdopt.c
vp9/encoder/vp9_rdopt.c
+3
-3
No files found.
vp9/encoder/vp9_mbgraph.c
View file @
a4ccfadc
...
@@ -42,7 +42,7 @@ static unsigned int do_16x16_motion_iteration(VP9_COMP *cpi,
...
@@ -42,7 +42,7 @@ static unsigned int do_16x16_motion_iteration(VP9_COMP *cpi,
(
cpi
->
speed
<
8
?
(
cpi
->
speed
>
5
?
1
:
0
)
:
2
);
(
cpi
->
speed
<
8
?
(
cpi
->
speed
>
5
?
1
:
0
)
:
2
);
step_param
=
MIN
(
step_param
,
(
cpi
->
sf
.
max_step_search_steps
-
2
));
step_param
=
MIN
(
step_param
,
(
cpi
->
sf
.
max_step_search_steps
-
2
));
vp9_
clamp_mv_min_max
(
x
,
&
ref_mv
->
as_mv
);
vp9_
set_mv_search_range
(
x
,
&
ref_mv
->
as_mv
);
ref_full
.
as_mv
.
col
=
ref_mv
->
as_mv
.
col
>>
3
;
ref_full
.
as_mv
.
col
=
ref_mv
->
as_mv
.
col
>>
3
;
ref_full
.
as_mv
.
row
=
ref_mv
->
as_mv
.
row
>>
3
;
ref_full
.
as_mv
.
row
=
ref_mv
->
as_mv
.
row
>>
3
;
...
...
vp9/encoder/vp9_mcomp.c
View file @
a4ccfadc
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
// #define NEW_DIAMOND_SEARCH
// #define NEW_DIAMOND_SEARCH
void
vp9_
clamp_mv_min_max
(
MACROBLOCK
*
x
,
MV
*
mv
)
{
void
vp9_
set_mv_search_range
(
MACROBLOCK
*
x
,
MV
*
mv
)
{
const
int
col_min
=
(
mv
->
col
>>
3
)
-
MAX_FULL_PEL_VAL
+
(
mv
->
col
&
7
?
1
:
0
);
const
int
col_min
=
(
mv
->
col
>>
3
)
-
MAX_FULL_PEL_VAL
+
(
mv
->
col
&
7
?
1
:
0
);
const
int
row_min
=
(
mv
->
row
>>
3
)
-
MAX_FULL_PEL_VAL
+
(
mv
->
row
&
7
?
1
:
0
);
const
int
row_min
=
(
mv
->
row
>>
3
)
-
MAX_FULL_PEL_VAL
+
(
mv
->
row
&
7
?
1
:
0
);
const
int
col_max
=
(
mv
->
col
>>
3
)
+
MAX_FULL_PEL_VAL
;
const
int
col_max
=
(
mv
->
col
>>
3
)
+
MAX_FULL_PEL_VAL
;
...
...
vp9/encoder/vp9_mcomp.h
View file @
a4ccfadc
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define BORDER_MV_PIXELS_B16 (16 + VP9_INTERP_EXTEND)
#define BORDER_MV_PIXELS_B16 (16 + VP9_INTERP_EXTEND)
void
vp9_
clamp_mv_min_max
(
MACROBLOCK
*
x
,
MV
*
mv
);
void
vp9_
set_mv_search_range
(
MACROBLOCK
*
x
,
MV
*
mv
);
int
vp9_mv_bit_cost
(
const
MV
*
mv
,
const
MV
*
ref
,
int
vp9_mv_bit_cost
(
const
MV
*
mv
,
const
MV
*
ref
,
const
int
*
mvjcost
,
int
*
mvcost
[
2
],
int
weight
);
const
int
*
mvjcost
,
int
*
mvcost
[
2
],
int
weight
);
void
vp9_init_dsmotion_compensation
(
MACROBLOCK
*
x
,
int
stride
);
void
vp9_init_dsmotion_compensation
(
MACROBLOCK
*
x
,
int
stride
);
...
...
vp9/encoder/vp9_rdopt.c
View file @
a4ccfadc
...
@@ -1781,7 +1781,7 @@ static void rd_check_segment_txsize(VP9_COMP *cpi, MACROBLOCK *x,
...
@@ -1781,7 +1781,7 @@ static void rd_check_segment_txsize(VP9_COMP *cpi, MACROBLOCK *x,
// adjust src pointer for this block
// adjust src pointer for this block
mi_buf_shift
(
x
,
i
);
mi_buf_shift
(
x
,
i
);
vp9_
clamp_mv_min_max
(
x
,
&
bsi
->
ref_mv
->
as_mv
);
vp9_
set_mv_search_range
(
x
,
&
bsi
->
ref_mv
->
as_mv
);
if
(
cpi
->
sf
.
search_method
==
HEX
)
{
if
(
cpi
->
sf
.
search_method
==
HEX
)
{
bestsme
=
vp9_hex_search
(
x
,
&
mvp_full
.
as_mv
,
bestsme
=
vp9_hex_search
(
x
,
&
mvp_full
.
as_mv
,
...
@@ -2344,7 +2344,7 @@ static void single_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
...
@@ -2344,7 +2344,7 @@ static void single_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
setup_pre_planes
(
xd
,
0
,
scaled_ref_frame
,
mi_row
,
mi_col
,
NULL
);
setup_pre_planes
(
xd
,
0
,
scaled_ref_frame
,
mi_row
,
mi_col
,
NULL
);
}
}
vp9_
clamp_mv_min_max
(
x
,
&
ref_mv
.
as_mv
);
vp9_
set_mv_search_range
(
x
,
&
ref_mv
.
as_mv
);
// Adjust search parameters based on small partitions' result.
// Adjust search parameters based on small partitions' result.
if
(
x
->
fast_ms
)
{
if
(
x
->
fast_ms
)
{
...
@@ -2523,7 +2523,7 @@ static void joint_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
...
@@ -2523,7 +2523,7 @@ static void joint_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
// Compound motion search on first ref frame.
// Compound motion search on first ref frame.
if
(
id
)
if
(
id
)
xd
->
plane
[
0
].
pre
[
0
]
=
ref_yv12
[
id
];
xd
->
plane
[
0
].
pre
[
0
]
=
ref_yv12
[
id
];
vp9_
clamp_mv_min_max
(
x
,
&
ref_mv
[
id
].
as_mv
);
vp9_
set_mv_search_range
(
x
,
&
ref_mv
[
id
].
as_mv
);
// Use mv result from single mode as mvp.
// Use mv result from single mode as mvp.
tmp_mv
.
as_int
=
frame_mv
[
refs
[
id
]].
as_int
;
tmp_mv
.
as_int
=
frame_mv
[
refs
[
id
]].
as_int
;
...
...
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