Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
f7ece831
Commit
f7ece831
authored
Jul 25, 2013
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Jul 25, 2013
Browse files
Merge "Inlining inc_mv_component_count function."
parents
9f8335d0
0064958c
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_entropymv.c
View file @
f7ece831
...
@@ -107,12 +107,6 @@ int vp9_get_mv_mag(MV_CLASS_TYPE c, int offset) {
...
@@ -107,12 +107,6 @@ int vp9_get_mv_mag(MV_CLASS_TYPE c, int offset) {
return
mv_class_base
(
c
)
+
offset
;
return
mv_class_base
(
c
)
+
offset
;
}
}
static
void
inc_mv_component_count
(
int
v
,
nmv_component_counts
*
comp_counts
,
int
incr
)
{
assert
(
v
!=
0
);
comp_counts
->
mvcount
[
MV_MAX
+
v
]
+=
incr
;
}
static
void
inc_mv_component
(
int
v
,
nmv_component_counts
*
comp_counts
,
static
void
inc_mv_component
(
int
v
,
nmv_component_counts
*
comp_counts
,
int
incr
,
int
usehp
)
{
int
incr
,
int
usehp
)
{
int
s
,
z
,
c
,
o
,
d
,
e
,
f
;
int
s
,
z
,
c
,
o
,
d
,
e
,
f
;
...
@@ -164,14 +158,15 @@ static void counts_to_context(nmv_component_counts *mvcomp, int usehp) {
...
@@ -164,14 +158,15 @@ static void counts_to_context(nmv_component_counts *mvcomp, int usehp) {
}
}
}
}
void
vp9_inc_mv
(
const
MV
*
mv
,
nmv_context_counts
*
mvctx
)
{
void
vp9_inc_mv
(
const
MV
*
mv
,
nmv_context_counts
*
counts
)
{
const
MV_JOINT_TYPE
j
=
vp9_get_mv_joint
(
mv
);
const
MV_JOINT_TYPE
j
=
vp9_get_mv_joint
(
mv
);
mvctx
->
joints
[
j
]
++
;
++
counts
->
joints
[
j
];
if
(
mv_joint_vertical
(
j
))
if
(
mv_joint_vertical
(
j
))
inc_mv_component_count
(
mv
->
row
,
&
mvctx
->
comps
[
0
],
1
)
;
++
counts
->
comps
[
0
].
mvcount
[
MV_MAX
+
mv
->
row
]
;
if
(
mv_joint_horizontal
(
j
))
if
(
mv_joint_horizontal
(
j
))
inc_mv_component_
count
(
mv
->
co
l
,
&
mvctx
->
comps
[
1
],
1
)
;
++
count
s
->
co
mps
[
1
].
mvcount
[
MV_MAX
+
mv
->
col
]
;
}
}
static
void
adapt_prob
(
vp9_prob
*
dest
,
vp9_prob
prep
,
unsigned
int
ct
[
2
])
{
static
void
adapt_prob
(
vp9_prob
*
dest
,
vp9_prob
prep
,
unsigned
int
ct
[
2
])
{
...
...
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