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
55c3963c
Commit
55c3963c
authored
Jun 21, 2011
by
Scott LaVarnway
Committed by
Code Review
Jun 21, 2011
Browse files
Merge "Improved vp8dx_decode_bool"
parents
109c2029
67a1f98c
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp8/decoder/dboolhuff.h
View file @
55c3963c
...
...
@@ -81,11 +81,14 @@ static int vp8dx_decode_bool(BOOL_DECODER *br, int probability) {
int
count
;
unsigned
int
range
;
split
=
1
+
(((
br
->
range
-
1
)
*
probability
)
>>
8
);
if
(
br
->
count
<
0
)
vp8dx_bool_decoder_fill
(
br
);
value
=
br
->
value
;
count
=
br
->
count
;
range
=
br
->
range
;
split
=
1
+
(((
range
-
1
)
*
probability
)
>>
8
);
bigsplit
=
(
VP8_BD_VALUE
)
split
<<
(
VP8_BD_VALUE_SIZE
-
8
);
range
=
split
;
...
...
@@ -106,8 +109,7 @@ static int vp8dx_decode_bool(BOOL_DECODER *br, int probability) {
br
->
value
=
value
;
br
->
count
=
count
;
br
->
range
=
range
;
if
(
count
<
0
)
vp8dx_bool_decoder_fill
(
br
);
return
bit
;
}
...
...
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