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
255bcf86
Commit
255bcf86
authored
Nov 03, 2015
by
Alex Converse
Committed by
Gerrit Code Review
Nov 03, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "misc fixes: Remove a wasted value."
parents
1796d1cc
0f059d6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
vp10/decoder/dsubexp.c
vp10/decoder/dsubexp.c
+6
-3
vp10/encoder/subexp.c
vp10/encoder/subexp.c
+3
-2
No files found.
vp10/decoder/dsubexp.c
View file @
255bcf86
...
...
@@ -23,13 +23,13 @@ static int inv_recenter_nonneg(int v, int m) {
static
int
decode_uniform
(
vpx_reader
*
r
)
{
const
int
l
=
8
;
const
int
m
=
(
1
<<
l
)
-
191
;
const
int
m
=
(
1
<<
l
)
-
191
+
CONFIG_MISC_FIXES
;
const
int
v
=
vpx_read_literal
(
r
,
l
-
1
);
return
v
<
m
?
v
:
(
v
<<
1
)
-
m
+
vpx_read_bit
(
r
);
}
static
int
inv_remap_prob
(
int
v
,
int
m
)
{
static
uint8_t
inv_map_table
[
MAX_PROB
]
=
{
static
uint8_t
inv_map_table
[
MAX_PROB
-
CONFIG_MISC_FIXES
]
=
{
7
,
20
,
33
,
46
,
59
,
72
,
85
,
98
,
111
,
124
,
137
,
150
,
163
,
176
,
189
,
202
,
215
,
228
,
241
,
254
,
1
,
2
,
3
,
4
,
5
,
6
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
21
,
22
,
23
,
24
,
25
,
26
,
27
,
...
...
@@ -46,7 +46,10 @@ static int inv_remap_prob(int v, int m) {
191
,
192
,
193
,
194
,
195
,
196
,
197
,
198
,
199
,
200
,
201
,
203
,
204
,
205
,
206
,
207
,
208
,
209
,
210
,
211
,
212
,
213
,
214
,
216
,
217
,
218
,
219
,
220
,
221
,
222
,
223
,
224
,
225
,
226
,
227
,
229
,
230
,
231
,
232
,
233
,
234
,
235
,
236
,
237
,
238
,
239
,
240
,
242
,
243
,
244
,
245
,
246
,
247
,
248
,
249
,
250
,
251
,
252
,
253
,
253
239
,
240
,
242
,
243
,
244
,
245
,
246
,
247
,
248
,
249
,
250
,
251
,
252
,
253
,
#if !CONFIG_MISC_FIXES
253
#endif
};
assert
(
v
<
(
int
)(
sizeof
(
inv_map_table
)
/
sizeof
(
inv_map_table
[
0
])));
v
=
inv_map_table
[
v
];
...
...
vp10/encoder/subexp.c
View file @
255bcf86
...
...
@@ -25,7 +25,8 @@ static const uint8_t update_bits[255] = {
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
10
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
10
,
11
-
CONFIG_MISC_FIXES
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
...
...
@@ -85,7 +86,7 @@ static int prob_diff_update_cost(vpx_prob newp, vpx_prob oldp) {
static
void
encode_uniform
(
vpx_writer
*
w
,
int
v
)
{
const
int
l
=
8
;
const
int
m
=
(
1
<<
l
)
-
191
;
const
int
m
=
(
1
<<
l
)
-
191
+
CONFIG_MISC_FIXES
;
if
(
v
<
m
)
{
vpx_write_literal
(
w
,
v
,
l
-
1
);
}
else
{
...
...
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