Lines Matching refs:avctx
43 AVCodecContext *avctx;
52 av_log (s->avctx, AV_LOG_ERROR, "Problem: pixel_ptr = %d, pixel_limit = %d\n",\
64 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
127 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
183 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
232 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
276 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
323 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
360 static av_cold int qtrle_decode_init(AVCodecContext *avctx)
362 QtrleContext *s = avctx->priv_data;
364 s->avctx = avctx;
365 switch (avctx->bits_per_coded_sample) {
368 avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
377 avctx->pix_fmt = AV_PIX_FMT_PAL8;
381 avctx->pix_fmt = AV_PIX_FMT_RGB555;
385 avctx->pix_fmt = AV_PIX_FMT_RGB24;
389 avctx->pix_fmt = AV_PIX_FMT_RGB32;
393 av_log (avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n",
394 avctx->bits_per_coded_sample);
405 static int qtrle_decode_frame(AVCodecContext *avctx,
409 QtrleContext *s = avctx->priv_data;
416 if ((ret = ff_reget_buffer(avctx, s->frame)) < 0)
437 if (height > s->avctx->height - start_line)
441 height = s->avctx->height;
445 switch (avctx->bits_per_coded_sample) {
482 av_log (s->avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n",
483 avctx->bits_per_coded_sample);
508 static av_cold int qtrle_decode_end(AVCodecContext *avctx)
510 QtrleContext *s = avctx->priv_data;