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

Lines Matching refs:sample

307 		-1, /* 0 bits-per-sample (not supported) */
308 -1, /* 1 bits-per-sample (not supported) */
309 -1, /* 2 bits-per-sample (not supported) */
310 -1, /* 3 bits-per-sample (not supported) */
311 268435456, /* 4 bits-per-sample */
312 134217728, /* 5 bits-per-sample */
313 67108864, /* 6 bits-per-sample */
314 33554432, /* 7 bits-per-sample */
315 16777216, /* 8 bits-per-sample */
316 8388608, /* 9 bits-per-sample */
317 4194304, /* 10 bits-per-sample */
318 2097152, /* 11 bits-per-sample */
319 1048576, /* 12 bits-per-sample */
320 524288, /* 13 bits-per-sample */
321 262144, /* 14 bits-per-sample */
322 131072, /* 15 bits-per-sample */
323 65536, /* 16 bits-per-sample */
324 32768, /* 17 bits-per-sample */
325 16384, /* 18 bits-per-sample */
326 8192, /* 19 bits-per-sample */
327 4096, /* 20 bits-per-sample */
328 2048, /* 21 bits-per-sample */
329 1024, /* 22 bits-per-sample */
330 512, /* 23 bits-per-sample */
331 256, /* 24 bits-per-sample */
332 128, /* 25 bits-per-sample */
333 64, /* 26 bits-per-sample */
334 32, /* 27 bits-per-sample */
335 16, /* 28 bits-per-sample */
336 8, /* 29 bits-per-sample */
337 4, /* 30 bits-per-sample */
338 2, /* 31 bits-per-sample */
339 1 /* 32 bits-per-sample */
342 0, /* 0 bits-per-sample (not supported) */
343 0, /* 1 bits-per-sample (not supported) */
344 0, /* 2 bits-per-sample (not supported) */
345 0, /* 3 bits-per-sample (not supported) */
346 -8, /* 4 bits-per-sample */
347 -16, /* 5 bits-per-sample */
348 -32, /* 6 bits-per-sample */
349 -64, /* 7 bits-per-sample */
350 -128, /* 8 bits-per-sample */
351 -256, /* 9 bits-per-sample */
352 -512, /* 10 bits-per-sample */
353 -1024, /* 11 bits-per-sample */
354 -2048, /* 12 bits-per-sample */
355 -4096, /* 13 bits-per-sample */
356 -8192, /* 14 bits-per-sample */
357 -16384, /* 15 bits-per-sample */
358 -32768, /* 16 bits-per-sample */
359 -65536, /* 17 bits-per-sample */
360 -131072, /* 18 bits-per-sample */
361 -262144, /* 19 bits-per-sample */
362 -524288, /* 20 bits-per-sample */
363 -1048576, /* 21 bits-per-sample */
364 -2097152, /* 22 bits-per-sample */
365 -4194304, /* 23 bits-per-sample */
366 -8388608, /* 24 bits-per-sample */
367 -16777216, /* 25 bits-per-sample */
368 -33554432, /* 26 bits-per-sample */
369 -67108864, /* 27 bits-per-sample */
370 -134217728, /* 28 bits-per-sample */
371 -268435456, /* 29 bits-per-sample */
372 -536870912, /* 30 bits-per-sample */
373 -1073741824, /* 31 bits-per-sample */
374 (FLAC__int64)(-1073741824) * 2 /* 32 bits-per-sample */
381 * of doing two multiplies on each sample, we just multiple
389 double sample;
410 sample = (double)input_[i] * multi_scale;
414 if(sample < -0.5)
415 sample = tanh((sample + 0.5) / (1-0.5)) * (1-0.5) - 0.5;
416 else if(sample > 0.5)
417 sample = tanh((sample - 0.5) / (1-0.5)) * (1-0.5) + 0.5;
419 sample *= 2147483647.f;
421 val64 = dither_output_(dither_context, do_dithering, noise_shaping, (i + last_history_index) % 32, sample, channel) / conv_factor;