Mercurial > libavcodec.hg
comparison dsputil.c @ 3536:545a15c19c91 libavcodec
sse & sse2 implementations of vorbis channel coupling.
9% faster vorbis (on a K8).
| author | lorenm |
|---|---|
| date | Thu, 03 Aug 2006 03:18:47 +0000 |
| parents | 7dc8e4a12105 |
| children | 945caa35ee9a |
comparison
equal
deleted
inserted
replaced
| 3535:a14c98a0ca3d | 3536:545a15c19c91 |
|---|---|
| 32 #include "faandct.h" | 32 #include "faandct.h" |
| 33 #include "snow.h" | 33 #include "snow.h" |
| 34 | 34 |
| 35 /* snow.c */ | 35 /* snow.c */ |
| 36 void ff_spatial_dwt(int *buffer, int width, int height, int stride, int type, int decomposition_count); | 36 void ff_spatial_dwt(int *buffer, int width, int height, int stride, int type, int decomposition_count); |
| 37 | |
| 38 /* vorbis.c */ | |
| 39 void vorbis_inverse_coupling(float *mag, float *ang, int blocksize); | |
| 37 | 40 |
| 38 uint8_t cropTbl[256 + 2 * MAX_NEG_CROP] = {0, }; | 41 uint8_t cropTbl[256 + 2 * MAX_NEG_CROP] = {0, }; |
| 39 uint32_t squareTbl[512] = {0, }; | 42 uint32_t squareTbl[512] = {0, }; |
| 40 | 43 |
| 41 const uint8_t ff_zigzag_direct[64] = { | 44 const uint8_t ff_zigzag_direct[64] = { |
| 4088 c->vertical_compose97i = ff_snow_vertical_compose97i; | 4091 c->vertical_compose97i = ff_snow_vertical_compose97i; |
| 4089 c->horizontal_compose97i = ff_snow_horizontal_compose97i; | 4092 c->horizontal_compose97i = ff_snow_horizontal_compose97i; |
| 4090 c->inner_add_yblock = ff_snow_inner_add_yblock; | 4093 c->inner_add_yblock = ff_snow_inner_add_yblock; |
| 4091 #endif | 4094 #endif |
| 4092 | 4095 |
| 4096 #ifdef CONFIG_VORBIS_DECODER | |
| 4097 c->vorbis_inverse_coupling = vorbis_inverse_coupling; | |
| 4098 #endif | |
| 4099 | |
| 4093 c->shrink[0]= ff_img_copy_plane; | 4100 c->shrink[0]= ff_img_copy_plane; |
| 4094 c->shrink[1]= ff_shrink22; | 4101 c->shrink[1]= ff_shrink22; |
| 4095 c->shrink[2]= ff_shrink44; | 4102 c->shrink[2]= ff_shrink44; |
| 4096 c->shrink[3]= ff_shrink88; | 4103 c->shrink[3]= ff_shrink88; |
| 4097 | 4104 |
