comparison i386/vp3dsp_sse2.c @ 7757:b04a9742669c libavcodec

Don't declare SSE vp3 idct data static, so it can be used in the mmx version
author conrad
date Sun, 31 Aug 2008 07:05:08 +0000
parents 4b08118db480
children dfbf377bd066
comparison
equal deleted inserted replaced
7756:2994fe74068f 7757:b04a9742669c
25 25
26 #include "libavcodec/dsputil.h" 26 #include "libavcodec/dsputil.h"
27 #include "dsputil_mmx.h" 27 #include "dsputil_mmx.h"
28 #include "mmx.h" 28 #include "mmx.h"
29 29
30 static DECLARE_ALIGNED_16(const unsigned short, SSE2_idct_data[7 * 8]) = 30 DECLARE_ALIGNED_16(const unsigned short, ff_vp3_idct_data[7 * 8]) =
31 { 31 {
32 64277,64277,64277,64277,64277,64277,64277,64277, 32 64277,64277,64277,64277,64277,64277,64277,64277,
33 60547,60547,60547,60547,60547,60547,60547,60547, 33 60547,60547,60547,60547,60547,60547,60547,60547,
34 54491,54491,54491,54491,54491,54491,54491,54491, 34 54491,54491,54491,54491,54491,54491,54491,54491,
35 46341,46341,46341,46341,46341,46341,46341,46341, 35 46341,46341,46341,46341,46341,46341,46341,46341,
455 455
456 void ff_vp3_idct_sse2(int16_t *input_data) 456 void ff_vp3_idct_sse2(int16_t *input_data)
457 { 457 {
458 unsigned char *input_bytes = (unsigned char *)input_data; 458 unsigned char *input_bytes = (unsigned char *)input_data;
459 unsigned char *output_data_bytes = (unsigned char *)input_data; 459 unsigned char *output_data_bytes = (unsigned char *)input_data;
460 const unsigned char *idct_data_bytes = (const unsigned char *)SSE2_idct_data; 460 const unsigned char *idct_data_bytes = (const unsigned char *)ff_vp3_idct_data;
461 const unsigned char *Eight = (const unsigned char *)&ff_pw_8; 461 const unsigned char *Eight = (const unsigned char *)&ff_pw_8;
462 462
463 #define eax input_bytes 463 #define eax input_bytes
464 #define edx idct_data_bytes 464 #define edx idct_data_bytes
465 465