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
Guillaume Martres
aom-rav1e
Commits
e4f949b5
Commit
e4f949b5
authored
Feb 09, 2013
by
Paul Wilkins
Committed by
Gerrit Code Review
Feb 09, 2013
Browse files
Merge "Nearest / Zero Mv default entropy tweak." into experimental
parents
dc836109
bbede82f
Changes
3
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_modecont.c
View file @
e4f949b5
...
...
@@ -12,7 +12,7 @@
#include
"vp9/common/vp9_entropy.h"
const
int
vp9_default_mode_contexts
[
INTER_MODE_CONTEXTS
][
4
]
=
{
{
223
,
1
,
1
,
237
},
// 0,0 best: Only candidate
{
1
,
223
,
1
,
237
},
// 0,0 best: Only candidate
{
87
,
166
,
26
,
219
},
// 0,0 best: non zero candidates
{
89
,
67
,
18
,
125
},
// 0,0 best: non zero candidates, split
{
16
,
141
,
69
,
226
},
// strong nz candidate(s), no split
...
...
vp9/decoder/vp9_decodemv.c
View file @
e4f949b5
...
...
@@ -792,7 +792,7 @@ static void read_mb_modes_mv(VP9D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi,
}
*/
// I
s
the segment level skip mode enabled
// I
f
the segment level skip mode enabled
if
(
vp9_segfeature_active
(
xd
,
mbmi
->
segment_id
,
SEG_LVL_SKIP
))
{
mbmi
->
mode
=
ZEROMV
;
}
else
{
...
...
vp9/encoder/vp9_bitstream.c
View file @
e4f949b5
...
...
@@ -221,8 +221,8 @@ static void update_refpred_stats(VP9_COMP *cpi) {
//
// The branch counts table is re-populated during the actual pack stage and in
// the decoder to facilitate backwards update of the context.
static
void
update_mode_probs
(
VP9_COMMON
*
cm
,
int
mode_context
[
INTER_MODE_CONTEXTS
][
4
])
{
static
void
update_
inter_
mode_probs
(
VP9_COMMON
*
cm
,
int
mode_context
[
INTER_MODE_CONTEXTS
][
4
])
{
int
i
,
j
;
unsigned
int
(
*
mv_ref_ct
)[
4
][
2
];
...
...
@@ -813,7 +813,7 @@ static void pack_inter_mode_mvs(VP9_COMP *cpi, MODE_INFO *m,
active_section
=
3
;
#endif
// I
s
segment skip is not enabled code the mode.
// I
f
segment skip is not enabled code the mode.
if
(
!
vp9_segfeature_active
(
xd
,
segment_id
,
SEG_LVL_SKIP
))
{
if
(
mi
->
sb_type
)
{
write_sb_mv_ref
(
bc
,
mode
,
mv_ref_p
);
...
...
@@ -1872,7 +1872,13 @@ void vp9_pack_bitstream(VP9_COMP *cpi, unsigned char *dest,
if
(
pc
->
frame_type
!=
KEY_FRAME
)
{
int
i
,
j
;
int
new_context
[
INTER_MODE_CONTEXTS
][
4
];
update_mode_probs
(
pc
,
new_context
);
if
(
!
cpi
->
dummy_packing
)
{
update_inter_mode_probs
(
pc
,
new_context
);
}
else
{
// In dummy pack assume context unchanged.
vpx_memcpy
(
new_context
,
pc
->
fc
.
vp9_mode_contexts
,
sizeof
(
pc
->
fc
.
vp9_mode_contexts
));
}
for
(
i
=
0
;
i
<
INTER_MODE_CONTEXTS
;
i
++
)
{
for
(
j
=
0
;
j
<
4
;
j
++
)
{
...
...
Write
Preview
Supports
Markdown
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