Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
41ae3d02
Commit
41ae3d02
authored
Jul 16, 2013
by
Dmitry Kovalev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing two unused arguments from vp9_inc_mv signature.
Change-Id: Ieffea49eb7a5e5092f21f8694c546aff69b07c6d
parent
5b65a71c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
28 deletions
+22
-28
vp9/common/vp9_entropymv.c
vp9/common/vp9_entropymv.c
+1
-3
vp9/common/vp9_entropymv.h
vp9/common/vp9_entropymv.h
+1
-2
vp9/decoder/vp9_decodemv.c
vp9/decoder/vp9_decodemv.c
+1
-1
vp9/encoder/vp9_encodemv.c
vp9/encoder/vp9_encodemv.c
+19
-22
No files found.
vp9/common/vp9_entropymv.c
View file @
41ae3d02
...
...
@@ -187,11 +187,9 @@ static void counts_to_context(nmv_component_counts *mvcomp, int usehp) {
}
}
void
vp9_inc_mv
(
const
MV
*
mv
,
const
MV
*
ref
,
nmv_context_counts
*
mvctx
,
int
usehp
)
{
void
vp9_inc_mv
(
const
MV
*
mv
,
nmv_context_counts
*
mvctx
)
{
const
MV_JOINT_TYPE
j
=
vp9_get_mv_joint
(
mv
);
mvctx
->
joints
[
j
]
++
;
usehp
=
usehp
&&
vp9_use_mv_hp
(
ref
);
if
(
mv_joint_vertical
(
j
))
inc_mv_component_count
(
mv
->
row
,
&
mvctx
->
comps
[
0
],
1
);
...
...
vp9/common/vp9_entropymv.h
View file @
41ae3d02
...
...
@@ -128,8 +128,7 @@ typedef struct {
nmv_component_counts
comps
[
2
];
}
nmv_context_counts
;
void
vp9_inc_mv
(
const
MV
*
mv
,
const
MV
*
ref
,
nmv_context_counts
*
mvctx
,
int
usehp
);
void
vp9_inc_mv
(
const
MV
*
mv
,
nmv_context_counts
*
mvctx
);
void
vp9_counts_process
(
nmv_context_counts
*
NMVcount
,
int
usehp
);
...
...
vp9/decoder/vp9_decodemv.c
View file @
41ae3d02
...
...
@@ -255,7 +255,7 @@ static INLINE void read_mv(vp9_reader *r, MV *mv, const MV *ref,
if
(
mv_joint_horizontal
(
j
))
diff
.
col
=
read_mv_component
(
r
,
&
ctx
->
comps
[
1
],
usehp
);
vp9_inc_mv
(
&
diff
,
ref
,
counts
,
usehp
);
vp9_inc_mv
(
&
diff
,
counts
);
mv
->
row
=
ref
->
row
+
diff
.
row
;
mv
->
col
=
ref
->
col
+
diff
.
col
;
...
...
vp9/encoder/vp9_encodemv.c
View file @
41ae3d02
...
...
@@ -581,44 +581,41 @@ void vp9_build_nmv_cost_table(int *mvjoint,
void
vp9_update_nmv_count
(
VP9_COMP
*
cpi
,
MACROBLOCK
*
x
,
int_mv
*
best_ref_mv
,
int_mv
*
second_best_ref_mv
)
{
MB_MODE_INFO
*
mbmi
=
&
x
->
e_mbd
.
mode_info_context
->
mbmi
;
MV
mv
;
int
bw
l
=
b_width_log2
(
mbmi
->
sb_type
)
,
bw
=
1
<<
bwl
;
int
bh
l
=
b_height_log2
(
mbmi
->
sb_type
)
,
bh
=
1
<<
bhl
;
MB_MODE_INFO
*
mbmi
=
&
x
->
e_mbd
.
mode_info_context
->
mbmi
;
MV
diff
;
const
int
bw
=
1
<<
b_width_log2
(
mbmi
->
sb_type
);
const
int
bh
=
1
<<
b_height_log2
(
mbmi
->
sb_type
);
int
idx
,
idy
;
if
(
mbmi
->
sb_type
<
BLOCK_SIZE_SB8X8
)
{
int
i
;
PARTITION_INFO
*
pi
=
x
->
partition_info
;
for
(
idy
=
0
;
idy
<
2
;
idy
+=
bh
)
{
for
(
idx
=
0
;
idx
<
2
;
idx
+=
bw
)
{
i
=
idy
*
2
+
idx
;
const
int
i
=
idy
*
2
+
idx
;
if
(
pi
->
bmi
[
i
].
mode
==
NEWMV
)
{
mv
.
row
=
(
pi
->
bmi
[
i
].
mv
.
as_mv
.
row
-
best_ref_mv
->
as_mv
.
row
)
;
mv
.
col
=
(
pi
->
bmi
[
i
].
mv
.
as_mv
.
col
-
best_ref_mv
->
as_mv
.
col
)
;
vp9_inc_mv
(
&
mv
,
&
best_ref_mv
->
as_mv
,
&
cpi
->
NMVcount
,
x
->
e_mbd
.
allow_high_precision_mv
);
diff
.
row
=
pi
->
bmi
[
i
].
mv
.
as_mv
.
row
-
best_ref_mv
->
as_mv
.
row
;
diff
.
col
=
pi
->
bmi
[
i
].
mv
.
as_mv
.
col
-
best_ref_mv
->
as_mv
.
col
;
vp9_inc_mv
(
&
diff
,
&
cpi
->
NMVcount
);
if
(
x
->
e_mbd
.
mode_info_context
->
mbmi
.
ref_frame
[
1
]
>
INTRA_FRAME
)
{
mv
.
row
=
pi
->
bmi
[
i
].
second_mv
.
as_mv
.
row
-
diff
.
row
=
pi
->
bmi
[
i
].
second_mv
.
as_mv
.
row
-
second_best_ref_mv
->
as_mv
.
row
;
mv
.
col
=
pi
->
bmi
[
i
].
second_mv
.
as_mv
.
col
-
diff
.
col
=
pi
->
bmi
[
i
].
second_mv
.
as_mv
.
col
-
second_best_ref_mv
->
as_mv
.
col
;
vp9_inc_mv
(
&
mv
,
&
second_best_ref_mv
->
as_mv
,
&
cpi
->
NMVcount
,
x
->
e_mbd
.
allow_high_precision_mv
);
vp9_inc_mv
(
&
diff
,
&
cpi
->
NMVcount
);
}
}
}
}
}
else
if
(
mbmi
->
mode
==
NEWMV
)
{
mv
.
row
=
mbmi
->
mv
[
0
].
as_mv
.
row
-
best_ref_mv
->
as_mv
.
row
;
mv
.
col
=
mbmi
->
mv
[
0
].
as_mv
.
col
-
best_ref_mv
->
as_mv
.
col
;
vp9_inc_mv
(
&
mv
,
&
best_ref_mv
->
as_mv
,
&
cpi
->
NMVcount
,
x
->
e_mbd
.
allow_high_precision_mv
);
diff
.
row
=
mbmi
->
mv
[
0
].
as_mv
.
row
-
best_ref_mv
->
as_mv
.
row
;
diff
.
col
=
mbmi
->
mv
[
0
].
as_mv
.
col
-
best_ref_mv
->
as_mv
.
col
;
vp9_inc_mv
(
&
diff
,
&
cpi
->
NMVcount
);
if
(
mbmi
->
ref_frame
[
1
]
>
INTRA_FRAME
)
{
mv
.
row
=
mbmi
->
mv
[
1
].
as_mv
.
row
-
second_best_ref_mv
->
as_mv
.
row
;
mv
.
col
=
mbmi
->
mv
[
1
].
as_mv
.
col
-
second_best_ref_mv
->
as_mv
.
col
;
vp9_inc_mv
(
&
mv
,
&
second_best_ref_mv
->
as_mv
,
&
cpi
->
NMVcount
,
x
->
e_mbd
.
allow_high_precision_mv
);
diff
.
row
=
mbmi
->
mv
[
1
].
as_mv
.
row
-
second_best_ref_mv
->
as_mv
.
row
;
diff
.
col
=
mbmi
->
mv
[
1
].
as_mv
.
col
-
second_best_ref_mv
->
as_mv
.
col
;
vp9_inc_mv
(
&
diff
,
&
cpi
->
NMVcount
);
}
}
}
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