• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:avctx

371 static int decode_wmv9(AVCodecContext *avctx, const uint8_t *buf, int buf_size,
374 MSS2Context *ctx = avctx->priv_data;
376 VC1Context *v = avctx->priv_data;
381 ff_mpeg_flush(avctx);
386 s->loop_filter = avctx->skip_loop_filter < AVDISCARD_ALL;
389 av_log(v->s.avctx, AV_LOG_ERROR, "header error\n");
394 av_log(v->s.avctx, AV_LOG_ERROR, "expected I-frame\n");
398 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
400 if ((ret = ff_MPV_frame_start(s, avctx)) < 0) {
401 av_log(v->s.avctx, AV_LOG_ERROR, "ff_MPV_frame_start error\n");
402 avctx->pix_fmt = AV_PIX_FMT_RGB24;
430 avpriv_request_sample(v->s.avctx,
450 avctx->pix_fmt = AV_PIX_FMT_RGB24;
462 static int mss2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
467 MSS2Context *ctx = avctx->priv_data;
504 ctx->split_position = avctx->height / 2;
507 ctx->split_position = avctx->height;
510 ctx->split_position > avctx->height - 1))
523 avctx->pix_fmt = is_555 ? AV_PIX_FMT_RGB555 : AV_PIX_FMT_RGB24;
524 if (ctx->last_pic->format != avctx->pix_fmt)
538 r->x = arith2_get_number(&acoder, avctx->width);
540 r->x = arith2_get_number(&acoder, avctx->width -
543 r->y = arith2_get_number(&acoder, avctx->height);
544 r->w = arith2_get_number(&acoder, avctx->width - r->x) + 1;
545 r->h = arith2_get_number(&acoder, avctx->height - r->y) + 1;
550 av_log(avctx, AV_LOG_ERROR, "implicit_rect && used_rects > 0\n");
557 wmv9rects[0].w = avctx->width;
558 wmv9rects[0].h = avctx->height;
564 av_log(avctx, AV_LOG_ERROR, "Unexpected grandchildren\n");
592 c->mvX = AV_RB16(buf - 4) - avctx->width;
593 c->mvY = AV_RB16(buf - 2) - avctx->height;
599 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
605 ctx->last_pic->linesize[0] * (avctx->height - 1);
607 av_log(avctx, AV_LOG_ERROR, "Missing keyframe\n");
611 if ((ret = ff_reget_buffer(avctx, ctx->last_pic)) < 0)
619 frame->linesize[0] * (avctx->height - 1);
629 keyframe, avctx->width, avctx->height))
646 avctx->width, avctx->height))
654 avctx->width, avctx->height))
667 avctx->width,
680 avctx->width,
681 avctx->height - ctx->split_position))
688 memset(c->pal_pic, 0, c->pal_stride * avctx->height);
701 if (ret = decode_wmv9(avctx, buf + 3, buf_size - 3,
725 av_log(avctx, AV_LOG_WARNING, "buffer not fully consumed\n");
739 static av_cold int wmv9_init(AVCodecContext *avctx)
741 VC1Context *v = avctx->priv_data;
744 v->s.avctx = avctx;
778 v->s.max_b_frames = avctx->max_b_frames = 0;
787 if ((ret = ff_msmpeg4_decode_init(avctx)) < 0 ||
798 static av_cold int mss2_decode_end(AVCodecContext *avctx)
800 MSS2Context *const ctx = avctx->priv_data;
807 ff_vc1_decode_end(avctx);
812 static av_cold int mss2_decode_init(AVCodecContext *avctx)
814 MSS2Context * const ctx = avctx->priv_data;
817 c->avctx = avctx;
822 c->pal_pic = av_mallocz(c->pal_stride * avctx->height);
823 c->last_pal_pic = av_mallocz(c->pal_stride * avctx->height);
825 mss2_decode_end(avctx);
828 if (ret = wmv9_init(avctx)) {
829 mss2_decode_end(avctx);
835 avctx->pix_fmt = c->free_colours == 127 ? AV_PIX_FMT_RGB555