Lines Matching defs:avctx
69 AVCodecContext *avctx;
148 static av_cold int idcin_decode_init(AVCodecContext *avctx)
150 IdcinContext *s = avctx->priv_data;
154 s->avctx = avctx;
155 avctx->pix_fmt = AV_PIX_FMT_PAL8;
158 if (s->avctx->extradata_size != HUFFMAN_TABLE_SIZE) {
159 av_log(s->avctx, AV_LOG_ERROR, " id CIN video: expected extradata size of %d\n", HUFFMAN_TABLE_SIZE);
164 histograms = (unsigned char *)s->avctx->extradata;
183 for (y = 0; y < (frame->linesize[0] * s->avctx->height);
185 for (x = y; x < y + s->avctx->width; x++) {
192 av_log(s->avctx, AV_LOG_ERROR, "Huffman decode error.\n");
212 static int idcin_decode_frame(AVCodecContext *avctx, AVFrame *frame,
217 IdcinContext *s = avctx->priv_data;
223 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
229 frame->palette_has_changed = ff_copy_palette(s->pal, avpkt, avctx);