• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/flac-1.2.1/src/plugin_common/

Lines Matching defs:target_bps

57 static FLaC__INLINE FLAC__int32 linear_dither(unsigned source_bps, unsigned target_bps, FLAC__int32 sample, dither_state *dither, const FLAC__int32 MIN, const FLAC__int32 MAX)
63 FLAC__ASSERT(target_bps <= 24);
64 FLAC__ASSERT(target_bps <= source_bps);
73 output = sample + (1L << (source_bps - target_bps - 1));
75 scalebits = source_bps - target_bps;
108 size_t FLAC__plugin_common__pack_pcm_signed_big_endian(FLAC__byte *data, const FLAC__int32 * const input[], unsigned wide_samples, unsigned channels, unsigned source_bps, unsigned target_bps)
115 const unsigned bytes_per_sample = target_bps / 8;
120 FLAC__ASSERT(target_bps <= 24);
121 FLAC__ASSERT(target_bps <= source_bps);
123 FLAC__ASSERT((target_bps & 7) == 0);
125 if(source_bps != target_bps) {
136 sample = linear_dither(source_bps, target_bps, *input_++, &dither[channel], MIN, MAX);
138 switch(target_bps) {
166 switch(target_bps) {
186 return wide_samples * channels * (target_bps/8);
189 size_t FLAC__plugin_common__pack_pcm_signed_little_endian(FLAC__byte *data, const FLAC__int32 * const input[], unsigned wide_samples, unsigned channels, unsigned source_bps, unsigned target_bps)
196 const unsigned bytes_per_sample = target_bps / 8;
201 FLAC__ASSERT(target_bps <= 24);
202 FLAC__ASSERT(target_bps <= source_bps);
204 FLAC__ASSERT((target_bps & 7) == 0);
206 if(source_bps != target_bps) {
217 sample = linear_dither(source_bps, target_bps, *input_++, &dither[channel], MIN, MAX);
219 switch(target_bps) {
244 switch(target_bps) {
261 return wide_samples * channels * (target_bps/8);