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
38f6a3cd
Commit
38f6a3cd
authored
Oct 04, 2013
by
Jim Bankoski
Committed by
Gerrit Code Review
Oct 04, 2013
Browse files
Merge "cpplint issues vp9_tokenize.c resolved"
parents
56acf7e5
c6960b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_tokenize.c
View file @
38f6a3cd
...
@@ -38,7 +38,6 @@ static int dct_value_cost[DCT_MAX_VALUE * 2];
...
@@ -38,7 +38,6 @@ static int dct_value_cost[DCT_MAX_VALUE * 2];
const
int
*
vp9_dct_value_cost_ptr
;
const
int
*
vp9_dct_value_cost_ptr
;
static
void
fill_value_tokens
()
{
static
void
fill_value_tokens
()
{
TOKENVALUE
*
const
t
=
dct_value_tokens
+
DCT_MAX_VALUE
;
TOKENVALUE
*
const
t
=
dct_value_tokens
+
DCT_MAX_VALUE
;
const
vp9_extra_bit
*
const
e
=
vp9_extra_bits
;
const
vp9_extra_bit
*
const
e
=
vp9_extra_bits
;
...
@@ -60,9 +59,9 @@ static void fill_value_tokens() {
...
@@ -60,9 +59,9 @@ static void fill_value_tokens() {
t
[
i
].
token
=
--
j
;
t
[
i
].
token
=
--
j
;
eb
|=
(
a
-
e
[
j
].
base_val
)
<<
1
;
eb
|=
(
a
-
e
[
j
].
base_val
)
<<
1
;
}
else
}
else
{
t
[
i
].
token
=
a
;
t
[
i
].
token
=
a
;
}
t
[
i
].
extra
=
eb
;
t
[
i
].
extra
=
eb
;
}
}
...
@@ -81,9 +80,7 @@ static void fill_value_tokens() {
...
@@ -81,9 +80,7 @@ static void fill_value_tokens() {
cost
+=
vp9_cost_bit
(
vp9_prob_half
,
extra
&
1
);
/* sign */
cost
+=
vp9_cost_bit
(
vp9_prob_half
,
extra
&
1
);
/* sign */
dct_value_cost
[
i
+
DCT_MAX_VALUE
]
=
cost
;
dct_value_cost
[
i
+
DCT_MAX_VALUE
]
=
cost
;
}
}
}
}
}
while
(
++
i
<
DCT_MAX_VALUE
);
}
while
(
++
i
<
DCT_MAX_VALUE
);
vp9_dct_value_tokens_ptr
=
dct_value_tokens
+
DCT_MAX_VALUE
;
vp9_dct_value_tokens_ptr
=
dct_value_tokens
+
DCT_MAX_VALUE
;
...
...
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