comparison audioconvert.c @ 5127:4dbe6578f811 libavcodec

misc spelling fixes
author diego
date Tue, 12 Jun 2007 09:29:25 +0000
parents c8c591fe26f8
children 2b72f9bc4f06
comparison
equal deleted inserted replaced
5126:7982b376b58a 5127:4dbe6578f811
52 do{\ 52 do{\
53 *(otype*)po = expr; pi += is; po += os;\ 53 *(otype*)po = expr; pi += is; po += os;\
54 }while(po < end);\ 54 }while(po < end);\
55 } 55 }
56 56
57 //FIXME put things below under ifdefs so we dont waste space for cases no codec will need 57 //FIXME put things below under ifdefs so we do not waste space for cases no codec will need
58 //FIXME rounding and cliping ? 58 //FIXME rounding and clipping ?
59 59
60 CONV(SAMPLE_FMT_U8 , uint8_t, SAMPLE_FMT_U8 , *(uint8_t*)pi) 60 CONV(SAMPLE_FMT_U8 , uint8_t, SAMPLE_FMT_U8 , *(uint8_t*)pi)
61 else CONV(SAMPLE_FMT_S16, int16_t, SAMPLE_FMT_U8 , (*(uint8_t*)pi - 0x80)<<8) 61 else CONV(SAMPLE_FMT_S16, int16_t, SAMPLE_FMT_U8 , (*(uint8_t*)pi - 0x80)<<8)
62 else CONV(SAMPLE_FMT_S32, int32_t, SAMPLE_FMT_U8 , (*(uint8_t*)pi - 0x80)<<24) 62 else CONV(SAMPLE_FMT_S32, int32_t, SAMPLE_FMT_U8 , (*(uint8_t*)pi - 0x80)<<24)
63 else CONV(SAMPLE_FMT_FLT, float , SAMPLE_FMT_U8 , (*(uint8_t*)pi - 0x80)*(1.0 / (1<<7))) 63 else CONV(SAMPLE_FMT_FLT, float , SAMPLE_FMT_U8 , (*(uint8_t*)pi - 0x80)*(1.0 / (1<<7)))