Lines Matching defs:avctx
33 AVCodecContext *avctx;
44 static av_cold int hcom_init(AVCodecContext *avctx)
46 HCOMContext *s = avctx->priv_data;
48 if (avctx->ch_layout.nb_channels != 1) {
49 av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n");
53 if (avctx->extradata_size <= 7)
55 s->dict_entries = AV_RB16(avctx->extradata);
56 if (avctx->extradata_size < s->dict_entries * 4 + 7 ||
59 s->delta_compression = AV_RB32(avctx->extradata + 2);
60 s->sample = s->first_sample = avctx->extradata[avctx->extradata_size - 1];
66 s->dict[i].l = AV_RB16(avctx->extradata + 6 + 4 * i);
67 s->dict[i].r = AV_RB16(avctx->extradata + 6 + 4 * i + 2);
77 avctx->sample_fmt = AV_SAMPLE_FMT_U8;
83 static int hcom_decode(AVCodecContext *avctx, AVFrame *frame,
86 HCOMContext *s = avctx->priv_data;
94 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
128 static av_cold int hcom_close(AVCodecContext *avctx)
130 HCOMContext *s = avctx->priv_data;