Lines Matching defs:avctx
105 static av_cold int decode_init(AVCodecContext *avctx)
107 HCAContext *c = avctx->priv_data;
114 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
117 if (avctx->ch_layout.nb_channels <= 0 || avctx->ch_layout.nb_channels > 16)
120 if (avctx->extradata_size < 36)
122 bytestream2_init(gb, avctx->extradata, avctx->extradata_size);
187 ret = ath_init(c->ath, c->ath_type, avctx->sample_rate);
194 b = avctx->ch_layout.nb_channels / c->track_count;
239 for (int i = 0; i < avctx->ch_layout.nb_channels; i++) {
247 c->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
385 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
388 HCAContext *c = avctx->priv_data;
393 if (avctx->err_recognition & AV_EF_CRCCHECK) {
405 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
411 for (ch = 0; ch < avctx->ch_layout.nb_channels; ch++)
415 for (ch = 0; ch < avctx->ch_layout.nb_channels; ch++)
417 for (ch = 0; ch < avctx->ch_layout.nb_channels; ch++)
420 for (ch = 0; ch < avctx->ch_layout.nb_channels - 1; ch++)
424 for (ch = 0; ch < avctx->ch_layout.nb_channels; ch++)
433 static av_cold int decode_close(AVCodecContext *avctx)
435 HCAContext *c = avctx->priv_data;