Lines Matching defs:band
120 int i, j, k, ret, band, header_size, header_pos = get_bits_count(&s->gb);
256 // Set the sampling frequency to that of the first frequency band.
280 for (band = 0, b = c->bands; band < c->nfreqbands; band++, b++) {
335 // Downmix performed by encoder in extension frequency band
336 b->dmix_embedded = c->dmix_embedded && (band == 0 || get_bits1(&s->gb));
338 // MSB/LSB split flag in extension frequency band
339 if ((band == 0 && s->scalable_lsbs) || (band != 0 && get_bits1(&s->gb))) {
349 (band == 0 && s->band_crc_present > 1)))
366 // Scalable resolution flag in extension frequency band
367 if ((band == 0 && s->scalable_lsbs) || (band != 0 && get_bits1(&s->gb))) {
444 static int chs_parse_band_data(DCAXllDecoder *s, DCAXllChSet *c, int band, int seg, int band_data_end)
446 DCAXllBand *b = &c->bands[band];
566 // Unpack decimator history for frequency band 1
567 if (seg == 0 && band == 1) {
578 av_log(s->avctx, AV_LOG_ERROR, "Read past end of XLL band data\n");
592 // Skip to the end of band data
594 av_log(s->avctx, AV_LOG_ERROR, "Read past end of XLL band data\n");
601 static av_cold void chs_clear_band_data(DCAXllDecoder *s, DCAXllChSet *c, int band, int seg)
603 DCAXllBand *b = &c->bands[band];
620 if (seg <= 0 && band)
629 static void chs_filter_band_data(DCAXllDecoder *s, DCAXllChSet *c, int band)
631 DCAXllBand *b = &c->bands[band];
688 // Map output channel pointers for frequency band 0
694 static int chs_get_lsb_width(DCAXllDecoder *s, DCAXllChSet *c, int band, int ch)
696 int adj = c->bands[band].bit_width_adjust[ch];
697 int shift = c->bands[band].nscalablelsbs[ch];
709 static void chs_assemble_msbs_lsbs(DCAXllDecoder *s, DCAXllChSet *c, int band)
711 DCAXllBand *b = &c->bands[band];
715 int shift = chs_get_lsb_width(s, c, band, ch);
738 // Reallocate frequency band assembly buffer
819 // Samples in segment per one frequency band for the first channel set
833 // Samples in frame per one frequency band for the first channel set
844 // Presence of CRC16 within each frequency band
845 // 0 - No CRC16 within band
955 int chs, seg, band, navi_nb, navi_pos, *navi_ptr;
973 for (band = 0; band < s->nfreqbands; band++) {
977 if (c->nfreqbands > band) {
1006 int ret, chs, seg, band, navi_pos, *navi_ptr;
1018 for (band = 0; band < s->nfreqbands; band++) {
1021 if (c->nfreqbands > band) {
1028 (ret = chs_parse_band_data(s, c, band, seg, navi_pos)) < 0) {
1031 chs_clear_band_data(s, c, band, seg);
1180 static void undo_down_mix(DCAXllDecoder *s, DCAXllChSet *o, int band)
1189 av_assert1(band < c->nfreqbands);
1194 s->dcadsp->dmix_sub(c->bands[band].msb_sample_buffer[j],
1195 o->bands[band].msb_sample_buffer[k],
1197 if (band)
1211 static void scale_down_mix(DCAXllDecoder *s, DCAXllChSet *o, int band)
1220 av_assert1(band < c->nfreqbands);
1224 s->dcadsp->dmix_scale(c->bands[band].msb_sample_buffer[j],
1226 if (band)
1237 // Clear all band data and replace non-residual encoded channels with lossy
1242 int band, ch;
1244 for (band = 0; band < c->nfreqbands; band++)
1245 chs_clear_band_data(s, c, band, -1);