mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
Make ff_qt_default_palette_* arrays "static const"
Originally committed as revision 11139 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
77777f0dd8
commit
1fe47470d1
@ -579,7 +579,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
|
|||||||
int color_index;
|
int color_index;
|
||||||
int color_dec;
|
int color_dec;
|
||||||
int color_greyscale;
|
int color_greyscale;
|
||||||
unsigned char *color_table;
|
const uint8_t *color_table;
|
||||||
int j;
|
int j;
|
||||||
unsigned char r, g, b;
|
unsigned char r, g, b;
|
||||||
|
|
||||||
|
@ -23,14 +23,14 @@
|
|||||||
#ifndef FFMPEG_QTPALETTE_H
|
#ifndef FFMPEG_QTPALETTE_H
|
||||||
#define FFMPEG_QTPALETTE_H
|
#define FFMPEG_QTPALETTE_H
|
||||||
|
|
||||||
unsigned char ff_qt_default_palette_4[4 * 4] = {
|
static const uint8_t ff_qt_default_palette_4[4 * 4] = {
|
||||||
0x93, 0x65, 0x5E, 0x00,
|
0x93, 0x65, 0x5E, 0x00,
|
||||||
0xFF, 0xFF, 0xFF, 0x00,
|
0xFF, 0xFF, 0xFF, 0x00,
|
||||||
0xDF, 0xD0, 0xAB, 0x00,
|
0xDF, 0xD0, 0xAB, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00
|
0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned char ff_qt_default_palette_16[16 * 4] = {
|
static const uint8_t ff_qt_default_palette_16[16 * 4] = {
|
||||||
0xFF, 0xFB, 0xFF, 0x00,
|
0xFF, 0xFB, 0xFF, 0x00,
|
||||||
0xEF, 0xD9, 0xBB, 0x00,
|
0xEF, 0xD9, 0xBB, 0x00,
|
||||||
0xE8, 0xC9, 0xB1, 0x00,
|
0xE8, 0xC9, 0xB1, 0x00,
|
||||||
@ -49,7 +49,7 @@ unsigned char ff_qt_default_palette_16[16 * 4] = {
|
|||||||
0x00, 0x00, 0x00, 0x00
|
0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned char ff_qt_default_palette_256[256 * 4] = {
|
static const uint8_t ff_qt_default_palette_256[256 * 4] = {
|
||||||
/* 0, 0x00 */ 0xFF, 0xFF, 0xFF, 0x00,
|
/* 0, 0x00 */ 0xFF, 0xFF, 0xFF, 0x00,
|
||||||
/* 1, 0x01 */ 0xFF, 0xFF, 0xCC, 0x00,
|
/* 1, 0x01 */ 0xFF, 0xFF, 0xCC, 0x00,
|
||||||
/* 2, 0x02 */ 0xFF, 0xFF, 0x99, 0x00,
|
/* 2, 0x02 */ 0xFF, 0xFF, 0x99, 0x00,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user