Lines Matching defs:avctx

113     AVCodecContext *avctx;
195 static av_cold int imc_decode_init(AVCodecContext *avctx)
198 IMCContext *q = avctx->priv_data;
203 if (avctx->codec_id == AV_CODEC_ID_IAC && avctx->sample_rate > 96000) {
204 av_log(avctx, AV_LOG_ERROR,
207 avctx->sample_rate);
211 if (avctx->codec_id == AV_CODEC_ID_IMC) {
212 av_channel_layout_uninit(&avctx->ch_layout);
213 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
216 if (avctx->ch_layout.nb_channels > 2) {
217 avpriv_request_sample(avctx, "Number of channels > 2");
221 for (j = 0; j < avctx->ch_layout.nb_channels; j++) {
256 if (avctx->codec_id == AV_CODEC_ID_IAC) {
257 iac_generate_tabs(q, avctx->sample_rate);
265 fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
271 av_log(avctx, AV_LOG_INFO, "FFT init failed\n");
276 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
480 av_log(q->avctx, AV_LOG_ERROR, "flcoeffs5 %f invalid\n", chctx->flcoeffs5[i]);
803 static void imc_get_coeffs(AVCodecContext *avctx,
818 av_log(avctx, AV_LOG_WARNING,
874 static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch)
887 av_log(avctx, AV_LOG_ERROR, "frame header check failed!\n");
888 av_log(avctx, AV_LOG_ERROR, "got %X.\n", imc_hdr);
922 av_log(avctx, AV_LOG_ERROR, "scalefactor out of range\n");
975 if (avctx->codec_id == AV_CODEC_ID_IAC) {
984 av_log(avctx, AV_LOG_ERROR, "Bit allocations failed\n");
1006 imc_get_coeffs(avctx, q, chctx);
1009 av_log(avctx, AV_LOG_ERROR, "Inverse quantization of coefficients failed\n");
1016 imc_imdct256(q, chctx, avctx->ch_layout.nb_channels);
1021 static int imc_decode_frame(AVCodecContext *avctx, AVFrame *frame,
1028 IMCContext *q = avctx->priv_data;
1032 q->avctx = avctx;
1034 if (buf_size < IMC_BLOCK_SIZE * avctx->ch_layout.nb_channels) {
1035 av_log(avctx, AV_LOG_ERROR, "frame too small!\n");
1041 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
1044 for (i = 0; i < avctx->ch_layout.nb_channels; i++) {
1053 if ((ret = imc_decode_block(avctx, q, i)) < 0)
1057 if (avctx->ch_layout.nb_channels == 2) {
1064 return IMC_BLOCK_SIZE * avctx->ch_layout.nb_channels;
1067 static av_cold int imc_decode_close(AVCodecContext * avctx)
1069 IMCContext *q = avctx->priv_data;
1076 static av_cold void flush(AVCodecContext *avctx)
1078 IMCContext *q = avctx->priv_data;