comparison src/wma/libffwma/dsputil.h @ 957:f3ccef1dcd61 trunk

[svn] Hammer the WMA plugin into shape enough to bolt the following upstream commit on: "WMA decoder improvement, output closer to the dmo binary. Patch by Ian Braithwaite ian braithwaite dot dk".
author chainsaw
date Sat, 14 Apr 2007 17:38:32 -0700
parents aa044d71838f
children
comparison
equal deleted inserted replaced
956:88ba14f18587 957:f3ccef1dcd61
58 58
59 /* temporary */ 59 /* temporary */
60 extern uint32_t squareTbl[512]; 60 extern uint32_t squareTbl[512];
61 extern uint8_t cropTbl[256 + 2 * MAX_NEG_CROP]; 61 extern uint8_t cropTbl[256 + 2 * MAX_NEG_CROP];
62 62
63 63 #ifdef __GNUC__
64 /* minimum alignment rules ;) 64 #define DECLARE_ALIGNED_8(t,v) t v __attribute__ ((aligned (8)))
65 if u notice errors in the align stuff, need more alignment for some asm code for some cpu 65 #define DECLARE_ALIGNED_16(t,v) t v __attribute__ ((aligned (16)))
66 or need to use a function with less aligned data then send a mail to the ffmpeg-dev list, ... 66 #else
67 67 #define DECLARE_ALIGNED_8(t,v) __declspec(align(8)) t v
68 !warning these alignments might not match reallity, (missing attribute((align)) stuff somewhere possible) 68 #define DECLARE_ALIGNED_16(t,v) __declspec(align(16)) t v
69 i (michael) didnt check them, these are just the alignents which i think could be reached easily ... 69 #endif
70
71 !future video codecs might need functions with less strict alignment
72 */
73 70
74 /* 71 /*
75 void get_pixels_c(DCTELEM *block, const uint8_t *pixels, int line_size); 72 void get_pixels_c(DCTELEM *block, const uint8_t *pixels, int line_size);
76 void diff_pixels_c(DCTELEM *block, const uint8_t *s1, const uint8_t *s2, int stride); 73 void diff_pixels_c(DCTELEM *block, const uint8_t *s1, const uint8_t *s2, int stride);
77 void put_pixels_clamped_c(const DCTELEM *block, uint8_t *pixels, int line_size); 74 void put_pixels_clamped_c(const DCTELEM *block, uint8_t *pixels, int line_size);