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
518a934f
Commit
518a934f
authored
Jan 14, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Jan 14, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Converting int_mv to MV."
parents
fc43938d
2033ac49
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
vp9/encoder/vp9_firstpass.c
vp9/encoder/vp9_firstpass.c
+1
-1
vp9/encoder/vp9_mbgraph.c
vp9/encoder/vp9_mbgraph.c
+10
-11
vp9/encoder/vp9_rdopt.c
vp9/encoder/vp9_rdopt.c
+4
-3
vp9/encoder/vp9_rdopt.h
vp9/encoder/vp9_rdopt.h
+2
-2
No files found.
vp9/encoder/vp9_firstpass.c
View file @
518a934f
...
...
@@ -714,7 +714,7 @@ void vp9_first_pass(VP9_COMP *cpi) {
mv
.
as_mv
.
row
*=
8
;
mv
.
as_mv
.
col
*=
8
;
this_error
=
motion_error
;
vp9_set_mbmode_and_mvs
(
x
,
NEWMV
,
&
mv
);
vp9_set_mbmode_and_mvs
(
x
d
,
NEWMV
,
&
mv
.
as_
mv
);
xd
->
mi_8x8
[
0
]
->
mbmi
.
tx_size
=
TX_4X4
;
xd
->
mi_8x8
[
0
]
->
mbmi
.
ref_frame
[
0
]
=
LAST_FRAME
;
xd
->
mi_8x8
[
0
]
->
mbmi
.
ref_frame
[
1
]
=
NONE
;
...
...
vp9/encoder/vp9_mbgraph.c
View file @
518a934f
...
...
@@ -23,7 +23,7 @@
static
unsigned
int
do_16x16_motion_iteration
(
VP9_COMP
*
cpi
,
const
MV
*
ref_mv
,
int_mv
*
dst_mv
,
MV
*
dst_mv
,
int
mb_row
,
int
mb_col
)
{
MACROBLOCK
*
const
x
=
&
cpi
->
mb
;
...
...
@@ -35,7 +35,7 @@ static unsigned int do_16x16_motion_iteration(VP9_COMP *cpi,
const
int
tmp_col_max
=
x
->
mv_col_max
;
const
int
tmp_row_min
=
x
->
mv_row_min
;
const
int
tmp_row_max
=
x
->
mv_row_max
;
int_mv
ref_full
;
MV
ref_full
;
// Further step/diamond searches as necessary
int
step_param
=
cpi
->
sf
.
reduce_first_step_size
+
...
...
@@ -44,12 +44,12 @@ static unsigned int do_16x16_motion_iteration(VP9_COMP *cpi,
vp9_set_mv_search_range
(
x
,
ref_mv
);
ref_full
.
as_mv
.
col
=
ref_mv
->
col
>>
3
;
ref_full
.
as_mv
.
row
=
ref_mv
->
row
>>
3
;
ref_full
.
col
=
ref_mv
->
col
>>
3
;
ref_full
.
row
=
ref_mv
->
row
>>
3
;
/*cpi->sf.search_method == HEX*/
best_err
=
vp9_hex_search
(
x
,
&
ref_full
.
as_mv
,
step_param
,
x
->
errorperbit
,
0
,
&
v_fn_ptr
,
0
,
ref_mv
,
&
dst_mv
->
as
_mv
);
best_err
=
vp9_hex_search
(
x
,
&
ref_full
,
step_param
,
x
->
errorperbit
,
0
,
&
v_fn_ptr
,
0
,
ref_mv
,
dst
_mv
);
// Try sub-pixel MC
// if (bestsme > error_thresh && bestsme < INT_MAX)
...
...
@@ -57,15 +57,14 @@ static unsigned int do_16x16_motion_iteration(VP9_COMP *cpi,
int
distortion
;
unsigned
int
sse
;
best_err
=
cpi
->
find_fractional_mv_step
(
x
,
&
dst_mv
->
as_mv
,
ref_mv
,
x
,
dst_mv
,
ref_mv
,
cpi
->
common
.
allow_high_precision_mv
,
x
->
errorperbit
,
&
v_fn_ptr
,
0
,
cpi
->
sf
.
subpel_iters_per_step
,
NULL
,
NULL
,
&
distortion
,
&
sse
);
}
vp9_set_mbmode_and_mvs
(
x
,
NEWMV
,
dst_mv
);
vp9_set_mbmode_and_mvs
(
x
d
,
NEWMV
,
dst_mv
);
vp9_build_inter_predictors_sby
(
xd
,
mb_row
,
mb_col
,
BLOCK_16X16
);
best_err
=
vp9_sad16x16
(
x
->
plane
[
0
].
src
.
buf
,
x
->
plane
[
0
].
src
.
stride
,
xd
->
plane
[
0
].
dst
.
buf
,
xd
->
plane
[
0
].
dst
.
stride
,
...
...
@@ -96,7 +95,7 @@ static int do_16x16_motion_search(VP9_COMP *cpi, const int_mv *ref_mv,
// Test last reference frame using the previous best mv as the
// starting point (best reference) for the search
tmp_err
=
do_16x16_motion_iteration
(
cpi
,
&
ref_mv
->
as_mv
,
&
tmp_mv
,
tmp_err
=
do_16x16_motion_iteration
(
cpi
,
&
ref_mv
->
as_mv
,
&
tmp_mv
.
as_mv
,
mb_row
,
mb_col
);
if
(
tmp_err
<
err
)
{
err
=
tmp_err
;
...
...
@@ -110,7 +109,7 @@ static int do_16x16_motion_search(VP9_COMP *cpi, const int_mv *ref_mv,
int_mv
zero_ref_mv
,
tmp_mv
;
zero_ref_mv
.
as_int
=
0
;
tmp_err
=
do_16x16_motion_iteration
(
cpi
,
&
zero_ref_mv
.
as_mv
,
&
tmp_mv
,
tmp_err
=
do_16x16_motion_iteration
(
cpi
,
&
zero_ref_mv
.
as_mv
,
&
tmp_mv
.
as_mv
,
mb_row
,
mb_col
);
if
(
tmp_err
<
err
)
{
dst_mv
->
as_int
=
tmp_mv
.
as_int
;
...
...
vp9/encoder/vp9_rdopt.c
View file @
518a934f
...
...
@@ -1418,9 +1418,10 @@ static int cost_mv_ref(VP9_COMP *cpi, MB_PREDICTION_MODE mode,
}
}
void
vp9_set_mbmode_and_mvs
(
MACROBLOCK
*
x
,
MB_PREDICTION_MODE
mb
,
int_mv
*
mv
)
{
x
->
e_mbd
.
mi_8x8
[
0
]
->
mbmi
.
mode
=
mb
;
x
->
e_mbd
.
mi_8x8
[
0
]
->
mbmi
.
mv
[
0
].
as_int
=
mv
->
as_int
;
void
vp9_set_mbmode_and_mvs
(
MACROBLOCKD
*
xd
,
MB_PREDICTION_MODE
mode
,
const
MV
*
mv
)
{
xd
->
mi_8x8
[
0
]
->
mbmi
.
mode
=
mode
;
xd
->
mi_8x8
[
0
]
->
mbmi
.
mv
[
0
].
as_mv
=
*
mv
;
}
static
void
joint_motion_search
(
VP9_COMP
*
cpi
,
MACROBLOCK
*
x
,
...
...
vp9/encoder/vp9_rdopt.h
View file @
518a934f
...
...
@@ -60,8 +60,8 @@ int64_t vp9_rd_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x,
void
vp9_init_me_luts
();
void
vp9_set_mbmode_and_mvs
(
MACROBLOCK
*
x
,
MB_PREDICTION_MODE
mb
,
int_mv
*
mv
);
void
vp9_set_mbmode_and_mvs
(
MACROBLOCK
D
*
xd
,
MB_PREDICTION_MODE
mode
,
const
MV
*
mv
);
void
vp9_get_entropy_contexts
(
TX_SIZE
tx_size
,
ENTROPY_CONTEXT
t_above
[
16
],
ENTROPY_CONTEXT
t_left
[
16
],
...
...
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