Lines Matching defs:avctx

53     AVCodecContext *avctx;
149 av_log(rac->avctx, AV_LOG_ERROR, "Invalid probability encountered.\n");
153 av_log(rac->avctx, AV_LOG_ERROR, "Integer overflow encountered in cumulative probability calculation.\n");
159 av_log(rac->avctx, AV_LOG_ERROR, "Invalid probability run encountered.\n");
172 av_log(rac->avctx, AV_LOG_ERROR, "All probabilities are 0!\n");
190 av_log(rac->avctx, AV_LOG_ERROR, "Scaled probabilities invalid\n");
204 av_log(rac->avctx, AV_LOG_ERROR,
281 TL = l->avctx->pix_fmt == AV_PIX_FMT_YUV420P ? buf[-stride] : L;
383 avpriv_request_sample(l->avctx, "zero_run_line");
391 av_log(l->avctx, AV_LOG_ERROR, "Too many zeros remaining.\n");
446 rac.avctx = l->avctx;
477 av_log(l->avctx, AV_LOG_WARNING,
511 av_log(l->avctx, AV_LOG_ERROR,
516 if (l->avctx->pix_fmt != AV_PIX_FMT_YUV422P) {
524 width == l->avctx->width);
534 * @param avctx codec context
540 static int lag_decode_frame(AVCodecContext *avctx, AVFrame *p,
545 LagarithContext *l = avctx->priv_data;
563 avctx->pix_fmt = AV_PIX_FMT_GBRAP;
566 if (avctx->bits_per_coded_sample == 24) {
567 avctx->pix_fmt = AV_PIX_FMT_GBRP;
569 avctx->pix_fmt = AV_PIX_FMT_GBRAP;
573 if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
577 for (i = 0; i < avctx->height; i++) {
578 memset(p->data[0] + i * p->linesize[0], buf[2], avctx->width);
579 memset(p->data[1] + i * p->linesize[1], buf[1], avctx->width);
580 memset(p->data[2] + i * p->linesize[2], buf[3], avctx->width);
581 memset(p->data[3] + i * p->linesize[3], buf[4], avctx->width);
584 for (i = 0; i < avctx->height; i++) {
586 memset(p->data[j] + i * p->linesize[j], buf[1], avctx->width);
591 if (avctx->bits_per_coded_sample == 24) {
592 avctx->pix_fmt = AV_PIX_FMT_GBRP;
594 avctx->pix_fmt = AV_PIX_FMT_GBRAP;
597 if ((ret = ff_thread_get_buffer(avctx, p,0)) < 0)
600 for (i = 0; i < avctx->height; i++) {
601 memset(p->data[0] + i * p->linesize[0], buf[2], avctx->width);
602 memset(p->data[1] + i * p->linesize[1], buf[1], avctx->width);
603 memset(p->data[2] + i * p->linesize[2], buf[3], avctx->width);
604 if (avctx->pix_fmt == AV_PIX_FMT_GBRAP)
605 memset(p->data[3] + i * p->linesize[3], 0xFFu, avctx->width);
609 avctx->pix_fmt = AV_PIX_FMT_GBRAP;
616 avctx->pix_fmt = AV_PIX_FMT_GBRP;
618 if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
626 srcs[i] = p->data[i] + (avctx->height - 1) * p->linesize[i];
629 av_log(avctx, AV_LOG_ERROR,
636 avctx->width, avctx->height,
642 for (i = 0; i < avctx->height; i++) {
643 l->llviddsp.add_bytes(p->data[0] + i * p->linesize[0], p->data[1] + i * p->linesize[1], avctx->width);
644 l->llviddsp.add_bytes(p->data[2] + i * p->linesize[2], p->data[1] + i * p->linesize[1], avctx->width);
652 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
654 if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
660 av_log(avctx, AV_LOG_ERROR,
665 ret = lag_decode_arith_plane(l, p->data[0], avctx->width, avctx->height,
670 ret = lag_decode_arith_plane(l, p->data[1], (avctx->width + 1) / 2,
671 avctx->height, p->linesize[1],
675 ret = lag_decode_arith_plane(l, p->data[2], (avctx->width + 1) / 2,
676 avctx->height, p->linesize[2],
680 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
682 if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
688 av_log(avctx, AV_LOG_ERROR,
693 ret = lag_decode_arith_plane(l, p->data[0], avctx->width, avctx->height,
698 ret = lag_decode_arith_plane(l, p->data[2], (avctx->width + 1) / 2,
699 (avctx->height + 1) / 2, p->linesize[2],
703 ret = lag_decode_arith_plane(l, p->data[1], (avctx->width + 1) / 2,
704 (avctx->height + 1) / 2, p->linesize[1],
708 av_log(avctx, AV_LOG_ERROR,
721 static av_cold int lag_decode_init(AVCodecContext *avctx)
723 LagarithContext *l = avctx->priv_data;
724 l->avctx = avctx;