Skip to content
GitLab
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
ff4bfa72
Commit
ff4bfa72
authored
Aug 01, 2013
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Aug 01, 2013
Browse files
Merge "Adding missing const to vp9_extra_bits array."
parents
12f57627
5b65246a
Changes
3
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_entropy.c
View file @
ff4bfa72
...
...
@@ -419,7 +419,7 @@ static void init_bit_trees() {
init_bit_tree
(
cat6
,
14
);
}
vp9_extra_bit
vp9_extra_bits
[
12
]
=
{
const
vp9_extra_bit
vp9_extra_bits
[
12
]
=
{
{
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
1
},
{
0
,
0
,
0
,
2
},
...
...
vp9/common/vp9_entropy.h
View file @
ff4bfa72
...
...
@@ -50,7 +50,7 @@ typedef struct {
int
base_val
;
}
vp9_extra_bit
;
extern
vp9_extra_bit
vp9_extra_bits
[
12
];
/* indexed by token value */
extern
const
vp9_extra_bit
vp9_extra_bits
[
12
];
/* indexed by token value */
#define MAX_PROB 255
#define DCT_MAX_VALUE 16384
...
...
vp9/encoder/vp9_tokenize.c
View file @
ff4bfa72
...
...
@@ -40,7 +40,7 @@ const int *vp9_dct_value_cost_ptr;
static
void
fill_value_tokens
()
{
TOKENVALUE
*
const
t
=
dct_value_tokens
+
DCT_MAX_VALUE
;
vp9_extra_bit
*
const
e
=
vp9_extra_bits
;
const
vp9_extra_bit
*
const
e
=
vp9_extra_bits
;
int
i
=
-
DCT_MAX_VALUE
;
int
sign
=
1
;
...
...
@@ -69,7 +69,7 @@ static void fill_value_tokens() {
// initialize the cost for extra bits for all possible coefficient value.
{
int
cost
=
0
;
vp9_extra_bit
*
p
=
vp9_extra_bits
+
t
[
i
].
token
;
const
vp9_extra_bit
*
p
=
vp9_extra_bits
+
t
[
i
].
token
;
if
(
p
->
base_val
)
{
const
int
extra
=
t
[
i
].
extra
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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