Lines Matching defs:avctx
345 if (x + c->mvX < 0 || x + c->mvX + width > c->avctx->width ||
346 y + c->mvY < 0 || y + c->mvY + height > c->avctx->height ||
390 if (c->avctx->err_recognition & AV_EF_EXPLODE &&
516 if (c->avctx->err_recognition & AV_EF_EXPLODE &&
583 AVCodecContext *avctx = c->avctx;
586 if (avctx->extradata_size < 52 + 256 * 3) {
587 av_log(avctx, AV_LOG_ERROR, "Insufficient extradata size %d\n",
588 avctx->extradata_size);
592 if (AV_RB32(avctx->extradata) < avctx->extradata_size) {
593 av_log(avctx, AV_LOG_ERROR,
595 AV_RB32(avctx->extradata),
596 avctx->extradata_size);
600 avctx->coded_width = FFMAX(AV_RB32(avctx->extradata + 20), avctx->width);
601 avctx->coded_height = FFMAX(AV_RB32(avctx->extradata + 24), avctx->height);
602 if (avctx->coded_width > 4096 || avctx->coded_height > 4096) {
603 av_log(avctx, AV_LOG_ERROR, "Frame dimensions %dx%d too large",
604 avctx->coded_width, avctx->coded_height);
607 if (avctx->coded_width < 1 || avctx->coded_height < 1) {
608 av_log(avctx, AV_LOG_ERROR, "Frame dimensions %dx%d too small",
609 avctx->coded_width, avctx->coded_height);
613 av_log(avctx, AV_LOG_DEBUG, "Encoder version %"PRIu32".%"PRIu32"\n",
614 AV_RB32(avctx->extradata + 4), AV_RB32(avctx->extradata + 8));
615 if (version != AV_RB32(avctx->extradata + 4) > 1) {
616 av_log(avctx, AV_LOG_ERROR,
621 c->free_colours = AV_RB32(avctx->extradata + 48);
623 av_log(avctx, AV_LOG_ERROR,
628 av_log(avctx, AV_LOG_DEBUG, "%d free colour(s)\n", c->free_colours);
630 av_log(avctx, AV_LOG_DEBUG, "Display dimensions %"PRIu32"x%"PRIu32"\n",
631 AV_RB32(avctx->extradata + 12), AV_RB32(avctx->extradata + 16));
632 av_log(avctx, AV_LOG_DEBUG, "Coded dimensions %dx%d\n",
633 avctx->coded_width, avctx->coded_height);
634 av_log(avctx, AV_LOG_DEBUG, "%g frames per second\n",
635 av_int2float(AV_RB32(avctx->extradata + 28)));
636 av_log(avctx, AV_LOG_DEBUG, "Bitrate %"PRIu32" bps\n",
637 AV_RB32(avctx->extradata + 32));
638 av_log(avctx, AV_LOG_DEBUG, "Max. lead time %g ms\n",
639 av_int2float(AV_RB32(avctx->extradata + 36)));
640 av_log(avctx, AV_LOG_DEBUG, "Max. lag time %g ms\n",
641 av_int2float(AV_RB32(avctx->extradata + 40)));
642 av_log(avctx, AV_LOG_DEBUG, "Max. seek time %g ms\n",
643 av_int2float(AV_RB32(avctx->extradata + 44)));
646 if (avctx->extradata_size < 60 + 256 * 3) {
647 av_log(avctx, AV_LOG_ERROR,
649 avctx->extradata_size);
653 c->slice_split = AV_RB32(avctx->extradata + 52);
654 av_log(avctx, AV_LOG_DEBUG, "Slice split %d\n", c->slice_split);
656 c->full_model_syms = AV_RB32(avctx->extradata + 56);
658 av_log(avctx, AV_LOG_ERROR,
663 av_log(avctx, AV_LOG_DEBUG, "Used colours %d\n",
671 c->pal[i] = 0xFFU << 24 | AV_RB24(avctx->extradata + 52 +
674 c->mask_stride = FFALIGN(avctx->width, 16);
675 c->mask = av_malloc_array(c->mask_stride, avctx->height);
677 av_log(avctx, AV_LOG_ERROR, "Cannot allocate mask plane\n");