Lines Matching defs:avctx
47 AVCodecContext *avctx;
323 av_log(s->avctx, AV_LOG_ERROR, "invalid header size (%d)\n", s->buf[0]);
328 av_log(s->avctx, AV_LOG_ERROR, "Input packet too small.\n");
352 av_log(s->avctx, AV_LOG_ERROR, "invalid header type (%d)\n", header.header_type);
364 avpriv_request_sample(s->avctx, "Frame with sprite");
374 avpriv_request_sample(s->avctx, "Interpolated frame");
380 av_log(s->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", header.compression);
394 av_log(s->avctx, AV_LOG_ERROR, "invalid vector table id (%d)\n", header.vectable);
407 avpriv_request_sample(s->avctx, "Frame with odd width");
411 if (s->w != s->avctx->width || s->h != s->avctx->height ||
412 new_pix_fmt != s->avctx->pix_fmt) {
414 s->avctx->sample_aspect_ratio = (AVRational){ 1 << width_shift, 1 };
415 s->avctx->pix_fmt = new_pix_fmt;
417 if ((ret = ff_set_dimensions(s->avctx, s->w, s->h)) < 0)
420 ff_set_sar(s->avctx, s->avctx->sample_aspect_ratio);
422 av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));
430 s->mb_change_bits_row_size = ((s->avctx->width >> (2 - width_shift)) + 7) >> 3;
437 if (s->avctx->pix_fmt == AV_PIX_FMT_RGB555)
448 if (s->avctx->width * s->avctx->height / 2048 + header.header_size > s->size)
453 (s->mb_change_bits_row_size * (s->avctx->height >> 2));
464 if (s->avctx->debug & FF_DEBUG_PICT_INFO)
465 av_log(s->avctx, AV_LOG_INFO, "tables: %d / %d c:%d %dx%d t:%d %s%s%s%s\n",
476 static av_cold int truemotion1_decode_init(AVCodecContext *avctx)
478 TrueMotion1Context *s = avctx->priv_data;
480 s->avctx = avctx;
483 // if (avctx->bits_per_sample == 24)
484 // avctx->pix_fmt = AV_PIX_FMT_RGB24;
486 // avctx->pix_fmt = AV_PIX_FMT_RGB555;
494 av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));
530 av_log(s->avctx, AV_LOG_INFO, " help! truemotion1 decoder went out of bounds\n"); \
539 av_log(s->avctx, AV_LOG_ERROR, "Invalid index value.\n"); \
640 memset(s->vert_pred, 0, s->avctx->width * sizeof(unsigned int));
644 for (y = 0; y < s->avctx->height; y++) {
654 pixels_left = s->avctx->width;
767 memset(s->vert_pred, 0, s->avctx->width * sizeof(unsigned int));
771 for (y = 0; y < s->avctx->height; y++) {
780 pixels_left = s->avctx->width;
872 static int truemotion1_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
877 TrueMotion1Context *s = avctx->priv_data;
885 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
903 static av_cold int truemotion1_decode_end(AVCodecContext *avctx)
905 TrueMotion1Context *s = avctx->priv_data;