Only "./configure --enable-gpl" on x86 was tested.
Unified · Split
| @@ -91,7 +91,7 @@ enum HTTPState { · 90 unmodified lines | |||
| 91 | RTSPSTATE_SEND_PACKET, | 91 | RTSPSTATE_SEND_PACKET, |
| 92 | }; | 92 | }; |
| 93 | 93 | ||
| 94 | static const char *http_state[] = { | 94 | static const char * const http_state[] = { |
| 95 | "HTTP_WAIT_REQUEST", | 95 | "HTTP_WAIT_REQUEST", |
| 96 | "HTTP_SEND_HEADER", | 96 | "HTTP_SEND_HEADER", |
| 97 | 97 | ||
| @@ -53,7 +53,7 @@ static const uint8_t run_value_bits_short[16] = { · 52 unmodified lines | |||
| 53 | 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9 | 53 | 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9 |
| 54 | }; | 54 | }; |
| 55 | 55 | ||
| 56 | static const uint8_t *run_value_bits[2] = { | 56 | static const uint8_t * const run_value_bits[2] = { |
| 57 | run_value_bits_long, run_value_bits_short | 57 | run_value_bits_long, run_value_bits_short |
| 58 | }; | 58 | }; |
| 59 | 59 | ||
| @@ -132,7 +132,7 @@ static const uint8_t aic_c_ext_scan[192] = { · 131 unmodified lines | |||
| 132 | 177, 184, 176, 169, 162, 161, 168, 160, | 132 | 177, 184, 176, 169, 162, 161, 168, 160, |
| 133 | }; | 133 | }; |
| 134 | 134 | ||
| 135 | static const uint8_t *aic_scan[NUM_BANDS] = { | 135 | static const uint8_t * const aic_scan[NUM_BANDS] = { |
| 136 | aic_y_scan, aic_c_scan, aic_y_ext_scan, aic_c_ext_scan | 136 | aic_y_scan, aic_c_scan, aic_y_ext_scan, aic_c_ext_scan |
| 137 | }; | 137 | }; |
| 138 | 138 | ||
| @@ -84,52 +84,52 @@ av_cold void ff_atrac3p_init_vlcs(void) · 83 unmodified lines | |||
| 84 | { | 84 | { |
| 85 | int i, wl_vlc_offs, ct_vlc_offs, sf_vlc_offs, tab_offset; | 85 | int i, wl_vlc_offs, ct_vlc_offs, sf_vlc_offs, tab_offset; |
| 86 | 86 | ||
| 87 | static int wl_nb_bits[4] = { 2, 3, 5, 5 }; | 87 | static const int wl_nb_bits[4] = { 2, 3, 5, 5 }; |
| 88 | static int wl_nb_codes[4] = { 3, 5, 8, 8 }; | 88 | static const int wl_nb_codes[4] = { 3, 5, 8, 8 }; |
| 89 | static const uint8_t *wl_bits[4] = { | 89 | static const uint8_t * const wl_bits[4] = { |
| 90 | atrac3p_wl_huff_bits1, atrac3p_wl_huff_bits2, | 90 | atrac3p_wl_huff_bits1, atrac3p_wl_huff_bits2, |
| 91 | atrac3p_wl_huff_bits3, atrac3p_wl_huff_bits4 | 91 | atrac3p_wl_huff_bits3, atrac3p_wl_huff_bits4 |
| 92 | }; | 92 | }; |
| 93 | static const uint8_t *wl_codes[4] = { | 93 | static const uint8_t * const wl_codes[4] = { |
| 94 | atrac3p_wl_huff_code1, atrac3p_wl_huff_code2, | 94 | atrac3p_wl_huff_code1, atrac3p_wl_huff_code2, |
| 95 | atrac3p_wl_huff_code3, atrac3p_wl_huff_code4 | 95 | atrac3p_wl_huff_code3, atrac3p_wl_huff_code4 |
| 96 | }; | 96 | }; |
| 97 | static const uint8_t *wl_xlats[4] = { | 97 | static const uint8_t * const wl_xlats[4] = { |
| 98 | atrac3p_wl_huff_xlat1, atrac3p_wl_huff_xlat2, NULL, NULL | 98 | atrac3p_wl_huff_xlat1, atrac3p_wl_huff_xlat2, NULL, NULL |
| 99 | }; | 99 | }; |
| 100 | 100 | ||
| 101 | static int ct_nb_bits[4] = { 3, 4, 4, 4 }; | 101 | static const int ct_nb_bits[4] = { 3, 4, 4, 4 }; |
| 102 | static int ct_nb_codes[4] = { 4, 8, 8, 8 }; | 102 | static const int ct_nb_codes[4] = { 4, 8, 8, 8 }; |
| 103 | static const uint8_t *ct_bits[4] = { | 103 | static const uint8_t * const ct_bits[4] = { |
| 104 | atrac3p_ct_huff_bits1, atrac3p_ct_huff_bits2, | 104 | atrac3p_ct_huff_bits1, atrac3p_ct_huff_bits2, |
| 105 | atrac3p_ct_huff_bits2, atrac3p_ct_huff_bits3 | 105 | atrac3p_ct_huff_bits2, atrac3p_ct_huff_bits3 |
| 106 | }; | 106 | }; |
| 107 | static const uint8_t *ct_codes[4] = { | 107 | static const uint8_t * const ct_codes[4] = { |
| 108 | atrac3p_ct_huff_code1, atrac3p_ct_huff_code2, | 108 | atrac3p_ct_huff_code1, atrac3p_ct_huff_code2, |
| 109 | atrac3p_ct_huff_code2, atrac3p_ct_huff_code3 | 109 | atrac3p_ct_huff_code2, atrac3p_ct_huff_code3 |
| 110 | }; | 110 | }; |
| 111 | static const uint8_t *ct_xlats[4] = { | 111 | static const uint8_t * const ct_xlats[4] = { |
| 112 | NULL, NULL, atrac3p_ct_huff_xlat1, NULL | 112 | NULL, NULL, atrac3p_ct_huff_xlat1, NULL |
| 113 | }; | 113 | }; |
| 114 | 114 | ||
| 115 | static int sf_nb_bits[8] = { 9, 9, 9, 9, 6, 6, 7, 7 }; | 115 | static const int sf_nb_bits[8] = { 9, 9, 9, 9, 6, 6, 7, 7 }; |
| 116 | static int sf_nb_codes[8] = { 64, 64, 64, 64, 16, 16, 16, 16 }; | 116 | static const int sf_nb_codes[8] = { 64, 64, 64, 64, 16, 16, 16, 16 }; |
| 117 | static const uint8_t *sf_bits[8] = { | 117 | static const uint8_t * const sf_bits[8] = { |
| 118 | atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits2, | 118 | atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits2, |
| 119 | atrac3p_sf_huff_bits3, atrac3p_sf_huff_bits4, atrac3p_sf_huff_bits4, | 119 | atrac3p_sf_huff_bits3, atrac3p_sf_huff_bits4, atrac3p_sf_huff_bits4, |
| 120 | atrac3p_sf_huff_bits5, atrac3p_sf_huff_bits6 | 120 | atrac3p_sf_huff_bits5, atrac3p_sf_huff_bits6 |
| 121 | }; | 121 | }; |
| 122 | static const uint16_t *sf_codes[8] = { | 122 | static const uint16_t * const sf_codes[8] = { |
| 123 | atrac3p_sf_huff_code1, atrac3p_sf_huff_code1, atrac3p_sf_huff_code2, | 123 | atrac3p_sf_huff_code1, atrac3p_sf_huff_code1, atrac3p_sf_huff_code2, |
| 124 | atrac3p_sf_huff_code3, atrac3p_sf_huff_code4, atrac3p_sf_huff_code4, | 124 | atrac3p_sf_huff_code3, atrac3p_sf_huff_code4, atrac3p_sf_huff_code4, |
| 125 | atrac3p_sf_huff_code5, atrac3p_sf_huff_code6 | 125 | atrac3p_sf_huff_code5, atrac3p_sf_huff_code6 |
| 126 | }; | 126 | }; |
| 127 | static const uint8_t *sf_xlats[8] = { | 127 | static const uint8_t * const sf_xlats[8] = { |
| 128 | atrac3p_sf_huff_xlat1, atrac3p_sf_huff_xlat2, NULL, NULL, | 128 | atrac3p_sf_huff_xlat1, atrac3p_sf_huff_xlat2, NULL, NULL, |
| 129 | atrac3p_sf_huff_xlat4, atrac3p_sf_huff_xlat5, NULL, NULL | 129 | atrac3p_sf_huff_xlat4, atrac3p_sf_huff_xlat5, NULL, NULL |
| 130 | }; | 130 | }; |
| 131 | 131 | ||
| 132 | static const uint8_t *gain_cbs[11] = { | 132 | static const uint8_t * const gain_cbs[11] = { |
| 133 | atrac3p_huff_gain_npoints1_cb, atrac3p_huff_gain_npoints1_cb, | 133 | atrac3p_huff_gain_npoints1_cb, atrac3p_huff_gain_npoints1_cb, |
| 134 | atrac3p_huff_gain_lev1_cb, atrac3p_huff_gain_lev2_cb, | 134 | atrac3p_huff_gain_lev1_cb, atrac3p_huff_gain_lev2_cb, |
| 135 | atrac3p_huff_gain_lev3_cb, atrac3p_huff_gain_lev4_cb, | 135 | atrac3p_huff_gain_lev3_cb, atrac3p_huff_gain_lev4_cb, |
| @@ -137,7 +137,7 @@ av_cold void ff_atrac3p_init_vlcs(void) · 1 unmodified line | |||
| 137 | atrac3p_huff_gain_loc4_cb, atrac3p_huff_gain_loc2_cb, | 137 | atrac3p_huff_gain_loc4_cb, atrac3p_huff_gain_loc2_cb, |
| 138 | atrac3p_huff_gain_loc5_cb | 138 | atrac3p_huff_gain_loc5_cb |
| 139 | }; | 139 | }; |
| 140 | static const uint8_t *gain_xlats[11] = { | 140 | static const uint8_t * const gain_xlats[11] = { |
| 141 | NULL, atrac3p_huff_gain_npoints2_xlat, atrac3p_huff_gain_lev1_xlat, | 141 | NULL, atrac3p_huff_gain_npoints2_xlat, atrac3p_huff_gain_lev1_xlat, |
| 142 | atrac3p_huff_gain_lev2_xlat, atrac3p_huff_gain_lev3_xlat, | 142 | atrac3p_huff_gain_lev2_xlat, atrac3p_huff_gain_lev3_xlat, |
| 143 | atrac3p_huff_gain_lev4_xlat, atrac3p_huff_gain_loc3_xlat, | 143 | atrac3p_huff_gain_lev4_xlat, atrac3p_huff_gain_loc3_xlat, |
| @@ -145,13 +145,13 @@ av_cold void ff_atrac3p_init_vlcs(void) · 1 unmodified line | |||
| 145 | atrac3p_huff_gain_loc2_xlat, atrac3p_huff_gain_loc5_xlat | 145 | atrac3p_huff_gain_loc2_xlat, atrac3p_huff_gain_loc5_xlat |
| 146 | }; | 146 | }; |
| 147 | 147 | ||
| 148 | static const uint8_t *tone_cbs[7] = { | 148 | static const uint8_t * const tone_cbs[7] = { |
| 149 | atrac3p_huff_tonebands_cb, atrac3p_huff_numwavs1_cb, | 149 | atrac3p_huff_tonebands_cb, atrac3p_huff_numwavs1_cb, |
| 150 | atrac3p_huff_numwavs2_cb, atrac3p_huff_wav_ampsf1_cb, | 150 | atrac3p_huff_numwavs2_cb, atrac3p_huff_wav_ampsf1_cb, |
| 151 | atrac3p_huff_wav_ampsf2_cb, atrac3p_huff_wav_ampsf3_cb, | 151 | atrac3p_huff_wav_ampsf2_cb, atrac3p_huff_wav_ampsf3_cb, |
| 152 | atrac3p_huff_freq_cb | 152 | atrac3p_huff_freq_cb |
| 153 | }; | 153 | }; |
| 154 | static const uint8_t *tone_xlats[7] = { | 154 | static const uint8_t * const tone_xlats[7] = { |
| 155 | NULL, NULL, atrac3p_huff_numwavs2_xlat, atrac3p_huff_wav_ampsf1_xlat, | 155 | NULL, NULL, atrac3p_huff_numwavs2_xlat, atrac3p_huff_wav_ampsf1_xlat, |
| 156 | atrac3p_huff_wav_ampsf2_xlat, atrac3p_huff_wav_ampsf3_xlat, | 156 | atrac3p_huff_wav_ampsf2_xlat, atrac3p_huff_wav_ampsf3_xlat, |
| 157 | atrac3p_huff_freq_xlat | 157 | atrac3p_huff_freq_xlat |
| @@ -38,12 +38,12 @@ static const uint8_t bitstream_sfreq[] = { 1, 2, 3, 6, 7, 8, 11, 12, 13 }; · 37 unmodified lines | |||
| 38 | /* Auditory filter center frequencies and bandwidths, in Hz. | 38 | /* Auditory filter center frequencies and bandwidths, in Hz. |
| 39 | * The last two are made up, because there is no scientific data. | 39 | * The last two are made up, because there is no scientific data. |
| 40 | */ | 40 | */ |
| 41 | static uint16_t fc[] = { | 41 | static const uint16_t fc[] = { |
| 42 | 50, 150, 250, 350, 450, 570, 700, 840, 1000, 1170, 1370, 1600, 1850, 2150, | 42 | 50, 150, 250, 350, 450, 570, 700, 840, 1000, 1170, 1370, 1600, 1850, 2150, |
| 43 | 2500, 2900, 3400, 4000, 4800, 5800, 7000, 8500, 10500, 13500, 17000 | 43 | 2500, 2900, 3400, 4000, 4800, 5800, 7000, 8500, 10500, 13500, 17000 |
| 44 | }; | 44 | }; |
| 45 | 45 | ||
| 46 | static uint16_t erb[] = { | 46 | static const uint16_t erb[] = { |
| 47 | 80, 100, 100, 100, 110, 120, 140, 150, 160, 190, 210, 240, 280, | 47 | 80, 100, 100, 100, 110, 120, 140, 150, 160, 190, 210, 240, 280, |
| 48 | 320, 380, 450, 550, 700, 900, 1100, 1300, 1800, 2500, 3500, 4500 | 48 | 320, 380, 450, 550, 700, 900, 1100, 1300, 1800, 2500, 3500, 4500 |
| 49 | }; | 49 | }; |
| @@ -1451,7 +1451,7 @@ static const float * const evrc_lspq_quant_codebooks[] = { · 1450 unmodified lines | |||
| 1451 | evrc_lspq_quant_codebook1[0], evrc_lspq_quant_codebook2[0], | 1451 | evrc_lspq_quant_codebook1[0], evrc_lspq_quant_codebook2[0], |
| 1452 | }; | 1452 | }; |
| 1453 | 1453 | ||
| 1454 | static const float * const *evrc_lspq_codebooks[] = { | 1454 | static const float * const * const evrc_lspq_codebooks[] = { |
| 1455 | 0, | 1455 | 0, |
| 1456 | evrc_lspq_quant_codebooks, | 1456 | evrc_lspq_quant_codebooks, |
| 1457 | 0, | 1457 | 0, |
| @@ -77,7 +77,7 @@ static const int16_t low_inv_quant5[32] = { · 76 unmodified lines | |||
| 77 | 587, 473, 370, 276, 190, 110, 35, -35 | 77 | 587, 473, 370, 276, 190, 110, 35, -35 |
| 78 | }; | 78 | }; |
| 79 | 79 | ||
| 80 | static const int16_t *low_inv_quants[3] = { ff_g722_low_inv_quant6, | 80 | static const int16_t * const low_inv_quants[3] = { ff_g722_low_inv_quant6, |
| 81 | low_inv_quant5, | 81 | low_inv_quant5, |
| 82 | ff_g722_low_inv_quant4 }; | 82 | ff_g722_low_inv_quant4 }; |
| 83 | 83 | ||
| @@ -118,8 +118,8 @@ static uint8_t requant_tab[8][128]; · 117 unmodified lines | |||
| 118 | */ | 118 | */ |
| 119 | static av_cold void build_requant_tab(void) | 119 | static av_cold void build_requant_tab(void) |
| 120 | { | 120 | { |
| 121 | static int8_t offsets[8] = { 1, 1, 2, -3, -3, 3, 4, 4 }; | 121 | static const int8_t offsets[8] = { 1, 1, 2, -3, -3, 3, 4, 4 }; |
| 122 | static int8_t deltas [8] = { 0, 1, 0, 4, 4, 1, 0, 1 }; | 122 | static const int8_t deltas [8] = { 0, 1, 0, 4, 4, 1, 0, 1 }; |
| 123 | 123 | ||
| 124 | int i, j, step; | 124 | int i, j, step; |
| 125 | 125 | ||
| @@ -61,7 +61,7 @@ static const uint8_t ivi4_horizontal_scan_4x4[16] = { · 60 unmodified lines | |||
| 61 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 | 61 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 |
| 62 | }; | 62 | }; |
| 63 | 63 | ||
| 64 | static const uint8_t *scan_index_to_tab[15] = { | 64 | static const uint8_t * const scan_index_to_tab[15] = { |
| 65 | // for 8x8 transforms | 65 | // for 8x8 transforms |
| 66 | ff_zigzag_direct, | 66 | ff_zigzag_direct, |
| 67 | ivi4_alternate_scan_8x8, | 67 | ivi4_alternate_scan_8x8, |
| @@ -81,7 +81,7 @@ static const uint8_t run_value_bits_short[16] = { · 80 unmodified lines | |||
| 81 | 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9 | 81 | 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9 |
| 82 | }; | 82 | }; |
| 83 | 83 | ||
| 84 | static const uint8_t *run_value_bits[2] = { | 84 | static const uint8_t * const run_value_bits[2] = { |
| 85 | run_value_bits_long, run_value_bits_short | 85 | run_value_bits_long, run_value_bits_short |
| 86 | }; | 86 | }; |
| 87 | 87 | ||
| @@ -41,7 +41,7 @@ static av_cold int mov_text_encode_init(AVCodecContext *avctx) · 40 unmodified lines | |||
| 41 | * For now, we'll use a fixed default style. When we add styling | 41 | * For now, we'll use a fixed default style. When we add styling |
| 42 | * support, this will be generated from the ASS style. | 42 | * support, this will be generated from the ASS style. |
| 43 | */ | 43 | */ |
| 44 | static uint8_t text_sample_entry[] = { | 44 | static const uint8_t text_sample_entry[] = { |
| 45 | 0x00, 0x00, 0x00, 0x00, // uint32_t displayFlags | 45 | 0x00, 0x00, 0x00, 0x00, // uint32_t displayFlags |
| 46 | 0x01, // int8_t horizontal-justification | 46 | 0x01, // int8_t horizontal-justification |
| 47 | 0xFF, // int8_t vertical-justification | 47 | 0xFF, // int8_t vertical-justification |
| @@ -59,7 +59,7 @@ · 58 unmodified lines | |||
| 59 | #define WA (SQRT_2 * (-C3 - C5)) | 59 | #define WA (SQRT_2 * (-C3 - C5)) |
| 60 | #define WB (SQRT_2 * (C5 - C3)) | 60 | #define WB (SQRT_2 * (C5 - C3)) |
| 61 | 61 | ||
| 62 | static vector float fdctconsts[3] = { | 62 | static const vector float fdctconsts[3] = { |
| 63 | { W0, W1, W2, W3 }, | 63 | { W0, W1, W2, W3 }, |
| 64 | { W4, W5, W6, W7 }, | 64 | { W4, W5, W6, W7 }, |
| 65 | { W8, W9, WA, WB } | 65 | { W8, W9, WA, WB } |
| @@ -139,7 +139,7 @@ const float ff_pow_0_5[] = { · 138 unmodified lines | |||
| 139 | 1.0/(1 << 13), 1.0/(1 << 14), 1.0/(1 << 15), 1.0/(1 << 16) | 139 | 1.0/(1 << 13), 1.0/(1 << 14), 1.0/(1 << 15), 1.0/(1 << 16) |
| 140 | }; | 140 | }; |
| 141 | 141 | ||
| 142 | static void dequant(float *out, const int *idx, const float *cbs[]) | 142 | static void dequant(float *out, const int *idx, const float * const cbs[]) |
| 143 | { | 143 | { |
| 144 | int i; | 144 | int i; |
| 145 | int stride = 2; | 145 | int stride = 2; |
| @@ -206,7 +206,7 @@ static const float lsf_cb5[32][2] = { · 205 unmodified lines | |||
| 206 | { 0.150514, 0.034366}, { 0.186092, -0.069272} | 206 | { 0.150514, 0.034366}, { 0.186092, -0.069272} |
| 207 | }; | 207 | }; |
| 208 | 208 | ||
| 209 | static const float *lsf_codebooks[] = { | 209 | static const float * const lsf_codebooks[] = { |
| 210 | lsf_cb1[0], lsf_cb2[0], lsf_cb3[0], lsf_cb4[0], lsf_cb5[0] | 210 | lsf_cb1[0], lsf_cb2[0], lsf_cb3[0], lsf_cb4[0], lsf_cb5[0] |
| 211 | }; | 211 | }; |
| 212 | 212 | ||
| @@ -637,7 +637,7 @@ static const WavPackDecorrSpec very_high_specs[] = { · 636 unmodified lines | |||
| 637 | { 0, 1, { -1,18,18, 2,18, 3, 5,18, 2,18, 6, 8, 4, 5, 7,-1 } }, | 637 | { 0, 1, { -1,18,18, 2,18, 3, 5,18, 2,18, 6, 8, 4, 5, 7,-1 } }, |
| 638 | }; | 638 | }; |
| 639 | 639 | ||
| 640 | static const WavPackDecorrSpec *decorr_filters[] = { | 640 | static const WavPackDecorrSpec * const decorr_filters[] = { |
| 641 | &fast_specs[0], &default_specs[0], &high_specs[0], &very_high_specs[0], | 641 | &fast_specs[0], &default_specs[0], &high_specs[0], &very_high_specs[0], |
| 642 | }; | 642 | }; |
| 643 | 643 | ||
| @@ -44,12 +44,12 @@ extern char ff_mlp_iirorder_2; · 43 unmodified lines | |||
| 44 | extern char ff_mlp_iirorder_1; | 44 | extern char ff_mlp_iirorder_1; |
| 45 | extern char ff_mlp_iirorder_0; | 45 | extern char ff_mlp_iirorder_0; |
| 46 | 46 | ||
| 47 | static const void *firtable[9] = { &ff_mlp_firorder_0, &ff_mlp_firorder_1, | 47 | static const void * const firtable[9] = { &ff_mlp_firorder_0, &ff_mlp_firorder_1, |
| 48 | &ff_mlp_firorder_2, &ff_mlp_firorder_3, | 48 | &ff_mlp_firorder_2, &ff_mlp_firorder_3, |
| 49 | &ff_mlp_firorder_4, &ff_mlp_firorder_5, | 49 | &ff_mlp_firorder_4, &ff_mlp_firorder_5, |
| 50 | &ff_mlp_firorder_6, &ff_mlp_firorder_7, | 50 | &ff_mlp_firorder_6, &ff_mlp_firorder_7, |
| 51 | &ff_mlp_firorder_8 }; | 51 | &ff_mlp_firorder_8 }; |
| 52 | static const void *iirtable[5] = { &ff_mlp_iirorder_0, &ff_mlp_iirorder_1, | 52 | static const void * const iirtable[5] = { &ff_mlp_iirorder_0, &ff_mlp_iirorder_1, |
| 53 | &ff_mlp_iirorder_2, &ff_mlp_iirorder_3, | 53 | &ff_mlp_iirorder_2, &ff_mlp_iirorder_3, |
| 54 | &ff_mlp_iirorder_4 }; | 54 | &ff_mlp_iirorder_4 }; |
| 55 | 55 | ||
| @@ -61,7 +61,7 @@ extern emu_edge_vfix_func ff_emu_edge_vfix20_mmx; · 60 unmodified lines | |||
| 61 | extern emu_edge_vfix_func ff_emu_edge_vfix21_mmx; | 61 | extern emu_edge_vfix_func ff_emu_edge_vfix21_mmx; |
| 62 | extern emu_edge_vfix_func ff_emu_edge_vfix22_mmx; | 62 | extern emu_edge_vfix_func ff_emu_edge_vfix22_mmx; |
| 63 | #if ARCH_X86_32 | 63 | #if ARCH_X86_32 |
| 64 | static emu_edge_vfix_func *vfixtbl_mmx[22] = { | 64 | static emu_edge_vfix_func * const vfixtbl_mmx[22] = { |
| 65 | &ff_emu_edge_vfix1_mmx, &ff_emu_edge_vfix2_mmx, &ff_emu_edge_vfix3_mmx, | 65 | &ff_emu_edge_vfix1_mmx, &ff_emu_edge_vfix2_mmx, &ff_emu_edge_vfix3_mmx, |
| 66 | &ff_emu_edge_vfix4_mmx, &ff_emu_edge_vfix5_mmx, &ff_emu_edge_vfix6_mmx, | 66 | &ff_emu_edge_vfix4_mmx, &ff_emu_edge_vfix5_mmx, &ff_emu_edge_vfix6_mmx, |
| 67 | &ff_emu_edge_vfix7_mmx, &ff_emu_edge_vfix8_mmx, &ff_emu_edge_vfix9_mmx, | 67 | &ff_emu_edge_vfix7_mmx, &ff_emu_edge_vfix8_mmx, &ff_emu_edge_vfix9_mmx, |
| @@ -80,7 +80,7 @@ extern emu_edge_vfix_func ff_emu_edge_vfix19_sse; · 12 unmodified lines | |||
| 80 | extern emu_edge_vfix_func ff_emu_edge_vfix20_sse; | 80 | extern emu_edge_vfix_func ff_emu_edge_vfix20_sse; |
| 81 | extern emu_edge_vfix_func ff_emu_edge_vfix21_sse; | 81 | extern emu_edge_vfix_func ff_emu_edge_vfix21_sse; |
| 82 | extern emu_edge_vfix_func ff_emu_edge_vfix22_sse; | 82 | extern emu_edge_vfix_func ff_emu_edge_vfix22_sse; |
| 83 | static emu_edge_vfix_func *vfixtbl_sse[22] = { | 83 | static emu_edge_vfix_func * const vfixtbl_sse[22] = { |
| 84 | ff_emu_edge_vfix1_mmx, ff_emu_edge_vfix2_mmx, ff_emu_edge_vfix3_mmx, | 84 | ff_emu_edge_vfix1_mmx, ff_emu_edge_vfix2_mmx, ff_emu_edge_vfix3_mmx, |
| 85 | ff_emu_edge_vfix4_mmx, ff_emu_edge_vfix5_mmx, ff_emu_edge_vfix6_mmx, | 85 | ff_emu_edge_vfix4_mmx, ff_emu_edge_vfix5_mmx, ff_emu_edge_vfix6_mmx, |
| 86 | ff_emu_edge_vfix7_mmx, ff_emu_edge_vfix8_mmx, ff_emu_edge_vfix9_mmx, | 86 | ff_emu_edge_vfix7_mmx, ff_emu_edge_vfix8_mmx, ff_emu_edge_vfix9_mmx, |
| @@ -109,7 +109,7 @@ extern emu_edge_hfix_func ff_emu_edge_hfix18_mmx; · 22 unmodified lines | |||
| 109 | extern emu_edge_hfix_func ff_emu_edge_hfix20_mmx; | 109 | extern emu_edge_hfix_func ff_emu_edge_hfix20_mmx; |
| 110 | extern emu_edge_hfix_func ff_emu_edge_hfix22_mmx; | 110 | extern emu_edge_hfix_func ff_emu_edge_hfix22_mmx; |
| 111 | #if ARCH_X86_32 | 111 | #if ARCH_X86_32 |
| 112 | static emu_edge_hfix_func *hfixtbl_mmx[11] = { | 112 | static emu_edge_hfix_func * const hfixtbl_mmx[11] = { |
| 113 | ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx, | 113 | ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx, |
| 114 | ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx, | 114 | ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx, |
| 115 | ff_emu_edge_hfix14_mmx, ff_emu_edge_hfix16_mmx, ff_emu_edge_hfix18_mmx, | 115 | ff_emu_edge_hfix14_mmx, ff_emu_edge_hfix16_mmx, ff_emu_edge_hfix18_mmx, |
| @@ -121,7 +121,7 @@ extern emu_edge_hfix_func ff_emu_edge_hfix16_sse2; · 5 unmodified lines | |||
| 121 | extern emu_edge_hfix_func ff_emu_edge_hfix18_sse2; | 121 | extern emu_edge_hfix_func ff_emu_edge_hfix18_sse2; |
| 122 | extern emu_edge_hfix_func ff_emu_edge_hfix20_sse2; | 122 | extern emu_edge_hfix_func ff_emu_edge_hfix20_sse2; |
| 123 | extern emu_edge_hfix_func ff_emu_edge_hfix22_sse2; | 123 | extern emu_edge_hfix_func ff_emu_edge_hfix22_sse2; |
| 124 | static emu_edge_hfix_func *hfixtbl_sse2[11] = { | 124 | static emu_edge_hfix_func * const hfixtbl_sse2[11] = { |
| 125 | ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx, | 125 | ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx, |
| 126 | ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx, | 126 | ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx, |
| 127 | ff_emu_edge_hfix14_mmx, ff_emu_edge_hfix16_sse2, ff_emu_edge_hfix18_sse2, | 127 | ff_emu_edge_hfix14_mmx, ff_emu_edge_hfix16_sse2, ff_emu_edge_hfix18_sse2, |
| @@ -80,7 +80,7 @@ typedef struct VideoData { · 79 unmodified lines | |||
| 80 | #define VIDEO_FORMAT NTSC | 80 | #define VIDEO_FORMAT NTSC |
| 81 | #endif | 81 | #endif |
| 82 | 82 | ||
| 83 | static int bktr_dev[] = { METEOR_DEV0, METEOR_DEV1, METEOR_DEV2, | 83 | static const int bktr_dev[] = { METEOR_DEV0, METEOR_DEV1, METEOR_DEV2, |
| 84 | METEOR_DEV3, METEOR_DEV_SVIDEO }; | 84 | METEOR_DEV3, METEOR_DEV_SVIDEO }; |
| 85 | 85 | ||
| 86 | uint8_t *video_buf; | 86 | uint8_t *video_buf; |
| @@ -164,7 +164,7 @@ typedef struct OpenGLVertexInfo · 163 unmodified lines | |||
| 164 | } OpenGLVertexInfo; | 164 | } OpenGLVertexInfo; |
| 165 | 165 | ||
| 166 | /* defines 2 triangles to display */ | 166 | /* defines 2 triangles to display */ |
| 167 | static GLushort g_index[6] = | 167 | static const GLushort g_index[6] = |
| 168 | { | 168 | { |
| 169 | 0, 1, 2, | 169 | 0, 1, 2, |
| 170 | 0, 3, 2, | 170 | 0, 3, 2, |
| @@ -38,7 +38,7 @@ · 37 unmodified lines | |||
| 38 | #include "internal.h" | 38 | #include "internal.h" |
| 39 | #include "af_volume.h" | 39 | #include "af_volume.h" |
| 40 | 40 | ||
| 41 | static const char *precision_str[] = { | 41 | static const char * const precision_str[] = { |
| 42 | "fixed", "float", "double" | 42 | "fixed", "float", "double" |
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| @@ -72,7 +72,7 @@ static av_cold int init(AVFilterContext *ctx) · 71 unmodified lines | |||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | enum perm { RO, RW }; | 74 | enum perm { RO, RW }; |
| 75 | static const char *perm_str[2] = { "RO", "RW" }; | 75 | static const char * const perm_str[2] = { "RO", "RW" }; |
| 76 | 76 | ||
| 77 | static int filter_frame(AVFilterLink *inlink, AVFrame *frame) | 77 | static int filter_frame(AVFilterLink *inlink, AVFrame *frame) |
| 78 | { | 78 | { |
| @@ -158,7 +158,7 @@ static void calc_coefficients(AVFilterContext *ctx) · 157 unmodified lines | |||
| 158 | } | 158 | } |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | static const char *color_modes[] = {"bt709", "fcc", "bt601", "smpte240m"}; | 161 | static const char * const color_modes[] = {"bt709", "fcc", "bt601", "smpte240m"}; |
| 162 | 162 | ||
| 163 | static av_cold int init(AVFilterContext *ctx) | 163 | static av_cold int init(AVFilterContext *ctx) |
| 164 | { | 164 | { |
| @@ -272,7 +272,7 @@ struct ft_error · 271 unmodified lines | |||
| 272 | { | 272 | { |
| 273 | int err; | 273 | int err; |
| 274 | const char *err_msg; | 274 | const char *err_msg; |
| 275 | } static ft_errors[] = | 275 | } static const ft_errors[] = |
| 276 | #include FT_ERRORS_H | 276 | #include FT_ERRORS_H |
| 277 | 277 | ||
| 278 | #define FT_ERRMSG(e) ft_errors[e].err_msg | 278 | #define FT_ERRMSG(e) ft_errors[e].err_msg |
| @@ -76,7 +76,7 @@ enum EOFAction { · 75 unmodified lines | |||
| 76 | EOF_ACTION_PASS | 76 | EOF_ACTION_PASS |
| 77 | }; | 77 | }; |
| 78 | 78 | ||
| 79 | static const char *eof_action_str[] = { | 79 | static const char * const eof_action_str[] = { |
| 80 | "repeat", "endall", "pass" | 80 | "repeat", "endall", "pass" |
| 81 | }; | 81 | }; |
| 82 | 82 | ||
| @@ -38,7 +38,7 @@ · 37 unmodified lines | |||
| 38 | 38 | ||
| 39 | #include <float.h> | 39 | #include <float.h> |
| 40 | 40 | ||
| 41 | static const char *var_names[] = { | 41 | static const char * const var_names[] = { |
| 42 | "in_w" , "iw", ///< width of the input video | 42 | "in_w" , "iw", ///< width of the input video |
| 43 | "in_h" , "ih", ///< height of the input video | 43 | "in_h" , "ih", ///< height of the input video |
| 44 | "out_w", "ow", ///< width of the input video | 44 | "out_w", "ow", ///< width of the input video |
| @@ -130,7 +130,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 85 unmodified lines | |||
| 130 | 130 | ||
| 131 | static int query_formats(AVFilterContext *ctx) | 131 | static int query_formats(AVFilterContext *ctx) |
| 132 | { | 132 | { |
| 133 | static enum PixelFormat pix_fmts[] = { | 133 | static const enum PixelFormat pix_fmts[] = { |
| 134 | AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, | 134 | AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, |
| 135 | AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, | 135 | AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, |
| 136 | AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA, | 136 | AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA, |
| @@ -254,7 +254,7 @@ static const AVOption subtitles_options[] = { · 253 unmodified lines | |||
| 254 | {NULL}, | 254 | {NULL}, |
| 255 | }; | 255 | }; |
| 256 | 256 | ||
| 257 | static const char *font_mimetypes[] = { | 257 | static const char * const font_mimetypes[] = { |
| 258 | "application/x-truetype-font", | 258 | "application/x-truetype-font", |
| 259 | "application/vnd.ms-opentype", | 259 | "application/vnd.ms-opentype", |
| 260 | "application/x-font-ttf", | 260 | "application/x-font-ttf", |
| @@ -60,7 +60,7 @@ typedef struct ModPlugContext { · 59 unmodified lines | |||
| 60 | AVExpr *expr; ///< parsed color eval expression | 60 | AVExpr *expr; ///< parsed color eval expression |
| 61 | } ModPlugContext; | 61 | } ModPlugContext; |
| 62 | 62 | ||
| 63 | static const char *var_names[] = { | 63 | static const char * const var_names[] = { |
| 64 | "x", "y", | 64 | "x", "y", |
| 65 | "w", "h", | 65 | "w", "h", |
| 66 | "t", | 66 | "t", |
| @@ -344,7 +344,7 @@ static const struct MovChannelLayoutMap mov_ch_layout_map_9ch[] = { · 343 unmodified lines | |||
| 344 | { 0, 0 }, | 344 | { 0, 0 }, |
| 345 | }; | 345 | }; |
| 346 | 346 | ||
| 347 | static const struct MovChannelLayoutMap *mov_ch_layout_map[] = { | 347 | static const struct MovChannelLayoutMap * const mov_ch_layout_map[] = { |
| 348 | mov_ch_layout_map_misc, | 348 | mov_ch_layout_map_misc, |
| 349 | mov_ch_layout_map_1ch, | 349 | mov_ch_layout_map_1ch, |
| 350 | mov_ch_layout_map_2ch, | 350 | mov_ch_layout_map_2ch, |
| @@ -74,7 +74,7 @@ RTSP_STATUS_VERSION =505, · 73 unmodified lines | |||
| 74 | RTSP_STATUS_UNSUPPORTED_OPTION =551, | 74 | RTSP_STATUS_UNSUPPORTED_OPTION =551, |
| 75 | }; | 75 | }; |
| 76 | 76 | ||
| 77 | static const av_unused char *rtsp_status_strings[] = { | 77 | static const av_unused char * const rtsp_status_strings[] = { |
| 78 | [RTSP_STATUS_CONTINUE] ="Continue", | 78 | [RTSP_STATUS_CONTINUE] ="Continue", |
| 79 | [RTSP_STATUS_OK] ="OK", | 79 | [RTSP_STATUS_OK] ="OK", |
| 80 | [RTSP_STATUS_CREATED] ="Created", | 80 | [RTSP_STATUS_CREATED] ="Created", |
| @@ -28,7 +28,7 @@ · 27 unmodified lines | |||
| 28 | #include "audio_data.h" | 28 | #include "audio_data.h" |
| 29 | #include "audio_mix.h" | 29 | #include "audio_mix.h" |
| 30 | 30 | ||
| 31 | static const char *coeff_type_names[] = { "q8", "q15", "flt" }; | 31 | static const char * const coeff_type_names[] = { "q8", "q15", "flt" }; |
| 32 | 32 | ||
| 33 | struct AudioMix { | 33 | struct AudioMix { |
| 34 | AVAudioResampleContext *avr; | 34 | AVAudioResampleContext *avr; |
| @@ -72,7 +72,7 @@ int8_t *av_frame_get_qp_table(AVFrame *f, int *stride, int *type) · 71 unmodified lines | |||
| 72 | 72 | ||
| 73 | const char *av_get_colorspace_name(enum AVColorSpace val) | 73 | const char *av_get_colorspace_name(enum AVColorSpace val) |
| 74 | { | 74 | { |
| 75 | static const char *name[] = { | 75 | static const char * const name[] = { |
| 76 | [AVCOL_SPC_RGB] = "GBR", | 76 | [AVCOL_SPC_RGB] = "GBR", |
| 77 | [AVCOL_SPC_BT709] = "bt709", | 77 | [AVCOL_SPC_BT709] = "bt709", |
| 78 | [AVCOL_SPC_FCC] = "fcc", | 78 | [AVCOL_SPC_FCC] = "fcc", |
| @@ -154,7 +154,7 @@ static const struct PPFilter filters[]= · 153 unmodified lines | |||
| 154 | {NULL, NULL,0,0,0,0} //End Marker | 154 | {NULL, NULL,0,0,0,0} //End Marker |
| 155 | }; | 155 | }; |
| 156 | 156 | ||
| 157 | static const char *replaceTable[]= | 157 | static const char * const replaceTable[]= |
| 158 | { | 158 | { |
| 159 | "default", "hb:a,vb:a,dr:a", | 159 | "default", "hb:a,vb:a,dr:a", |
| 160 | "de", "hb:a,vb:a,dr:a", | 160 | "de", "hb:a,vb:a,dr:a", |