Lines Matching defs:fmt_ctx

87     AVFormatContext *fmt_ctx;
2528 AVFormatContext *fmt_ctx)
2551 AVFormatContext *fmt_ctx)
2589 sar = av_guess_sample_aspect_ratio(fmt_ctx, stream, frame);
2709 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
2758 show_subtitle(w, &sub, ifile->streams[pkt->stream_index].st, fmt_ctx);
2760 show_frame(w, frame, ifile->streams[pkt->stream_index].st, fmt_ctx);
2794 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
2821 if ((ret = avformat_seek_file(fmt_ctx, -1, -INT64_MAX, target, INT64_MAX, 0)) < 0) {
2838 while (!av_read_frame(fmt_ctx, pkt)) {
2839 if (fmt_ctx->nb_streams > nb_streams) {
2840 REALLOCZ_ARRAY_STREAM(nb_streams_frames, nb_streams, fmt_ctx->nb_streams);
2841 REALLOCZ_ARRAY_STREAM(nb_streams_packets, nb_streams, fmt_ctx->nb_streams);
2842 REALLOCZ_ARRAY_STREAM(selected_streams, nb_streams, fmt_ctx->nb_streams);
2843 nb_streams = fmt_ctx->nb_streams;
2883 for (i = 0; i < fmt_ctx->nb_streams; i++) {
2904 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
2906 int64_t cur_ts = fmt_ctx->start_time;
2922 static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program)
2986 sar = av_guess_sample_aspect_ratio(fmt_ctx, stream, NULL);
3067 if (fmt_ctx->iformat->flags & AVFMT_SHOW_IDS) print_fmt ("id", "0x%x", stream->id);
3145 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
3151 ret = show_stream(w, fmt_ctx, i, &ifile->streams[i], 0);
3162 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
3179 ret = show_stream(w, fmt_ctx, program->stream_index[i], &ifile->streams[program->stream_index[i]], 1);
3193 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
3197 for (i = 0; i < fmt_ctx->nb_programs; i++) {
3198 AVProgram *program = fmt_ctx->programs[i];
3211 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
3215 for (i = 0; i < fmt_ctx->nb_chapters; i++) {
3216 AVChapter *chapter = fmt_ctx->chapters[i];
3236 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
3238 int64_t size = fmt_ctx->pb ? avio_size(fmt_ctx->pb) : -1;
3242 print_str_validate("filename", fmt_ctx->url);
3243 print_int("nb_streams", fmt_ctx->nb_streams);
3244 print_int("nb_programs", fmt_ctx->nb_programs);
3245 print_str("format_name", fmt_ctx->iformat->name);
3247 if (fmt_ctx->iformat->long_name) print_str ("format_long_name", fmt_ctx->iformat->long_name);
3250 print_time("start_time", fmt_ctx->start_time, &AV_TIME_BASE_Q);
3251 print_time("duration", fmt_ctx->duration, &AV_TIME_BASE_Q);
3254 if (fmt_ctx->bit_rate > 0) print_val ("bit_rate", fmt_ctx->bit_rate, unit_bit_per_second_str);
3256 print_int("probe_score", fmt_ctx->probe_score);
3258 ret = show_tags(w, fmt_ctx->metadata, SECTION_ID_FORMAT_TAGS);
3283 AVFormatContext *fmt_ctx = NULL;
3287 fmt_ctx = avformat_alloc_context();
3288 if (!fmt_ctx) {
3297 if ((err = avformat_open_input(&fmt_ctx, filename,
3303 av_freep(&fmt_ctx->url);
3304 fmt_ctx->url = av_strdup(print_filename);
3306 ifile->fmt_ctx = fmt_ctx;
3313 AVDictionary **opts = setup_find_stream_info_opts(fmt_ctx, codec_opts);
3314 int orig_nb_streams = fmt_ctx->nb_streams;
3316 err = avformat_find_stream_info(fmt_ctx, opts);
3328 av_dump_format(fmt_ctx, 0, filename, 0);
3330 ifile->streams = av_calloc(fmt_ctx->nb_streams, sizeof(*ifile->streams));
3333 ifile->nb_streams = fmt_ctx->nb_streams;
3336 for (i = 0; i < fmt_ctx->nb_streams; i++) {
3338 AVStream *stream = fmt_ctx->streams[i];
3359 fmt_ctx, stream, codec);
3392 ifile->fmt_ctx = fmt_ctx;
3407 avformat_close_input(&ifile->fmt_ctx);
3426 nb_streams = ifile.fmt_ctx->nb_streams;
3427 REALLOCZ_ARRAY_STREAM(nb_streams_frames,0,ifile.fmt_ctx->nb_streams);
3428 REALLOCZ_ARRAY_STREAM(nb_streams_packets,0,ifile.fmt_ctx->nb_streams);
3429 REALLOCZ_ARRAY_STREAM(selected_streams,0,ifile.fmt_ctx->nb_streams);
3431 for (i = 0; i < ifile.fmt_ctx->nb_streams; i++) {
3433 ret = avformat_match_stream_specifier(ifile.fmt_ctx,
3434 ifile.fmt_ctx->streams[i],
3444 ifile.fmt_ctx->streams[i]->discard = AVDISCARD_ALL;
3482 if (ifile.fmt_ctx)