mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Add (additional) const to many global tables.
Originally committed as revision 15515 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6dbfb7de82
commit
9b5ede5b64
@ -198,7 +198,7 @@ static const float tns_tmp2_map_0_4[16] = {
|
||||
0.67369562, 0.52643216, 0.36124167, 0.18374951,
|
||||
};
|
||||
|
||||
static const float *tns_tmp2_map[4] = {
|
||||
static const float * const tns_tmp2_map[4] = {
|
||||
tns_tmp2_map_0_3,
|
||||
tns_tmp2_map_0_4,
|
||||
tns_tmp2_map_1_3,
|
||||
|
@ -83,7 +83,7 @@ static const uint8_t swb_size_1024_8[] = {
|
||||
32, 36, 36, 40, 44, 48, 52, 56, 60, 64, 80
|
||||
};
|
||||
|
||||
static const uint8_t *swb_size_1024[] = {
|
||||
static const uint8_t * const swb_size_1024[] = {
|
||||
swb_size_1024_96, swb_size_1024_96, swb_size_1024_64,
|
||||
swb_size_1024_48, swb_size_1024_48, swb_size_1024_32,
|
||||
swb_size_1024_24, swb_size_1024_24, swb_size_1024_16,
|
||||
@ -110,7 +110,7 @@ static const uint8_t swb_size_128_8[] = {
|
||||
4, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 12, 16, 20, 20
|
||||
};
|
||||
|
||||
static const uint8_t *swb_size_128[] = {
|
||||
static const uint8_t * const swb_size_128[] = {
|
||||
/* the last entry on the following row is swb_size_128_64 but is a
|
||||
duplicate of swb_size_128_96 */
|
||||
swb_size_128_96, swb_size_128_96, swb_size_128_96,
|
||||
@ -132,7 +132,7 @@ static const uint8_t run_value_bits_short[16] = {
|
||||
3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9
|
||||
};
|
||||
|
||||
static const uint8_t* run_value_bits[2] = {
|
||||
static const uint8_t* const run_value_bits[2] = {
|
||||
run_value_bits_long, run_value_bits_short
|
||||
};
|
||||
|
||||
|
@ -387,12 +387,12 @@ static const uint8_t bits11[289] = {
|
||||
5,
|
||||
};
|
||||
|
||||
const uint16_t *ff_aac_spectral_codes[11] = {
|
||||
const uint16_t * const ff_aac_spectral_codes[11] = {
|
||||
codes1, codes2, codes3, codes4, codes5, codes6, codes7, codes8,
|
||||
codes9, codes10, codes11,
|
||||
};
|
||||
|
||||
const uint8_t *ff_aac_spectral_bits[11] = {
|
||||
const uint8_t * const ff_aac_spectral_bits[11] = {
|
||||
bits1, bits2, bits3, bits4, bits5, bits6, bits7, bits8,
|
||||
bits9, bits10, bits11,
|
||||
};
|
||||
@ -888,7 +888,7 @@ static const float codebook_vector10[578] = {
|
||||
64.0f, 64.0f,
|
||||
};
|
||||
|
||||
const float *ff_aac_codebook_vectors[] = {
|
||||
const float * const ff_aac_codebook_vectors[] = {
|
||||
codebook_vector0, codebook_vector0, codebook_vector2,
|
||||
codebook_vector2, codebook_vector4, codebook_vector4,
|
||||
codebook_vector6, codebook_vector6, codebook_vector8,
|
||||
|
@ -57,8 +57,8 @@ extern const uint8_t ff_aac_num_swb_128 [];
|
||||
extern const uint32_t ff_aac_scalefactor_code[121];
|
||||
extern const uint8_t ff_aac_scalefactor_bits[121];
|
||||
|
||||
extern const uint16_t *ff_aac_spectral_codes[11];
|
||||
extern const uint8_t *ff_aac_spectral_bits [11];
|
||||
extern const uint16_t * const ff_aac_spectral_codes[11];
|
||||
extern const uint8_t * const ff_aac_spectral_bits [11];
|
||||
extern const uint16_t ff_aac_spectral_sizes[11];
|
||||
|
||||
extern const float *ff_aac_codebook_vectors[];
|
||||
|
@ -1072,7 +1072,7 @@ static const int16_t vq_hebap7[512][6] = {
|
||||
{ 3231, -3284, 27336, 4174, -1683, 497},
|
||||
};
|
||||
|
||||
const int16_t (*ff_eac3_mantissa_vq[8])[6] = {
|
||||
const int16_t (* const ff_eac3_mantissa_vq[8])[6] = {
|
||||
NULL,
|
||||
vq_hebap1,
|
||||
vq_hebap2,
|
||||
|
@ -31,7 +31,7 @@ extern const int16_t ff_eac3_gaq_remap_1[12];
|
||||
extern const int16_t ff_eac3_gaq_remap_2_4_a[9][2];
|
||||
extern const int8_t ff_eac3_gaq_remap_2_4_b[9][2];
|
||||
|
||||
extern const int16_t (*ff_eac3_mantissa_vq[8])[6];
|
||||
extern const int16_t (* const ff_eac3_mantissa_vq[8])[6];
|
||||
extern const uint8_t ff_eac3_frm_expstr[32][6];
|
||||
extern const uint8_t ff_eac3_default_cpl_band_struct[18];
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
#ifdef CONFIG_LIBA52BIN
|
||||
#include <dlfcn.h>
|
||||
static const char* liba52name = "liba52.so.0";
|
||||
static const char* const liba52name = "liba52.so.0";
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
#ifdef CONFIG_LIBFAADBIN
|
||||
#include <dlfcn.h>
|
||||
static const char* libfaadname = "libfaad.so";
|
||||
static const char* const libfaadname = "libfaad.so";
|
||||
#else
|
||||
#define dlopen(a)
|
||||
#define dlclose(a)
|
||||
|
@ -1979,7 +1979,7 @@ static const uint32_t table_mb_non_intra4[128][2] = {
|
||||
{0x000011, 5}, {0x0001AC, 9}, {0x0000F3, 8}, {0x000439, 11},
|
||||
};
|
||||
|
||||
const uint32_t (*wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2]={
|
||||
const uint32_t (* const wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2]={
|
||||
table_mb_non_intra2,
|
||||
table_mb_non_intra3,
|
||||
table_mb_non_intra4,
|
||||
|
@ -91,7 +91,7 @@ extern const uint32_t ff_table0_dc_chroma[120][2];
|
||||
extern const uint32_t ff_table1_dc_chroma[120][2];
|
||||
|
||||
#define WMV2_INTER_CBP_TABLE_COUNT 4
|
||||
extern const uint32_t (*wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2];
|
||||
extern const uint32_t (* const wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2];
|
||||
|
||||
extern const uint8_t wmv2_scantableA[64];
|
||||
extern const uint8_t wmv2_scantableB[64];
|
||||
|
@ -94,7 +94,7 @@ int ff_rate_control_init(MpegEncContext *s)
|
||||
"avgTex",
|
||||
NULL
|
||||
};
|
||||
static double (*func1[])(void *, double)={
|
||||
static double (* const func1[])(void *, double)={
|
||||
(void *)bits2qp,
|
||||
(void *)qp2bits,
|
||||
NULL
|
||||
|
@ -221,7 +221,7 @@ const AVCodecTag ff_codec_movsubtitle_tags[] = {
|
||||
/* cf. QTFileFormat.pdf p253, qtff.pdf p205 */
|
||||
/* http://developer.apple.com/documentation/mac/Text/Text-368.html */
|
||||
/* deprecated by putting the code as 3*5bit ascii */
|
||||
static const char *mov_mdhd_language_map[] = {
|
||||
static const char * const mov_mdhd_language_map[] = {
|
||||
/* 0-9 */
|
||||
"eng", "fra", "ger", "ita", "dut", "sve", "spa", "dan", "por", "nor",
|
||||
"heb", "jpn", "ara", "fin", "gre", "ice", "mlt", "tur", "hr "/*scr*/, "chi"/*ace?*/,
|
||||
|
@ -293,7 +293,7 @@ typedef struct attrname_map
|
||||
/* All known fmtp parmeters and the corresping RTPAttrTypeEnum */
|
||||
#define ATTR_NAME_TYPE_INT 0
|
||||
#define ATTR_NAME_TYPE_STR 1
|
||||
static attrname_map_t attr_names[]=
|
||||
static const attrname_map_t attr_names[]=
|
||||
{
|
||||
{"SizeLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, sizelength)},
|
||||
{"IndexLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, indexlength)},
|
||||
|
Loading…
Reference in New Issue
Block a user