Lines Matching defs:channels
198 /* Number of channels, 1...255 */
199 uint8_t channels ;
220 /* Mapping of opus streams to output channels */
245 /* Size of the buffer storage, in sizeof (float) * channels */
425 psf_log_printf (psf, " Channels : %d\n", (int) h->channels) ;
442 for (i = 0 ; i < h->channels - 1 ; i++)
455 ** maximum of 276 (255 channels).
477 count += psf_binheader_readf (psf, "e12421", &h->channels, &h->preskip,
481 { if (h->channels > 2)
489 h->nb_coupled = h->channels - 1 ;
494 { if (opacket->bytes < 19 + 2 + h->channels)
497 if (h->channel_mapping == 1 && h->channels > 8)
507 for (i = 0 ; i < h->channels ; i++)
590 oopus->header.channels,
612 psf->sf.channels = oopus->header.channels ;
642 oopus->buffer = malloc (sizeof (float) * psf->sf.channels * oopus->buffersize) ;
671 if (psf->sf.channels <= 2)
674 nb_coupled = psf->sf.channels - 1 ;
680 psf->sf.channels,
688 { if (psf->sf.channels <= 8)
699 psf->sf.channels,
740 oopus->buffer = malloc (sizeof (float) * psf->sf.channels * oopus->len) ;
769 oopus->header.channels = psf->sf.channels ;
800 psf_binheader_writef (psf, "e112", BHW1 (oopus->header.version), BHW1 (psf->sf.channels), BHW2 (oopus->header.preskip)) ;
817 for (nn = 0 ; nn < oopus->header.channels ; nn++)
888 memset (&(oopus->buffer [oopus->loc * psf->sf.channels]), 0, sizeof (float) * psf->sf.channels * (oopus->len - oopus->loc)) ;
1018 oopus->buffer = malloc (sizeof (float) * oopus->buffersize * psf->sf.channels) ;
1074 oopus->buffer = malloc (sizeof (float) * oopus->buffersize * psf->sf.channels) ;
1163 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ;
1165 { iptr = oopus->buffer + oopus->loc * psf->sf.channels ;
1180 oopus->loc += (readlen / psf->sf.channels) ;
1200 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ;
1202 { iptr = oopus->buffer + oopus->loc * psf->sf.channels ;
1217 oopus->loc += (readlen / psf->sf.channels) ;
1236 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ;
1238 { memcpy (&(ptr [total]), &(oopus->buffer [oopus->loc * psf->sf.channels]), sizeof (float) * readlen) ;
1240 oopus->loc += (readlen / psf->sf.channels) ;
1260 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ;
1263 { fptr = oopus->buffer + oopus->loc * psf->sf.channels ;
1269 oopus->loc += readlen / psf->sf.channels ;
1293 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ;
1295 { optr = oopus->buffer + oopus->loc * psf->sf.channels ;
1301 oopus->loc += (writelen / psf->sf.channels) ;
1325 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ;
1327 { optr = oopus->buffer + oopus->loc * psf->sf.channels ;
1333 oopus->loc += (writelen / psf->sf.channels) ;
1356 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ;
1358 { memcpy (&(oopus->buffer [oopus->loc * psf->sf.channels]), &(ptr [total]), sizeof (float) * writelen) ;
1360 oopus->loc += (writelen / psf->sf.channels) ;
1384 writelen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ;
1386 { optr = oopus->buffer + oopus->loc * psf->sf.channels ;
1392 oopus->loc += (writelen / psf->sf.channels) ;
1732 oopus->u.encode.bitrate = (int) (((1.0 - quality) * (250000.0)) + 6000.0) * psf->sf.channels ;