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
3997da0d
Commit
3997da0d
authored
Jul 16, 2013
by
Dmitry Kovalev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing MV_GROUP_UPDATE define and corresponding code.
Change-Id: I4884cdc2557d25d50c7c4f7e19b1ad8bdb93cd63
parent
98e132bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
79 deletions
+0
-79
vp9/common/vp9_entropymv.h
vp9/common/vp9_entropymv.h
+0
-3
vp9/decoder/vp9_decodemv.c
vp9/decoder/vp9_decodemv.c
+0
-5
vp9/encoder/vp9_encodemv.c
vp9/encoder/vp9_encodemv.c
+0
-71
No files found.
vp9/common/vp9_entropymv.h
View file @
3997da0d
...
...
@@ -25,9 +25,6 @@ void vp9_adapt_mv_probs(struct VP9Common *cm, int usehp);
int
vp9_use_mv_hp
(
const
MV
*
ref
);
#define VP9_NMV_UPDATE_PROB 252
//#define MV_GROUP_UPDATE
#define LOW_PRECISION_MV_UPDATE
/* Use 7 bit forward update */
/* Symbols for coding which components are zero jointly */
...
...
vp9/decoder/vp9_decodemv.c
View file @
3997da0d
...
...
@@ -274,11 +274,6 @@ static void update_mv(vp9_reader *r, vp9_prob *p, vp9_prob upd_p) {
static
void
read_mv_probs
(
vp9_reader
*
r
,
nmv_context
*
mvc
,
int
usehp
)
{
int
i
,
j
,
k
;
#ifdef MV_GROUP_UPDATE
if
(
!
vp9_read_bit
(
r
))
return
;
#endif
for
(
j
=
0
;
j
<
MV_JOINTS
-
1
;
++
j
)
update_mv
(
r
,
&
mvc
->
joints
[
j
],
VP9_NMV_UPDATE_PROB
);
...
...
vp9/encoder/vp9_encodemv.c
View file @
3997da0d
...
...
@@ -417,10 +417,6 @@ void vp9_write_nmv_probs(VP9_COMP* const cpi, int usehp, vp9_writer* const bc) {
unsigned
int
branch_ct_hp
[
2
][
2
];
nmv_context
*
mvc
=
&
cpi
->
common
.
fc
.
nmvc
;
#ifdef MV_GROUP_UPDATE
int
savings
=
0
;
#endif
#ifdef NMV_STATS
if
(
!
cpi
->
dummy_packing
)
add_nmvcount
(
&
tnmvcounts
,
&
cpi
->
NMVcount
);
...
...
@@ -430,73 +426,6 @@ void vp9_write_nmv_probs(VP9_COMP* const cpi, int usehp, vp9_writer* const bc) {
branch_ct_class0
,
branch_ct_bits
,
branch_ct_class0_fp
,
branch_ct_fp
,
branch_ct_class0_hp
,
branch_ct_hp
);
/* write updates if they help */
#ifdef MV_GROUP_UPDATE
for
(
j
=
0
;
j
<
MV_JOINTS
-
1
;
++
j
)
{
savings
+=
update_nmv_savings
(
branch_ct_joint
[
j
],
cpi
->
common
.
fc
.
nmvc
.
joints
[
j
],
prob
.
joints
[
j
],
VP9_NMV_UPDATE_PROB
);
}
for
(
i
=
0
;
i
<
2
;
++
i
)
{
savings
+=
update_nmv_savings
(
branch_ct_sign
[
i
],
cpi
->
common
.
fc
.
nmvc
.
comps
[
i
].
sign
,
prob
.
comps
[
i
].
sign
,
VP9_NMV_UPDATE_PROB
);
for
(
j
=
0
;
j
<
MV_CLASSES
-
1
;
++
j
)
{
savings
+=
update_nmv_savings
(
branch_ct_classes
[
i
][
j
],
cpi
->
common
.
fc
.
nmvc
.
comps
[
i
].
classes
[
j
],
prob
.
comps
[
i
].
classes
[
j
],
VP9_NMV_UPDATE_PROB
);
}
for
(
j
=
0
;
j
<
CLASS0_SIZE
-
1
;
++
j
)
{
savings
+=
update_nmv_savings
(
branch_ct_class0
[
i
][
j
],
cpi
->
common
.
fc
.
nmvc
.
comps
[
i
].
class0
[
j
],
prob
.
comps
[
i
].
class0
[
j
],
VP9_NMV_UPDATE_PROB
);
}
for
(
j
=
0
;
j
<
MV_OFFSET_BITS
;
++
j
)
{
savings
+=
update_nmv_savings
(
branch_ct_bits
[
i
][
j
],
cpi
->
common
.
fc
.
nmvc
.
comps
[
i
].
bits
[
j
],
prob
.
comps
[
i
].
bits
[
j
],
VP9_NMV_UPDATE_PROB
);
}
}
for
(
i
=
0
;
i
<
2
;
++
i
)
{
for
(
j
=
0
;
j
<
CLASS0_SIZE
;
++
j
)
{
int
k
;
for
(
k
=
0
;
k
<
3
;
++
k
)
{
savings
+=
update_nmv_savings
(
branch_ct_class0_fp
[
i
][
j
][
k
],
cpi
->
common
.
fc
.
nmvc
.
comps
[
i
].
class0_fp
[
j
][
k
],
prob
.
comps
[
i
].
class0_fp
[
j
][
k
],
VP9_NMV_UPDATE_PROB
);
}
}
for
(
j
=
0
;
j
<
3
;
++
j
)
{
savings
+=
update_nmv_savings
(
branch_ct_fp
[
i
][
j
],
cpi
->
common
.
fc
.
nmvc
.
comps
[
i
].
fp
[
j
],
prob
.
comps
[
i
].
fp
[
j
],
VP9_NMV_UPDATE_PROB
);
}
}
if
(
usehp
)
{
for
(
i
=
0
;
i
<
2
;
++
i
)
{
savings
+=
update_nmv_savings
(
branch_ct_class0_hp
[
i
],
cpi
->
common
.
fc
.
nmvc
.
comps
[
i
].
class0_hp
,
prob
.
comps
[
i
].
class0_hp
,
VP9_NMV_UPDATE_PROB
);
savings
+=
update_nmv_savings
(
branch_ct_hp
[
i
],
cpi
->
common
.
fc
.
nmvc
.
comps
[
i
].
hp
,
prob
.
comps
[
i
].
hp
,
VP9_NMV_UPDATE_PROB
);
}
}
if
(
savings
<=
0
)
{
vp9_write_bit
(
bc
,
0
);
return
;
}
vp9_write_bit
(
bc
,
1
);
#endif
for
(
j
=
0
;
j
<
MV_JOINTS
-
1
;
++
j
)
update_mv
(
bc
,
branch_ct_joint
[
j
],
&
mvc
->
joints
[
j
],
prob
.
joints
[
j
],
...
...
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