Commit e4643701 authored by Thibault Saunier's avatar Thibault Saunier

codecparsers: Declare private arrays as static all around

parent fd593d6c
...@@ -94,31 +94,31 @@ GST_DEBUG_CATEGORY (h264_parser_debug); ...@@ -94,31 +94,31 @@ GST_DEBUG_CATEGORY (h264_parser_debug);
#define GST_CAT_DEFAULT h264_parser_debug #define GST_CAT_DEFAULT h264_parser_debug
/**** Default scaling_lists according to Table 7-2 *****/ /**** Default scaling_lists according to Table 7-2 *****/
const guint8 default_4x4_intra[16] = { static const guint8 default_4x4_intra[16] = {
6, 13, 13, 20, 20, 20, 28, 28, 28, 28, 32, 32, 6, 13, 13, 20, 20, 20, 28, 28, 28, 28, 32, 32,
32, 37, 37, 42 32, 37, 37, 42
}; };
const guint8 default_4x4_inter[16] = { static const guint8 default_4x4_inter[16] = {
10, 14, 14, 20, 20, 20, 24, 24, 24, 24, 27, 27, 10, 14, 14, 20, 20, 20, 24, 24, 24, 24, 27, 27,
27, 30, 30, 34 27, 30, 30, 34
}; };
const guint8 default_8x8_intra[64] = { static const guint8 default_8x8_intra[64] = {
6, 10, 10, 13, 11, 13, 16, 16, 16, 16, 18, 18, 6, 10, 10, 13, 11, 13, 16, 16, 16, 16, 18, 18,
18, 18, 18, 23, 23, 23, 23, 23, 23, 25, 25, 25, 25, 25, 25, 25, 27, 27, 27, 18, 18, 18, 23, 23, 23, 23, 23, 23, 25, 25, 25, 25, 25, 25, 25, 27, 27, 27,
27, 27, 27, 27, 27, 29, 29, 29, 29, 29, 29, 29, 31, 31, 31, 31, 31, 31, 33, 27, 27, 27, 27, 27, 29, 29, 29, 29, 29, 29, 29, 31, 31, 31, 31, 31, 31, 33,
33, 33, 33, 33, 36, 36, 36, 36, 38, 38, 38, 40, 40, 42 33, 33, 33, 33, 36, 36, 36, 36, 38, 38, 38, 40, 40, 42
}; };
const guint8 default_8x8_inter[64] = { static const guint8 default_8x8_inter[64] = {
9, 13, 13, 15, 13, 15, 17, 17, 17, 17, 19, 19, 9, 13, 13, 15, 13, 15, 17, 17, 17, 17, 19, 19,
19, 19, 19, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 24, 24, 24, 19, 19, 19, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 24, 24, 24,
24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 27, 27, 27, 27, 27, 27, 28, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 27, 27, 27, 27, 27, 27, 28,
28, 28, 28, 28, 30, 30, 30, 30, 32, 32, 32, 33, 33, 35 28, 28, 28, 28, 30, 30, 30, 30, 32, 32, 32, 33, 33, 35
}; };
const guint8 zigzag_8x8[64] = { static const guint8 zigzag_8x8[64] = {
0, 1, 8, 16, 9, 2, 3, 10, 0, 1, 8, 16, 9, 2, 3, 10,
17, 24, 32, 25, 18, 11, 4, 5, 17, 24, 32, 25, 18, 11, 4, 5,
12, 19, 26, 33, 40, 48, 41, 34, 12, 19, 26, 33, 40, 48, 41, 34,
...@@ -129,7 +129,7 @@ const guint8 zigzag_8x8[64] = { ...@@ -129,7 +129,7 @@ const guint8 zigzag_8x8[64] = {
53, 60, 61, 54, 47, 55, 62, 63 53, 60, 61, 54, 47, 55, 62, 63
}; };
const guint8 zigzag_4x4[16] = { static const guint8 zigzag_4x4[16] = {
0, 1, 4, 8, 0, 1, 4, 8,
5, 2, 3, 6, 5, 2, 3, 6,
9, 12, 13, 10, 9, 12, 13, 10,
......
...@@ -88,7 +88,7 @@ ensure_debug_category (void) ...@@ -88,7 +88,7 @@ ensure_debug_category (void)
goto failed; \ goto failed; \
} G_STMT_END } G_STMT_END
const guint8 default_intra_quant_mat[64] = { static const guint8 default_intra_quant_mat[64] = {
8, 17, 18, 19, 21, 23, 25, 27, 8, 17, 18, 19, 21, 23, 25, 27,
17, 18, 19, 21, 23, 25, 27, 28, 17, 18, 19, 21, 23, 25, 27, 28,
20, 21, 22, 23, 24, 26, 28, 30, 20, 21, 22, 23, 24, 26, 28, 30,
...@@ -99,7 +99,7 @@ const guint8 default_intra_quant_mat[64] = { ...@@ -99,7 +99,7 @@ const guint8 default_intra_quant_mat[64] = {
27, 28, 30, 32, 35, 38, 41, 45 27, 28, 30, 32, 35, 38, 41, 45
}; };
const guint8 default_non_intra_quant_mat[64] = { static const guint8 default_non_intra_quant_mat[64] = {
16, 17, 18, 19, 20, 21, 22, 23, 16, 17, 18, 19, 20, 21, 22, 23,
17, 18, 19, 20, 21, 22, 23, 24, 17, 18, 19, 20, 21, 22, 23, 24,
18, 19, 20, 21, 22, 23, 24, 25, 18, 19, 20, 21, 22, 23, 24, 25,
...@@ -110,7 +110,7 @@ const guint8 default_non_intra_quant_mat[64] = { ...@@ -110,7 +110,7 @@ const guint8 default_non_intra_quant_mat[64] = {
23, 24, 25, 27, 28, 30, 31, 33, 23, 24, 25, 27, 28, 30, 31, 33,
}; };
const guint8 mpeg4_zigzag_8x8[64] = { static const guint8 mpeg4_zigzag_8x8[64] = {
0, 1, 8, 16, 9, 2, 3, 10, 0, 1, 8, 16, 9, 2, 3, 10,
17, 24, 32, 25, 18, 11, 4, 5, 17, 24, 32, 25, 18, 11, 4, 5,
12, 19, 26, 33, 40, 48, 41, 34, 12, 19, 26, 33, 40, 48, 41, 34,
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#define MARKER_BIT 0x1 #define MARKER_BIT 0x1
/* default intra quant matrix, in zig-zag order */ /* default intra quant matrix, in zig-zag order */
const guint8 default_intra_quantizer_matrix[64] = { static const guint8 default_intra_quantizer_matrix[64] = {
8, 8,
16, 16, 16, 16,
19, 16, 19, 19, 16, 19,
...@@ -67,7 +67,7 @@ const guint8 default_intra_quantizer_matrix[64] = { ...@@ -67,7 +67,7 @@ const guint8 default_intra_quantizer_matrix[64] = {
83 83
}; };
const guint8 mpeg_zigzag_8x8[64] = { static const guint8 mpeg_zigzag_8x8[64] = {
0, 1, 8, 16, 9, 2, 3, 10, 0, 1, 8, 16, 9, 2, 3, 10,
17, 24, 32, 25, 18, 11, 4, 5, 17, 24, 32, 25, 18, 11, 4, 5,
12, 19, 26, 33, 40, 48, 41, 34, 12, 19, 26, 33, 40, 48, 41, 34,
......
...@@ -65,7 +65,7 @@ ensure_debug_category (void) ...@@ -65,7 +65,7 @@ ensure_debug_category (void)
#endif /* GST_DISABLE_GST_DEBUG */ #endif /* GST_DISABLE_GST_DEBUG */
const guint8 vc1_pquant_table[3][32] = { static const guint8 vc1_pquant_table[3][32] = {
{ /* Implicit quantizer */ { /* Implicit quantizer */
0, 1, 2, 3, 4, 5, 6, 7, 8, 6, 7, 8, 9, 10, 11, 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 29, 31}, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 29, 31},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment