Lines Matching refs:avctx
40 av_log(s->avctx, AV_LOG_ERROR, " MS Video-1 warning: stream_ptr out of bounds (%d >= %d)\n", \
47 AVCodecContext *avctx;
58 static av_cold int msvideo1_decode_init(AVCodecContext *avctx)
60 Msvideo1Context *s = avctx->priv_data;
62 s->avctx = avctx;
65 if (s->avctx->bits_per_coded_sample == 8) {
67 avctx->pix_fmt = PIX_FMT_PAL8;
70 avctx->pix_fmt = PIX_FMT_RGB555;
99 blocks_wide = s->avctx->width / 4;
100 blocks_high = s->avctx->height / 4;
174 if (s->avctx->pix_fmt == PIX_FMT_PAL8)
199 blocks_wide = s->avctx->width / 4;
200 blocks_high = s->avctx->height / 4;
287 static int msvideo1_decode_frame(AVCodecContext *avctx,
293 Msvideo1Context *s = avctx->priv_data;
300 if (avctx->reget_buffer(avctx, &s->frame)) {
301 av_log(s->avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
326 static av_cold int msvideo1_decode_end(AVCodecContext *avctx)
328 Msvideo1Context *s = avctx->priv_data;
331 avctx->release_buffer(avctx, &s->frame);