• Home
  • Raw
  • Download

Lines Matching refs:source_bps

58 static FLAC__int32 linear_dither(uint32_t source_bps, uint32_t target_bps, FLAC__int32 sample, dith…  in linear_dither()  argument
63 FLAC__ASSERT(source_bps < 32); in linear_dither()
65 FLAC__ASSERT(target_bps <= source_bps); in linear_dither()
74 output = sample + (1L << (source_bps - target_bps - 1)); in linear_dither()
76 scalebits = source_bps - target_bps; in linear_dither()
109 …32 * const input[], uint32_t wide_samples, uint32_t channels, uint32_t source_bps, uint32_t target… in FLAC__plugin_common__pack_pcm_signed_big_endian() argument
120 FLAC__ASSERT(source_bps < 32); in FLAC__plugin_common__pack_pcm_signed_big_endian()
122 FLAC__ASSERT(target_bps <= source_bps); in FLAC__plugin_common__pack_pcm_signed_big_endian()
123 FLAC__ASSERT((source_bps & 7) == 0); in FLAC__plugin_common__pack_pcm_signed_big_endian()
126 if(source_bps != target_bps) { in FLAC__plugin_common__pack_pcm_signed_big_endian()
127 const FLAC__int32 MIN = -(1L << (source_bps - 1)); in FLAC__plugin_common__pack_pcm_signed_big_endian()
137 sample = linear_dither(source_bps, target_bps, *input_++, &dither[channel], MIN, MAX); in FLAC__plugin_common__pack_pcm_signed_big_endian()
190 …32 * const input[], uint32_t wide_samples, uint32_t channels, uint32_t source_bps, uint32_t target… in FLAC__plugin_common__pack_pcm_signed_little_endian() argument
201 FLAC__ASSERT(source_bps < 32); in FLAC__plugin_common__pack_pcm_signed_little_endian()
203 FLAC__ASSERT(target_bps <= source_bps); in FLAC__plugin_common__pack_pcm_signed_little_endian()
204 FLAC__ASSERT((source_bps & 7) == 0); in FLAC__plugin_common__pack_pcm_signed_little_endian()
207 if(source_bps != target_bps) { in FLAC__plugin_common__pack_pcm_signed_little_endian()
208 const FLAC__int32 MIN = -(1L << (source_bps - 1)); in FLAC__plugin_common__pack_pcm_signed_little_endian()
218 sample = linear_dither(source_bps, target_bps, *input_++, &dither[channel], MIN, MAX); in FLAC__plugin_common__pack_pcm_signed_little_endian()