Lines Matching defs:avctx

50     AVCodecContext *avctx;
77 av_log(s->avctx, AV_LOG_ERROR, "block counter just went negative (this should not happen)\n"); \
85 int width = s->avctx->width;
86 int height = s->avctx->height;
123 av_log(s->avctx, AV_LOG_WARNING, "MOV chunk size != encoded chunk size (%d != %d); using MOV chunk size\n",
127 total_blocks = ((s->avctx->width + 3) / 4) * ((s->avctx->height + 3) / 4);
134 av_log(s->avctx, AV_LOG_ERROR, "just went out of bounds (row ptr = %d, height = %d)\n",
139 av_log(s->avctx, AV_LOG_ERROR, "input too small\n");
161 av_log(s->avctx, AV_LOG_ERROR, "encountered repeat block opcode (%02X) but no blocks rendered yet\n",
169 (row_ptr - s->avctx->width * 4) + s->avctx->width - 4;
195 av_log(s->avctx, AV_LOG_ERROR, "encountered repeat block opcode (%02X) but not enough blocks rendered yet\n",
202 prev_block_ptr1 = (row_ptr - s->avctx->width * 4) +
203 s->avctx->width - 4 * 2;
205 prev_block_ptr1 = (row_ptr - s->avctx->width * 4) + row_inc;
210 prev_block_ptr2 = (row_ptr - s->avctx->width * 4) + row_inc;
417 static av_cold int smc_decode_init(AVCodecContext *avctx)
419 SmcContext *s = avctx->priv_data;
421 s->avctx = avctx;
422 avctx->pix_fmt = AV_PIX_FMT_PAL8;
431 static int smc_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
436 SmcContext *s = avctx->priv_data;
438 int total_blocks = ((s->avctx->width + 3) / 4) * ((s->avctx->height + 3) / 4);
445 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
448 s->frame->palette_has_changed = ff_copy_palette(s->pal, avpkt, avctx);
462 static av_cold int smc_decode_end(AVCodecContext *avctx)
464 SmcContext *s = avctx->priv_data;