提交 bb991087 编写于 作者: R Reimar Döffinger

Make vp3 arrays static const where possible.

Originally committed as revision 19771 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 8444059f
...@@ -258,25 +258,25 @@ static int init_block_mapping(Vp3DecodeContext *s) ...@@ -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, ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册