Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
8db9faef
Commit
8db9faef
authored
Jun 27, 2016
by
Alex Converse
Committed by
Yaowu Xu
Oct 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use remove some magic numbers in aom_rans_merge_prob8_pdf.
Change-Id: I0cefae17642d7adf1b9bd637ecb81b437629aa0c
parent
d30a563d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
aom_dsp/ans.c
aom_dsp/ans.c
+1
-1
No files found.
aom_dsp/ans.c
View file @
8db9faef
...
@@ -39,7 +39,7 @@ void aom_rans_merge_prob8_pdf(aom_cdf_prob *const out_pdf,
...
@@ -39,7 +39,7 @@ void aom_rans_merge_prob8_pdf(aom_cdf_prob *const out_pdf,
const
int
out_syms
=
in_syms
+
1
;
const
int
out_syms
=
in_syms
+
1
;
assert
(
src_pdf
!=
out_pdf
);
assert
(
src_pdf
!=
out_pdf
);
out_pdf
[
0
]
=
node_prob
<<
(
10
-
8
);
out_pdf
[
0
]
=
node_prob
<<
(
RANS_PROB_BITS
-
ANS_P8_SHIFT
);
adjustment
-=
out_pdf
[
0
];
adjustment
-=
out_pdf
[
0
];
for
(
i
=
0
;
i
<
in_syms
;
++
i
)
{
for
(
i
=
0
;
i
<
in_syms
;
++
i
)
{
int
p
=
(
p1
*
src_pdf
[
i
]
+
round_fact
)
>>
ANS_P8_SHIFT
;
int
p
=
(
p1
*
src_pdf
[
i
]
+
round_fact
)
>>
ANS_P8_SHIFT
;
...
...
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