Lines Matching defs:avctx
89 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL downmix scale index\n");
104 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL downmix coefficient index\n");
128 if (ff_dca_check_crc(s->avctx, &s->gb, header_pos, header_pos + header_size * 8)) {
129 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL sub-header checksum\n");
136 avpriv_request_sample(s->avctx, "%d XLL channels", c->nchannels);
149 avpriv_request_sample(s->avctx, "%d-bit XLL storage resolution", c->storage_bit_res);
154 av_log(s->avctx, AV_LOG_ERROR, "Invalid PCM bit resolution for XLL channel set (%d > %d)\n", c->pcm_bit_res, c->storage_bit_res);
161 avpriv_request_sample(s->avctx, "%d Hz XLL sampling frequency", c->freq);
167 avpriv_request_sample(s->avctx, "XLL sampling frequency modifier");
173 avpriv_request_sample(s->avctx, "XLL replacement set");
181 av_log(s->avctx, AV_LOG_ERROR, "The first (and only) XLL channel set must be primary\n");
195 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL primary channel set downmix type\n");
203 avpriv_request_sample(s->avctx, "XLL channel set outside of hierarchy");
213 avpriv_request_sample(s->avctx, "Disabled XLL channel mask");
220 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL channel mask\n");
231 avpriv_request_sample(s->avctx, "Custom XLL channel to speaker mapping");
248 avpriv_request_sample(s->avctx, "Extra XLL frequency bands");
264 avpriv_request_sample(s->avctx, "Different XLL audio characteristics");
289 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL original channel order\n");
312 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL adaptive predicition order\n");
325 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL reflection coefficient index\n");
343 av_log(s->avctx, AV_LOG_ERROR, "Invalid LSB section size\n");
356 av_log(s->avctx, AV_LOG_ERROR, "LSB section missing with non-zero LSB width\n");
381 av_log(s->avctx, AV_LOG_ERROR, "Read past end of XLL sub-header\n");
545 av_log(s->avctx, AV_LOG_ERROR, "Invalid isolated sample location\n");
578 av_log(s->avctx, AV_LOG_ERROR, "Read past end of XLL band data\n");
594 av_log(s->avctx, AV_LOG_ERROR, "Read past end of XLL band data\n");
773 av_log(s->avctx, AV_LOG_VERBOSE, "Invalid XLL sync word\n");
780 avpriv_request_sample(s->avctx, "XLL stream version %d", stream_ver);
788 if (ff_dca_check_crc(s->avctx, &s->gb, 32, header_size * 8)) {
789 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL common header checksum\n");
799 av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL frame size (%d bytes)\n", s->frame_size);
807 avpriv_request_sample(s->avctx, "%d XLL channel sets", s->nchsets);
815 av_log(s->avctx, AV_LOG_ERROR, "Too many segments per XLL frame\n");
824 av_log(s->avctx, AV_LOG_ERROR, "Too few samples per XLL segment\n");
829 av_log(s->avctx, AV_LOG_ERROR, "Too many samples per XLL segment\n");
837 av_log(s->avctx, AV_LOG_ERROR, "Too many samples per XLL frame\n");
867 av_log(s->avctx, AV_LOG_ERROR, "Read past end of XLL common header\n");
907 DCAContext *dca = s->avctx->priv_data;
961 av_log(s->avctx, AV_LOG_ERROR, "Too many NAVI entries (%d)\n", navi_nb);
980 av_log(s->avctx, AV_LOG_ERROR, "Invalid NAVI segment size (%d bytes)\n", size);
996 if (ff_dca_check_crc(s->avctx, &s->gb, navi_pos, get_bits_count(&s->gb))) {
997 av_log(s->avctx, AV_LOG_ERROR, "Invalid NAVI checksum\n");
1024 av_log(s->avctx, AV_LOG_ERROR, "Invalid NAVI position\n");
1029 if (s->avctx->err_recognition & AV_EF_EXPLODE)
1058 av_log(s->avctx, AV_LOG_ERROR, "Read past end of XLL frame\n");
1241 DCAContext *dca = s->avctx->priv_data;
1258 DCAContext *dca = s->avctx->priv_data;
1264 av_log(s->avctx, AV_LOG_ERROR, "Residual encoded channels are present without core\n");
1269 av_log(s->avctx, AV_LOG_WARNING, "Sample rate mismatch between core (%d Hz) and XLL (%d Hz)\n", dca->core.output_rate, c->freq);
1274 av_log(s->avctx, AV_LOG_WARNING, "Number of samples per frame mismatch between core (%d) and XLL (%d)\n", dca->core.npcmsamples, nsamples);
1294 av_log(s->avctx, AV_LOG_WARNING, "Residual encoded channel (%d) references unavailable core channel\n", c->ch_remap[ch]);
1301 av_log(s->avctx, AV_LOG_WARNING, "Invalid core shift (%d bits)\n", shift);
1326 AVCodecContext *avctx = s->avctx;
1327 DCAContext *dca = avctx->priv_data;
1412 if (!ff_dca_set_channel_layout(avctx, ch_remap, request_mask))
1415 avctx->sample_rate = p->freq << (s->nfreqbands - 1);
1419 avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
1424 avctx->sample_fmt = AV_SAMPLE_FMT_S32P;
1431 avctx->bits_per_raw_sample = p->storage_bit_res;
1432 avctx->profile = FF_PROFILE_DTS_HD_MA;
1433 avctx->bit_rate = 0;
1436 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
1446 for (i = 0; i < avctx->ch_layout.nb_channels; i++) {