Lines Matching defs:avctx
36 AVCodecContext *avctx;
43 av_log(s->avctx, AV_LOG_ERROR, " AASC: stream ptr just went out of bounds (fetch)\n"); \
48 static av_cold int aasc_decode_init(AVCodecContext *avctx)
50 AascContext *s = avctx->priv_data;
52 s->avctx = avctx;
54 avctx->pix_fmt = PIX_FMT_BGR24;
59 static int aasc_decode_frame(AVCodecContext *avctx,
65 AascContext *s = avctx->priv_data;
70 if (avctx->reget_buffer(avctx, &s->frame)) {
71 av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
80 stride = (avctx->width * 3 + 3) & ~3;
81 for(i = avctx->height - 1; i >= 0; i--){
82 memcpy(s->frame.data[0] + i*s->frame.linesize[0], buf, avctx->width*3);
87 ff_msrle_decode(avctx, (AVPicture*)&s->frame, 8, buf - 4, buf_size + 4);
90 av_log(avctx, AV_LOG_ERROR, "Unknown compression type %d\n", compr);
101 static av_cold int aasc_decode_end(AVCodecContext *avctx)
103 AascContext *s = avctx->priv_data;
107 avctx->release_buffer(avctx, &s->frame);