Lines Matching refs:bitwidth
48 { int bitwidth, frames ; member
173 if (psds->bitwidth < 8 || psds->bitwidth > 28) in sds_init()
176 if (psds->bitwidth < 14) in sds_init()
181 else if (psds->bitwidth < 21) in sds_init()
214 { unsigned char channel, bitwidth, loop_type, byte ; in sds_read_header() local
232 bytesread += psf_binheader_readf (psf, "e13", &bitwidth, &samp_period) ; in sds_read_header()
236 psds->bitwidth = bitwidth ; in sds_read_header()
238 if (psds->bitwidth > 1) in sds_read_header()
239 psf_log_printf (psf, " Bit Width : %d\n", psds->bitwidth) ; in sds_read_header()
241 { psf_log_printf (psf, " Bit Width : %d (should be > 1)\n", psds->bitwidth) ; in sds_read_header()
296 psds->samplesperblock = SDS_AUDIO_BYTES_PER_BLOCK / ((psds->bitwidth + 6) / 7) ; in sds_read_header()
309 switch ((psds->bitwidth + 7) / 8) in sds_read_header()
327 psf_log_printf (psf, "*** Weird byte width (%d)\n", (psds->bitwidth + 7) / 8) ; in sds_read_header()
379 psds->bitwidth = 8 ; in sds_write_header()
382 psds->bitwidth = 16 ; in sds_write_header()
385 psds->bitwidth = 24 ; in sds_write_header()
393 psf_binheader_writef (psf, "e213", BHW2 (0), BHW1 (psds->bitwidth), BHW3 (samp_period)) ; in sds_write_header()
609 normfact = 1.0 / (1 << psds->bitwidth) ; in sds_read_f()
641 normfact = 1.0 / (1 << psds->bitwidth) ; in sds_read_d()
954 normfact = 1.0 * (1 << psds->bitwidth) ; in sds_write_f()
987 normfact = 1.0 * (1 << psds->bitwidth) ; in sds_write_d()