Lines Matching defs:avctx
45 AVCodecContext *avctx;
54 av_log (s->avctx, AV_LOG_ERROR, "Problem: pixel_ptr = %d, pixel_limit = %d\n",\
66 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
152 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
210 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
261 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
308 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
363 int pixel_limit = s->frame->linesize[0] * s->avctx->height;
407 static av_cold int qtrle_decode_init(AVCodecContext *avctx)
409 QtrleContext *s = avctx->priv_data;
411 s->avctx = avctx;
412 switch (avctx->bits_per_coded_sample) {
421 avctx->pix_fmt = AV_PIX_FMT_PAL8;
425 avctx->pix_fmt = AV_PIX_FMT_RGB555;
429 avctx->pix_fmt = AV_PIX_FMT_RGB24;
433 avctx->pix_fmt = AV_PIX_FMT_ARGB;
437 av_log (avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n",
438 avctx->bits_per_coded_sample);
449 static int qtrle_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
452 QtrleContext *s = avctx->priv_data;
469 if (size - avpkt->size > size * (int64_t)avctx->discard_damaged_percentage / 100)
486 if (height > s->avctx->height - start_line) {
492 height = s->avctx->height;
494 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
499 switch (avctx->bits_per_coded_sample) {
537 av_log (s->avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n",
538 avctx->bits_per_coded_sample);
543 s->frame->palette_has_changed = ff_copy_palette(s->pal, avpkt, avctx);
555 ret = ff_decode_frame_props(avctx, s->frame);
568 static void qtrle_decode_flush(AVCodecContext *avctx)
570 QtrleContext *s = avctx->priv_data;
575 static av_cold int qtrle_decode_end(AVCodecContext *avctx)
577 QtrleContext *s = avctx->priv_data;