Make vp3 arrays static const where possible.
Originally committed as revision 19771 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8444059fb3
commit
bb99108775
@ -258,25 +258,25 @@ static int init_block_mapping(Vp3DecodeContext *s)
|
|||||||
int current_macroblock;
|
int current_macroblock;
|
||||||
int c_fragment;
|
int c_fragment;
|
||||||
|
|
||||||
signed char travel_width[16] = {
|
static const signed char travel_width[16] = {
|
||||||
1, 1, 0, -1,
|
1, 1, 0, -1,
|
||||||
0, 0, 1, 0,
|
0, 0, 1, 0,
|
||||||
1, 0, 1, 0,
|
1, 0, 1, 0,
|
||||||
0, -1, 0, 1
|
0, -1, 0, 1
|
||||||
};
|
};
|
||||||
|
|
||||||
signed char travel_height[16] = {
|
static const signed char travel_height[16] = {
|
||||||
0, 0, 1, 0,
|
0, 0, 1, 0,
|
||||||
1, 1, 0, -1,
|
1, 1, 0, -1,
|
||||||
0, 1, 0, -1,
|
0, 1, 0, -1,
|
||||||
-1, 0, -1, 0
|
-1, 0, -1, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
signed char travel_width_mb[4] = {
|
static const signed char travel_width_mb[4] = {
|
||||||
1, 0, 1, 0
|
1, 0, 1, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
signed char travel_height_mb[4] = {
|
static const signed char travel_height_mb[4] = {
|
||||||
0, 1, 0, -1
|
0, 1, 0, -1
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1200,7 +1200,7 @@ static void reverse_dc_prediction(Vp3DecodeContext *s,
|
|||||||
* 2: up-right multiplier
|
* 2: up-right multiplier
|
||||||
* 3: left multiplier
|
* 3: left multiplier
|
||||||
*/
|
*/
|
||||||
int predictor_transform[16][4] = {
|
static const int predictor_transform[16][4] = {
|
||||||
{ 0, 0, 0, 0},
|
{ 0, 0, 0, 0},
|
||||||
{ 0, 0, 0,128}, // PL
|
{ 0, 0, 0,128}, // PL
|
||||||
{ 0, 0,128, 0}, // PUR
|
{ 0, 0,128, 0}, // PUR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user