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
d31fc628
Commit
d31fc628
authored
Mar 04, 2014
by
Dmitry Kovalev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming NMV_UPDATE_PROB to MV_UPDATE_PROB.
Change-Id: I7f3bcca103f0b1f6b3c064b61472543de9a8288a
parent
d73c4ac8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
vp9/common/vp9_entropymv.h
vp9/common/vp9_entropymv.h
+1
-1
vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_decodeframe.c
+1
-1
vp9/encoder/vp9_encodemv.c
vp9/encoder/vp9_encodemv.c
+5
-5
No files found.
vp9/common/vp9_entropymv.h
View file @
d31fc628
...
...
@@ -26,7 +26,7 @@ void vp9_init_mv_probs(struct VP9Common *cm);
void
vp9_adapt_mv_probs
(
struct
VP9Common
*
cm
,
int
usehp
);
int
vp9_use_mv_hp
(
const
MV
*
ref
);
#define
NMV_UPDATE_PROB
252
#define
MV_UPDATE_PROB
252
/* Symbols for coding which components are zero jointly */
#define MV_JOINTS 4
...
...
vp9/decoder/vp9_decodeframe.c
View file @
d31fc628
...
...
@@ -146,7 +146,7 @@ static void read_frame_reference_mode_probs(VP9_COMMON *cm, vp9_reader *r) {
static
void
update_mv_probs
(
vp9_prob
*
p
,
int
n
,
vp9_reader
*
r
)
{
int
i
;
for
(
i
=
0
;
i
<
n
;
++
i
)
if
(
vp9_read
(
r
,
N
MV_UPDATE_PROB
))
if
(
vp9_read
(
r
,
MV_UPDATE_PROB
))
p
[
i
]
=
(
vp9_read_literal
(
r
,
7
)
<<
1
)
|
1
;
}
...
...
vp9/encoder/vp9_encodemv.c
View file @
d31fc628
...
...
@@ -160,7 +160,7 @@ static void write_mv_update(const vp9_tree_index *tree,
vp9_tree_probs_from_distribution
(
tree
,
branch_ct
,
counts
);
for
(
i
=
0
;
i
<
n
-
1
;
++
i
)
update_mv
(
w
,
branch_ct
[
i
],
&
probs
[
i
],
N
MV_UPDATE_PROB
);
update_mv
(
w
,
branch_ct
[
i
],
&
probs
[
i
],
MV_UPDATE_PROB
);
}
void
vp9_write_nmv_probs
(
VP9_COMMON
*
cm
,
int
usehp
,
vp9_writer
*
w
)
{
...
...
@@ -174,13 +174,13 @@ void vp9_write_nmv_probs(VP9_COMMON *cm, int usehp, vp9_writer *w) {
nmv_component
*
comp
=
&
mvc
->
comps
[
i
];
nmv_component_counts
*
comp_counts
=
&
counts
->
comps
[
i
];
update_mv
(
w
,
comp_counts
->
sign
,
&
comp
->
sign
,
N
MV_UPDATE_PROB
);
update_mv
(
w
,
comp_counts
->
sign
,
&
comp
->
sign
,
MV_UPDATE_PROB
);
write_mv_update
(
vp9_mv_class_tree
,
comp
->
classes
,
comp_counts
->
classes
,
MV_CLASSES
,
w
);
write_mv_update
(
vp9_mv_class0_tree
,
comp
->
class0
,
comp_counts
->
class0
,
CLASS0_SIZE
,
w
);
for
(
j
=
0
;
j
<
MV_OFFSET_BITS
;
++
j
)
update_mv
(
w
,
comp_counts
->
bits
[
j
],
&
comp
->
bits
[
j
],
N
MV_UPDATE_PROB
);
update_mv
(
w
,
comp_counts
->
bits
[
j
],
&
comp
->
bits
[
j
],
MV_UPDATE_PROB
);
}
for
(
i
=
0
;
i
<
2
;
++
i
)
{
...
...
@@ -195,8 +195,8 @@ void vp9_write_nmv_probs(VP9_COMMON *cm, int usehp, vp9_writer *w) {
if
(
usehp
)
{
for
(
i
=
0
;
i
<
2
;
++
i
)
{
update_mv
(
w
,
counts
->
comps
[
i
].
class0_hp
,
&
mvc
->
comps
[
i
].
class0_hp
,
N
MV_UPDATE_PROB
);
update_mv
(
w
,
counts
->
comps
[
i
].
hp
,
&
mvc
->
comps
[
i
].
hp
,
N
MV_UPDATE_PROB
);
MV_UPDATE_PROB
);
update_mv
(
w
,
counts
->
comps
[
i
].
hp
,
&
mvc
->
comps
[
i
].
hp
,
MV_UPDATE_PROB
);
}
}
}
...
...
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