Lines Matching refs:channels
277 static void format_input_(FLAC__byte *buf, const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample)
285 if(channels == 2 && bytes_per_sample == 2) {
291 else if(channels == 1 && bytes_per_sample == 2) {
299 if(channels == 2) {
309 else if(channels == 1) {
318 for(channel = 0; channel < channels; channel++) {
327 if(channels == 2) {
339 else if(channels == 1) {
349 for(channel = 0; channel < channels; channel++) {
359 if(channels == 2) {
367 else if(channels == 1) {
375 for(channel = 0; channel < channels; channel++) {
384 for(channel = 0; channel < channels; channel++) {
398 FLAC__bool FLAC__MD5Accumulate(FLAC__MD5Context *ctx, const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample)
400 const size_t bytes_needed = (size_t)channels * (size_t)samples * (size_t)bytes_per_sample;
403 if((size_t)channels > SIZE_MAX / (size_t)bytes_per_sample)
405 if((size_t)channels * (size_t)bytes_per_sample > SIZE_MAX / (size_t)samples)
419 format_input_(ctx->internal_buf, signal, channels, samples, bytes_per_sample);