comparison dsputil.h @ 10961:34a65026fa06 libavcodec

Move array specifiers outside DECLARE_ALIGNED() invocations
author mru
date Fri, 22 Jan 2010 03:25:11 +0000
parents 0985f1f7ab72
children 7b3f6955462b
comparison
equal deleted inserted replaced
10960:10759fd39860 10961:34a65026fa06
176 const uint8_t *scantable; 176 const uint8_t *scantable;
177 uint8_t permutated[64]; 177 uint8_t permutated[64];
178 uint8_t raster_end[64]; 178 uint8_t raster_end[64];
179 #if ARCH_PPC 179 #if ARCH_PPC
180 /** Used by dct_quantize_altivec to find last-non-zero */ 180 /** Used by dct_quantize_altivec to find last-non-zero */
181 DECLARE_ALIGNED(16, uint8_t, inverse[64]); 181 DECLARE_ALIGNED(16, uint8_t, inverse)[64];
182 #endif 182 #endif
183 } ScanTable; 183 } ScanTable;
184 184
185 void ff_init_scantable(uint8_t *, ScanTable *st, const uint8_t *src_scantable); 185 void ff_init_scantable(uint8_t *, ScanTable *st, const uint8_t *src_scantable);
186 186
654 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx); 654 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx);
655 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx); 655 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx);
656 void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx); 656 void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx);
657 void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx); 657 void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx);
658 658
659 #define DECLARE_ALIGNED_16(t, v) DECLARE_ALIGNED(16, t, v) 659 #define DECLARE_ALIGNED_16(t, v, ...) DECLARE_ALIGNED(16, t, v)
660 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) 660 #define DECLARE_ALIGNED_8(t, v, ...) DECLARE_ALIGNED(8, t, v)
661 661
662 #if HAVE_MMX 662 #if HAVE_MMX
663 663
664 #undef emms_c 664 #undef emms_c
665 665
747 #define SINTABLE_CONST 747 #define SINTABLE_CONST
748 #define SINETABLE_CONST 748 #define SINETABLE_CONST
749 #endif 749 #endif
750 750
751 #define COSTABLE(size) \ 751 #define COSTABLE(size) \
752 COSTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_cos_##size[size/2]) 752 COSTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_cos_##size)[size/2]
753 #define SINTABLE(size) \ 753 #define SINTABLE(size) \
754 SINTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_sin_##size[size/2]) 754 SINTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_sin_##size)[size/2]
755 #define SINETABLE(size) \ 755 #define SINETABLE(size) \
756 SINETABLE_CONST DECLARE_ALIGNED_16(float, ff_sine_##size[size]) 756 SINETABLE_CONST DECLARE_ALIGNED_16(float, ff_sine_##size)[size]
757 extern COSTABLE(16); 757 extern COSTABLE(16);
758 extern COSTABLE(32); 758 extern COSTABLE(32);
759 extern COSTABLE(64); 759 extern COSTABLE(64);
760 extern COSTABLE(128); 760 extern COSTABLE(128);
761 extern COSTABLE(256); 761 extern COSTABLE(256);