Lines Matching defs:base_channel
462 static int dca_parse_audio_coding_header(DCAContext *s, int base_channel)
469 s->total_channels = get_bits(&s->gb, 3) + 1 + base_channel;
476 for (i = base_channel; i < s->prim_channels; i++) {
481 for (i = base_channel; i < s->prim_channels; i++) {
486 get_array(&s->gb, s->joint_intensity + base_channel, s->prim_channels - base_channel, 3);
487 get_array(&s->gb, s->transient_huffman + base_channel, s->prim_channels - base_channel, 2);
488 get_array(&s->gb, s->scalefactor_huffman + base_channel, s->prim_channels - base_channel, 3);
489 get_array(&s->gb, s->bitalloc_huffman + base_channel, s->prim_channels - base_channel, 3);
492 if (!base_channel)
495 for (i = base_channel; i < s->prim_channels; i++)
500 for (i = base_channel; i < s->prim_channels; i++)
504 for (i = base_channel; i < s->prim_channels; i++)
519 for (i = base_channel; i < s->prim_channels; i++) {
660 static int dca_subframe_header(DCAContext *s, int base_channel, int block_index)
668 if (!base_channel) {
673 for (j = base_channel; j < s->prim_channels; j++) {
679 for (j = base_channel; j < s->prim_channels; j++) {
689 for (j = base_channel; j < s->prim_channels; j++) {
713 for (j = base_channel; j < s->prim_channels; j++) {
727 for (j = base_channel; j < s->prim_channels; j++) {
760 for (j = base_channel; j < s->prim_channels; j++) {
770 for (j = base_channel; j < s->prim_channels; j++) {
795 if (!base_channel && s->prim_channels > 2) {
797 for (j = base_channel; j < s->prim_channels; j++) {
808 for (j = base_channel; j < s->prim_channels; j++) {
816 if (!base_channel && s->dynrange)
829 for (j = base_channel; j < s->prim_channels; j++)
835 if (!base_channel && s->lfe) {
863 for (j = base_channel; j < s->prim_channels; j++) {
869 for (j = base_channel; j < s->prim_channels; j++) {
878 for (j = base_channel; j < s->prim_channels; j++) {
884 for (j = base_channel; j < s->prim_channels; j++) {
890 for (j = base_channel; j < s->prim_channels; j++) {
900 for (j = base_channel; j < s->prim_channels; j++) {
909 if (!base_channel && s->prim_channels > 2 && s->downmix) {
919 for (j = base_channel; j < s->prim_channels; j++)
922 if (!base_channel && s->lfe) {
1126 static int dca_subsubframe(DCAContext *s, int base_channel, int block_index)
1147 for (k = base_channel; k < s->prim_channels; k++) {
1261 for (k = base_channel; k < s->prim_channels; k++)
1302 static int dca_subframe_footer(DCAContext *s, int base_channel)
1311 if (!base_channel) {
1334 static int dca_decode_block(DCAContext *s, int base_channel, int block_index)
1350 if ((ret = dca_subframe_header(s, base_channel, block_index)))
1358 if ((ret = dca_subsubframe(s, base_channel, block_index)))
1372 if ((ret = dca_subframe_footer(s, base_channel)))