Lines Matching refs:fmt_ctx
49 AVFormatContext * fmt_ctx; member
229 av_seek_frame(player->ffmpeg_ctx->fmt_ctx, in lv_ffmpeg_player_set_cmd()
235 av_seek_frame(player->ffmpeg_ctx->fmt_ctx, in lv_ffmpeg_player_set_cmd()
515 AVCodecContext ** dec_ctx, AVFormatContext * fmt_ctx, in ffmpeg_open_codec_context() argument
524 ret = av_find_best_stream(fmt_ctx, type, -1, -1, NULL, 0); in ffmpeg_open_codec_context()
532 st = fmt_ctx->streams[stream_index]; in ffmpeg_open_codec_context()
576 AVFormatContext * fmt_ctx = NULL; in ffmpeg_get_image_header() local
587 fmt_ctx = avformat_alloc_context(); in ffmpeg_get_image_header()
588 if(fmt_ctx == NULL) { in ffmpeg_get_image_header()
592 fmt_ctx->pb = io_ctx; in ffmpeg_get_image_header()
593 fmt_ctx->flags |= AVFMT_FLAG_CUSTOM_IO; in ffmpeg_get_image_header()
596 if(avformat_open_input(&fmt_ctx, (const char *)dsc->src, NULL, NULL) < 0) { in ffmpeg_get_image_header()
602 if(avformat_find_stream_info(fmt_ctx, NULL) < 0) { in ffmpeg_get_image_header()
608 fmt_ctx, AVMEDIA_TYPE_VIDEO) in ffmpeg_get_image_header()
623 avformat_close_input(&fmt_ctx); in ffmpeg_get_image_header()
650 if(av_read_frame(ffmpeg_ctx->fmt_ctx, ffmpeg_ctx->pkt) >= 0) { in ffmpeg_update_next_frame()
748 ffmpeg_ctx->fmt_ctx = avformat_alloc_context(); in ffmpeg_open_file()
749 if(ffmpeg_ctx->fmt_ctx == NULL) { in ffmpeg_open_file()
753 ffmpeg_ctx->fmt_ctx->pb = ffmpeg_ctx->io_ctx; in ffmpeg_open_file()
754 ffmpeg_ctx->fmt_ctx->flags |= AVFMT_FLAG_CUSTOM_IO; in ffmpeg_open_file()
759 if(avformat_open_input(&(ffmpeg_ctx->fmt_ctx), path, NULL, NULL) < 0) { in ffmpeg_open_file()
766 if(avformat_find_stream_info(ffmpeg_ctx->fmt_ctx, NULL) < 0) { in ffmpeg_open_file()
774 ffmpeg_ctx->fmt_ctx, AVMEDIA_TYPE_VIDEO) in ffmpeg_open_file()
776 ffmpeg_ctx->video_stream = ffmpeg_ctx->fmt_ctx->streams[ffmpeg_ctx->video_stream_idx]; in ffmpeg_open_file()
785 av_dump_format(ffmpeg_ctx->fmt_ctx, 0, path, 0); in ffmpeg_open_file()
858 avformat_close_input(&(ffmpeg_ctx->fmt_ctx)); in ffmpeg_close_src_ctx()