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
9ade3940
Commit
9ade3940
authored
Nov 23, 2017
by
Jonathan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv_map_multi: make entropy consistent
BUG=aomedia:1060 Change-Id: I051ff95b411cb27b0025cd634b5c599199ed082d
parent
625e50bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
aom_dsp/entdec.c
aom_dsp/entdec.c
+1
-0
aom_dsp/entenc.c
aom_dsp/entenc.c
+1
-0
No files found.
aom_dsp/entdec.c
View file @
9ade3940
...
...
@@ -157,6 +157,7 @@ int od_ec_decode_bool_q15(od_ec_dec *dec, unsigned f) {
OD_ASSERT
(
dif
>>
(
OD_EC_WINDOW_SIZE
-
16
)
<
r
);
OD_ASSERT
(
32768U
<=
r
);
v
=
((
r
>>
8
)
*
(
uint32_t
)(
f
>>
EC_PROB_SHIFT
)
>>
(
7
-
EC_PROB_SHIFT
));
v
+=
EC_MIN_PROB
;
vw
=
(
od_ec_window
)
v
<<
(
OD_EC_WINDOW_SIZE
-
16
);
ret
=
1
;
r_new
=
v
;
...
...
aom_dsp/entenc.c
View file @
9ade3940
...
...
@@ -190,6 +190,7 @@ void od_ec_encode_bool_q15(od_ec_enc *enc, int val, unsigned f) {
r
=
enc
->
rng
;
OD_ASSERT
(
32768U
<=
r
);
v
=
((
r
>>
8
)
*
(
uint32_t
)(
f
>>
EC_PROB_SHIFT
)
>>
(
7
-
EC_PROB_SHIFT
));
v
+=
EC_MIN_PROB
;
if
(
val
)
l
+=
r
-
v
;
r
=
val
?
v
:
r
-
v
;
od_ec_enc_normalize
(
enc
,
l
,
r
);
...
...
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