Lines Matching refs:avctx
41 AVCodecContext *avctx;
53 static av_cold int tgv_decode_init(AVCodecContext *avctx){
54 TgvContext *s = avctx->priv_data;
55 s->avctx = avctx;
56 avctx->time_base = (AVRational){1, 15};
57 avctx->pix_fmt = PIX_FMT_PAL8;
139 unsigned char *frame0_end = s->last_frame.data[0] + s->avctx->width*s->last_frame.linesize[0];
197 (s->avctx->height/4) * (s->avctx->width/4))
201 for(y=0; y<s->avctx->height/4; y++)
202 for(x=0; x<s->avctx->width/4; x++) {
243 static int tgv_decode_frame(AVCodecContext *avctx,
249 TgvContext *s = avctx->priv_data;
259 av_log(avctx, AV_LOG_WARNING, "truncated header\n");
265 if (s->avctx->width!=s->width || s->avctx->height!=s->height) {
266 avcodec_set_dimensions(s->avctx, s->width, s->height);
279 if (av_image_check_size(s->width, s->height, 0, avctx))
304 if (unpack(buf, buf_end, s->frame.data[0], s->avctx->width, s->avctx->height)<0) {
305 av_log(avctx, AV_LOG_WARNING, "truncated intra frame\n");
310 av_log(avctx, AV_LOG_WARNING, "inter frame without corresponding intra frame\n");
316 av_log(avctx, AV_LOG_WARNING, "truncated inter frame\n");
327 static av_cold int tgv_decode_end(AVCodecContext *avctx)
329 TgvContext *s = avctx->priv_data;