Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
63d9c4da
Commit
63d9c4da
authored
Dec 21, 2011
by
John Koleszar
Committed by
Gerrit Code Review
Dec 21, 2011
Browse files
Merge "tokenizer: use correct block type context in stuff1st_order_b"
parents
056bcc87
d6020f9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
vp8/encoder/tokenize.c
vp8/encoder/tokenize.c
+13
-7
No files found.
vp8/encoder/tokenize.c
View file @
63d9c4da
...
...
@@ -514,17 +514,19 @@ static __inline void stuff1st_order_b
TOKENEXTRA
**
tp
,
ENTROPY_CONTEXT
*
a
,
ENTROPY_CONTEXT
*
l
,
int
type
,
VP8_COMP
*
cpi
)
{
int
pt
;
/* near block/prev token context index */
int
band
;
TOKENEXTRA
*
t
=
*
tp
;
/* store tokens starting here */
VP8_COMBINEENTROPYCONTEXTS
(
pt
,
*
a
,
*
l
);
band
=
type
?
0
:
1
;
t
->
Token
=
DCT_EOB_TOKEN
;
t
->
context_tree
=
cpi
->
common
.
fc
.
coef_probs
[
0
]
[
1
]
[
pt
];
t
->
context_tree
=
cpi
->
common
.
fc
.
coef_probs
[
type
]
[
band
]
[
pt
];
t
->
skip_eob_node
=
0
;
++
cpi
->
coef_counts
[
0
]
[
1
]
[
pt
]
[
DCT_EOB_TOKEN
];
++
cpi
->
coef_counts
[
type
]
[
band
]
[
pt
]
[
DCT_EOB_TOKEN
];
++
t
;
*
tp
=
t
;
pt
=
0
;
/* 0 <-> all coeff data is zero */
...
...
@@ -561,15 +563,19 @@ void vp8_stuff_mb(VP8_COMP *cpi, MACROBLOCKD *x, TOKENEXTRA **t)
ENTROPY_CONTEXT
*
L
=
(
ENTROPY_CONTEXT
*
)
x
->
left_context
;
int
plane_type
;
int
b
;
stuff2nd_order_b
(
t
,
plane_type
=
3
;
if
((
x
->
mode_info_context
->
mbmi
.
mode
!=
B_PRED
&&
x
->
mode_info_context
->
mbmi
.
mode
!=
SPLITMV
))
{
stuff2nd_order_b
(
t
,
A
+
vp8_block2above
[
24
],
L
+
vp8_block2left
[
24
],
cpi
);
plane_type
=
0
;
plane_type
=
0
;
}
for
(
b
=
0
;
b
<
16
;
b
++
)
stuff1st_order_b
(
t
,
A
+
vp8_block2above
[
b
],
L
+
vp8_block2left
[
b
],
cpi
);
L
+
vp8_block2left
[
b
],
plane_type
,
cpi
);
for
(
b
=
16
;
b
<
24
;
b
++
)
stuff1st_order_buv
(
t
,
...
...
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