Lines Matching defs:avctx
80 static av_cold int decode_init(AVCodecContext *avctx)
82 DSTContext *s = avctx->priv_data;
85 if (avctx->ch_layout.nb_channels > DST_MAX_CHANNELS) {
86 avpriv_request_sample(avctx, "Channel count %d", avctx->ch_layout.nb_channels);
92 if (avctx->sample_rate > 512 * 44100)
96 if (DST_SAMPLES_PER_FRAME(avctx->sample_rate) & 7) {
100 avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
102 for (i = 0; i < avctx->ch_layout.nb_channels; i++)
243 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
246 unsigned samples_per_frame = DST_SAMPLES_PER_FRAME(avctx->sample_rate);
251 const int channels = avctx->ch_layout.nb_channels;
252 DSTContext *s = avctx->priv_data;
263 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
282 avpriv_request_sample(avctx, "Not Same Segmentation");
287 avpriv_request_sample(avctx, "Not Same Segmentation For All Channels");
292 avpriv_request_sample(avctx, "Not End Of Channel Segmentation");
307 avpriv_request_sample(avctx, "Not Same Mapping");