diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-06-01 21:19:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-06-01 21:19:00 +0000 |
commit | c26ae41db21d6a7d5092b3cb51ce2e4866b076ae (patch) | |
tree | 8bc945d47b0053aa8255f4a3226c48cc1c194057 /libavcodec/i386 | |
parent | 435b0720a89b5aa1dd9e92f13336d5a35964a6e6 (diff) | |
download | ffmpeg-c26ae41db21d6a7d5092b3cb51ce2e4866b076ae.tar.gz |
adding a few const
Originally committed as revision 4337 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386')
-rw-r--r-- | libavcodec/i386/dsputil_mmx.c | 2 | ||||
-rw-r--r-- | libavcodec/i386/vp3dsp_mmx.c | 2 | ||||
-rw-r--r-- | libavcodec/i386/vp3dsp_sse2.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index 7b905f6448..e2c84ab403 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -299,7 +299,7 @@ void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size :"memory"); } -static unsigned char __align8 vector128[8] = +static const unsigned char __align8 vector128[8] = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 }; void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size) diff --git a/libavcodec/i386/vp3dsp_mmx.c b/libavcodec/i386/vp3dsp_mmx.c index ea0405717c..3d220c1d45 100644 --- a/libavcodec/i386/vp3dsp_mmx.c +++ b/libavcodec/i386/vp3dsp_mmx.c @@ -32,7 +32,7 @@ * idct_constants[44..47] = 8 */ static uint16_t idct_constants[(4 + 7 + 1) * 4]; -static uint16_t idct_cosine_table[7] = { +static const uint16_t idct_cosine_table[7] = { 64277, 60547, 54491, 46341, 36410, 25080, 12785 }; diff --git a/libavcodec/i386/vp3dsp_sse2.c b/libavcodec/i386/vp3dsp_sse2.c index 9c69ddb214..97937651a3 100644 --- a/libavcodec/i386/vp3dsp_sse2.c +++ b/libavcodec/i386/vp3dsp_sse2.c @@ -24,7 +24,7 @@ #include "../dsputil.h" #include "mmx.h" -static unsigned short __align16 SSE2_dequant_const[] = +static const unsigned short __align16 SSE2_dequant_const[] = { 0,65535,65535,0,0,0,0,0, // 0x0000 0000 0000 0000 0000 FFFF FFFF 0000 0,0,0,0,65535,65535,0,0, // 0x0000 0000 FFFF FFFF 0000 0000 0000 0000 @@ -35,7 +35,7 @@ static unsigned short __align16 SSE2_dequant_const[] = 0,0,65535,65535, 0,0,0,0 // 0x0000 0000 0000 0000 FFFF FFFF 0000 0000 }; -static unsigned int __align16 eight_data[] = +static const unsigned int __align16 eight_data[] = { 0x00080008, 0x00080008, @@ -43,7 +43,7 @@ static unsigned int __align16 eight_data[] = 0x00080008 }; -static unsigned short __align16 SSE2_idct_data[7 * 8] = +static const unsigned short __align16 SSE2_idct_data[7 * 8] = { 64277,64277,64277,64277,64277,64277,64277,64277, 60547,60547,60547,60547,60547,60547,60547,60547, |