Lines Matching refs:target_bps
58 static FLAC__int32 linear_dither(uint32_t source_bps, uint32_t target_bps, FLAC__int32 sample, dith… in linear_dither() argument
64 FLAC__ASSERT(target_bps <= 24); 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 … const input[], uint32_t wide_samples, uint32_t channels, uint32_t source_bps, uint32_t target_bps) in FLAC__plugin_common__pack_pcm_signed_big_endian() argument
116 const uint32_t bytes_per_sample = target_bps / 8; in FLAC__plugin_common__pack_pcm_signed_big_endian()
121 FLAC__ASSERT(target_bps <= 24); 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()
124 FLAC__ASSERT((target_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()
137 sample = linear_dither(source_bps, target_bps, *input_++, &dither[channel], MIN, MAX); in FLAC__plugin_common__pack_pcm_signed_big_endian()
139 switch(target_bps) { in FLAC__plugin_common__pack_pcm_signed_big_endian()
167 switch(target_bps) { in FLAC__plugin_common__pack_pcm_signed_big_endian()
187 return wide_samples * channels * (target_bps/8); in FLAC__plugin_common__pack_pcm_signed_big_endian()
190 … const input[], uint32_t wide_samples, uint32_t channels, uint32_t source_bps, uint32_t target_bps) in FLAC__plugin_common__pack_pcm_signed_little_endian() argument
197 const uint32_t bytes_per_sample = target_bps / 8; in FLAC__plugin_common__pack_pcm_signed_little_endian()
202 FLAC__ASSERT(target_bps <= 24); 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()
205 FLAC__ASSERT((target_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()
218 sample = linear_dither(source_bps, target_bps, *input_++, &dither[channel], MIN, MAX); in FLAC__plugin_common__pack_pcm_signed_little_endian()
220 switch(target_bps) { in FLAC__plugin_common__pack_pcm_signed_little_endian()
245 switch(target_bps) { in FLAC__plugin_common__pack_pcm_signed_little_endian()
262 return wide_samples * channels * (target_bps/8); in FLAC__plugin_common__pack_pcm_signed_little_endian()