Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
08bab32c
Commit
08bab32c
authored
Jan 12, 2012
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indeo4: add some missing static and const qualifiers
From the patch by Reimar Döffinger.
parent
3faa303a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
indeo4.c
libavcodec/indeo4.c
+1
-1
indeo4data.h
libavcodec/indeo4data.h
+5
-5
No files found.
libavcodec/indeo4.c
View file @
08bab32c
...
@@ -94,7 +94,7 @@ typedef struct {
...
@@ -94,7 +94,7 @@ typedef struct {
}
IVI4DecContext
;
}
IVI4DecContext
;
struct
{
st
atic
const
st
ruct
{
InvTransformPtr
*
inv_trans
;
InvTransformPtr
*
inv_trans
;
DCTransformPtr
*
dc_trans
;
DCTransformPtr
*
dc_trans
;
int
is_2d_trans
;
int
is_2d_trans
;
...
...
libavcodec/indeo4data.h
View file @
08bab32c
...
@@ -86,7 +86,7 @@ static const uint8_t *scan_index_to_tab[15] = {
...
@@ -86,7 +86,7 @@ static const uint8_t *scan_index_to_tab[15] = {
/**
/**
* Indeo 4 dequant tables
* Indeo 4 dequant tables
*/
*/
static
uint16_t
ivi4_quant_8x8_intra
[
9
][
64
]
=
{
static
const
uint16_t
ivi4_quant_8x8_intra
[
9
][
64
]
=
{
{
{
43
,
342
,
385
,
470
,
555
,
555
,
598
,
726
,
43
,
342
,
385
,
470
,
555
,
555
,
598
,
726
,
342
,
342
,
470
,
513
,
555
,
598
,
726
,
769
,
342
,
342
,
470
,
513
,
555
,
598
,
726
,
769
,
...
@@ -179,7 +179,7 @@ static uint16_t ivi4_quant_8x8_intra[9][64] = {
...
@@ -179,7 +179,7 @@ static uint16_t ivi4_quant_8x8_intra[9][64] = {
}
}
};
};
static
uint16_t
ivi4_quant_8x8_inter
[
9
][
64
]
=
{
static
const
uint16_t
ivi4_quant_8x8_inter
[
9
][
64
]
=
{
{
{
427
,
427
,
470
,
427
,
427
,
427
,
470
,
470
,
427
,
427
,
470
,
427
,
427
,
427
,
470
,
470
,
427
,
427
,
470
,
427
,
427
,
427
,
470
,
470
,
427
,
427
,
470
,
427
,
427
,
427
,
470
,
470
,
...
@@ -272,7 +272,7 @@ static uint16_t ivi4_quant_8x8_inter[9][64] = {
...
@@ -272,7 +272,7 @@ static uint16_t ivi4_quant_8x8_inter[9][64] = {
}
}
};
};
static
uint16_t
ivi4_quant_4x4_intra
[
5
][
16
]
=
{
static
const
uint16_t
ivi4_quant_4x4_intra
[
5
][
16
]
=
{
{
{
22
,
214
,
257
,
299
,
22
,
214
,
257
,
299
,
214
,
257
,
299
,
342
,
214
,
257
,
299
,
342
,
...
@@ -305,7 +305,7 @@ static uint16_t ivi4_quant_4x4_intra[5][16] = {
...
@@ -305,7 +305,7 @@ static uint16_t ivi4_quant_4x4_intra[5][16] = {
}
}
};
};
static
uint16_t
ivi4_quant_4x4_inter
[
5
][
16
]
=
{
static
const
uint16_t
ivi4_quant_4x4_inter
[
5
][
16
]
=
{
{
{
107
,
214
,
257
,
299
,
107
,
214
,
257
,
299
,
214
,
257
,
299
,
299
,
214
,
257
,
299
,
299
,
...
@@ -342,7 +342,7 @@ static uint16_t ivi4_quant_4x4_inter[5][16] = {
...
@@ -342,7 +342,7 @@ static uint16_t ivi4_quant_4x4_inter[5][16] = {
* Table for mapping quant matrix index from the bitstream
* Table for mapping quant matrix index from the bitstream
* into internal quant table number.
* into internal quant table number.
*/
*/
static
uint8_t
quant_index_to_tab
[
22
]
=
{
static
const
uint8_t
quant_index_to_tab
[
22
]
=
{
0
,
1
,
0
,
2
,
1
,
3
,
0
,
4
,
1
,
5
,
0
,
1
,
6
,
7
,
8
,
// for 8x8 quant matrixes
0
,
1
,
0
,
2
,
1
,
3
,
0
,
4
,
1
,
5
,
0
,
1
,
6
,
7
,
8
,
// for 8x8 quant matrixes
0
,
1
,
2
,
2
,
3
,
3
,
4
// for 4x4 quant matrixes
0
,
1
,
2
,
2
,
3
,
3
,
4
// for 4x4 quant matrixes
};
};
...
...
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