Home
last modified time | relevance | path

Searched refs:ifmt_ctx (Results 1 – 3 of 3) sorted by relevance

/third_party/ffmpeg/doc/examples/
Dremuxing.c49 AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL; in main() local
68 if ((ret = avformat_open_input(&ifmt_ctx, in_filename, 0, 0)) < 0) { in main()
73 if ((ret = avformat_find_stream_info(ifmt_ctx, 0)) < 0) { in main()
78 av_dump_format(ifmt_ctx, 0, in_filename, 0); in main()
87 stream_mapping_size = ifmt_ctx->nb_streams; in main()
96 for (i = 0; i < ifmt_ctx->nb_streams; i++) { in main()
98 AVStream *in_stream = ifmt_ctx->streams[i]; in main()
143 ret = av_read_frame(ifmt_ctx, &pkt); in main()
147 in_stream = ifmt_ctx->streams[pkt.stream_index]; in main()
156 log_packet(ifmt_ctx, &pkt, "in"); in main()
[all …]
Dtranscoding.c38 static AVFormatContext *ifmt_ctx; variable
63 ifmt_ctx = NULL; in open_input_file()
64 if ((ret = avformat_open_input(&ifmt_ctx, filename, NULL, NULL)) < 0) { in open_input_file()
69 if ((ret = avformat_find_stream_info(ifmt_ctx, NULL)) < 0) { in open_input_file()
74 stream_ctx = av_mallocz_array(ifmt_ctx->nb_streams, sizeof(*stream_ctx)); in open_input_file()
78 for (i = 0; i < ifmt_ctx->nb_streams; i++) { in open_input_file()
79 AVStream *stream = ifmt_ctx->streams[i]; in open_input_file()
101 codec_ctx->framerate = av_guess_frame_rate(ifmt_ctx, stream, NULL); in open_input_file()
116 av_dump_format(ifmt_ctx, 0, filename, 0); in open_input_file()
137 for (i = 0; i < ifmt_ctx->nb_streams; i++) { in open_output_file()
[all …]
Dvaapi_transcode.c41 static AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL; variable
68 if ((ret = avformat_open_input(&ifmt_ctx, filename, NULL, NULL)) < 0) { in open_input_file()
74 if ((ret = avformat_find_stream_info(ifmt_ctx, NULL)) < 0) { in open_input_file()
80 ret = av_find_best_stream(ifmt_ctx, AVMEDIA_TYPE_VIDEO, -1, -1, &decoder, 0); in open_input_file()
91 video = ifmt_ctx->streams[video_stream]; in open_input_file()
128 av_packet_rescale_ts(enc_pkt, ifmt_ctx->streams[video_stream]->time_base, in encode_write()
281 if ((ret = av_read_frame(ifmt_ctx, dec_pkt)) < 0) in main()
301 avformat_close_input(&ifmt_ctx); in main()