Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-1.1
Commits
523a018b
Commit
523a018b
authored
Oct 04, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put some static tables const
parent
9a17f78c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
modules/codec/adpcm.c
modules/codec/adpcm.c
+6
-6
modules/codec/araw.c
modules/codec/araw.c
+4
-4
No files found.
modules/codec/adpcm.c
View file @
523a018b
...
...
@@ -77,7 +77,7 @@ static void DecodeAdpcmDk4 ( decoder_t *, int16_t *, uint8_t * );
static
void
DecodeAdpcmDk3
(
decoder_t
*
,
int16_t
*
,
uint8_t
*
);
static
void
DecodeAdpcmEA
(
decoder_t
*
,
int16_t
*
,
uint8_t
*
);
static
int
pi_channels_maps
[
6
]
=
static
const
int
pi_channels_maps
[
6
]
=
{
0
,
AOUT_CHAN_CENTER
,
...
...
@@ -89,13 +89,13 @@ static int pi_channels_maps[6] =
};
/* Various table from http://www.pcisys.net/~melanson/codecs/adpcm.txt */
static
int
i_index_table
[
16
]
=
static
const
int
i_index_table
[
16
]
=
{
-
1
,
-
1
,
-
1
,
-
1
,
2
,
4
,
6
,
8
,
-
1
,
-
1
,
-
1
,
-
1
,
2
,
4
,
6
,
8
};
static
int
i_step_table
[
89
]
=
static
const
int
i_step_table
[
89
]
=
{
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
16
,
17
,
19
,
21
,
23
,
25
,
28
,
31
,
34
,
37
,
41
,
45
,
...
...
@@ -108,18 +108,18 @@ static int i_step_table[89] =
15289
,
16818
,
18500
,
20350
,
22385
,
24623
,
27086
,
29794
,
32767
};
static
int
i_adaptation_table
[
16
]
=
static
const
int
i_adaptation_table
[
16
]
=
{
230
,
230
,
230
,
230
,
307
,
409
,
512
,
614
,
768
,
614
,
512
,
409
,
307
,
230
,
230
,
230
};
static
int
i_adaptation_coeff1
[
7
]
=
static
const
int
i_adaptation_coeff1
[
7
]
=
{
256
,
512
,
0
,
192
,
240
,
460
,
392
};
static
int
i_adaptation_coeff2
[
7
]
=
static
const
int
i_adaptation_coeff2
[
7
]
=
{
0
,
-
256
,
0
,
64
,
0
,
-
208
,
-
232
};
...
...
modules/codec/araw.c
View file @
523a018b
...
...
@@ -66,12 +66,12 @@ static block_t *EncoderEncode( encoder_t *, aout_buffer_t * );
struct
decoder_sys_t
{
int16_t
*
p_logtos16
;
/* used with m/alaw to int16_t */
const
int16_t
*
p_logtos16
;
/* used with m/alaw to int16_t */
audio_date_t
end_date
;
};
static
int
pi_channels_maps
[]
=
static
const
int
pi_channels_maps
[]
=
{
0
,
AOUT_CHAN_CENTER
,
...
...
@@ -91,7 +91,7 @@ static int pi_channels_maps[] =
|
AOUT_CHAN_MIDDLELEFT
|
AOUT_CHAN_MIDDLERIGHT
|
AOUT_CHAN_LFE
};
static
int16_t
ulawtos16
[
256
]
=
static
const
int16_t
ulawtos16
[
256
]
=
{
-
32124
,
-
31100
,
-
30076
,
-
29052
,
-
28028
,
-
27004
,
-
25980
,
-
24956
,
-
23932
,
-
22908
,
-
21884
,
-
20860
,
-
19836
,
-
18812
,
-
17788
,
-
16764
,
...
...
@@ -127,7 +127,7 @@ static int16_t ulawtos16[256] =
56
,
48
,
40
,
32
,
24
,
16
,
8
,
0
};
static
int16_t
alawtos16
[
256
]
=
static
const
int16_t
alawtos16
[
256
]
=
{
-
5504
,
-
5248
,
-
6016
,
-
5760
,
-
4480
,
-
4224
,
-
4992
,
-
4736
,
-
7552
,
-
7296
,
-
8064
,
-
7808
,
-
6528
,
-
6272
,
-
7040
,
-
6784
,
...
...
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