Mercurial > mplayer.hg
comparison libaf/af_bs2b.c @ 29095:3afe8b737f43
Use native endian float filter provided by libbs2b instead of
selection based on WORDS_ENDIAN.
author | bircoph |
---|---|
date | Thu, 02 Apr 2009 20:49:47 +0000 |
parents | 9d220a44caae |
children | 239573db53a1 |
comparison
equal
deleted
inserted
replaced
29094:8a2fbe78b1f9 | 29095:3afe8b737f43 |
---|---|
43 (type*)(data->audio), data->len/data->bps/2); \ | 43 (type*)(data->audio), data->len/data->bps/2); \ |
44 \ | 44 \ |
45 return data; \ | 45 return data; \ |
46 } | 46 } |
47 | 47 |
48 PLAY(f,float) | |
48 PLAY(fbe,float) | 49 PLAY(fbe,float) |
49 PLAY(fle,float) | 50 PLAY(fle,float) |
50 PLAY(s32be,int32_t) | 51 PLAY(s32be,int32_t) |
51 PLAY(s32le,int32_t) | 52 PLAY(s32le,int32_t) |
52 PLAY(s24be,bs2b_int24_t) | 53 PLAY(s24be,bs2b_int24_t) |
130 break; | 131 break; |
131 case AF_FORMAT_U8: | 132 case AF_FORMAT_U8: |
132 af->play = play_u8; | 133 af->play = play_u8; |
133 break; | 134 break; |
134 default: | 135 default: |
135 #ifdef WORDS_BIGENDIAN | 136 af->play = play_f; |
136 af->play = play_fbe; | |
137 #else | |
138 af->play = play_fle; | |
139 #endif //WORDS_BIGENDIAN | |
140 af->data->format = AF_FORMAT_FLOAT_NE; | 137 af->data->format = AF_FORMAT_FLOAT_NE; |
141 af->data->bps=4; | 138 af->data->bps=4; |
142 break; | 139 break; |
143 } | 140 } |
144 | 141 |