Lines Matching defs:avctx
63 AVCodecContext *avctx;
123 av_log(ctx->avctx, AV_LOG_ERROR, "Tree exceeded its given depth (%i)\n",
133 av_log(ctx->avctx, AV_LOG_DEBUG, "Too many literals\n");
163 av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect tree parameters - literal "
168 av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of Huffman tree "
189 av_log(ctx->avctx, AV_LOG_ERROR, "Got less bits than expected: %i of %i\n",
194 av_log(ctx->avctx, AV_LOG_ERROR, "Got less codes than expected: %i of %i\n",
203 NULL, 0, 0, 0, 0, ctx->avctx);
205 av_log(ctx->avctx, AV_LOG_ERROR, "Cannot build VLC table\n");
247 avpriv_request_sample(ctx->avctx, "Old TM2 header");
252 av_log(ctx->avctx, AV_LOG_ERROR, "Not a TM2 header: 0x%08"PRIX32"\n",
268 av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect delta table: %i deltas x %i bits\n", d, mb);
294 av_log(ctx->avctx, AV_LOG_ERROR, "not enough space for len left\n");
306 av_log(ctx->avctx, AV_LOG_ERROR, "Error, invalid stream size.\n");
346 av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of tokens: %i\n", toks);
366 av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of tokens: %i\n", toks);
372 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid delta token index %d for type %d, n=%d\n",
386 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid delta token index %d for type %d, n=%d\n",
404 av_log(ctx->avctx, AV_LOG_ERROR, "Read token from stream %i out of bounds (%i>=%i)\n", type, ctx->tok_ptrs[type], ctx->tok_lens[type]);
410 av_log(ctx->avctx, AV_LOG_ERROR, "token %d is too large\n", ctx->tokens[type][ctx->tok_ptrs[type]]);
719 mx = av_clip(mx, -(bx * 4 + 4), ctx->avctx->width - bx * 4);
720 my = av_clip(my, -(by * 4 + 4), ctx->avctx->height - by * 4);
722 if (4*bx+mx<0 || 4*by+my<0 || 4*bx+mx+4 > ctx->avctx->width || 4*by+my+4 > ctx->avctx->height) {
723 av_log(ctx->avctx, AV_LOG_ERROR, "MV out of picture\n");
768 int w = ctx->avctx->width, h = ctx->avctx->height, bw = w >> 2, bh = h >> 2, cw = w >> 1;
778 av_log(ctx->avctx,AV_LOG_ERROR,"Got %i tokens for %i blocks\n",ctx->tok_lens[TM2_TYPE],bw*bh);
816 av_log(ctx->avctx, AV_LOG_ERROR, "Skipping unknown block type %i\n", type);
889 static int decode_frame(AVCodecContext *avctx, AVFrame *rframe,
892 TM2Context * const l = avctx->priv_data;
903 av_log(avctx, AV_LOG_ERROR, "Cannot allocate temporary buffer\n");
907 if ((ret = ff_reget_buffer(avctx, p, 0)) < 0)
919 av_log(avctx, AV_LOG_ERROR, "no space for tm2_read_stream\n");
946 static av_cold int decode_init(AVCodecContext *avctx)
948 TM2Context * const l = avctx->priv_data;
949 int w = avctx->width, h = avctx->height;
951 if ((avctx->width & 3) || (avctx->height & 3)) {
952 av_log(avctx, AV_LOG_ERROR, "Width and height must be multiple of 4\n");
956 l->avctx = avctx;
957 avctx->pix_fmt = AV_PIX_FMT_BGR24;
992 static av_cold int decode_end(AVCodecContext *avctx)
994 TM2Context * const l = avctx->priv_data;