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
74 if ((ret = avformat_open_input(&ifmt_ctx, in_filename, 0, 0)) < 0) { in main()
79 if ((ret = avformat_find_stream_info(ifmt_ctx, 0)) < 0) { in main()
84 av_dump_format(ifmt_ctx, 0, in_filename, 0); in main()
93 stream_mapping_size = ifmt_ctx->nb_streams; in main()
102 for (i = 0; i < ifmt_ctx->nb_streams; i++) { in main()
104 AVStream *in_stream = ifmt_ctx->streams[i]; in main()
149 ret = av_read_frame(ifmt_ctx, pkt); in main()
153 in_stream = ifmt_ctx->streams[pkt->stream_index]; in main()
162 log_packet(ifmt_ctx, pkt, "in"); in main()
[all …]
Dtranscoding.c39 static AVFormatContext *ifmt_ctx; variable
64 ifmt_ctx = NULL; in open_input_file()
65 if ((ret = avformat_open_input(&ifmt_ctx, filename, NULL, NULL)) < 0) { in open_input_file()
70 if ((ret = avformat_find_stream_info(ifmt_ctx, NULL)) < 0) { in open_input_file()
75 stream_ctx = av_calloc(ifmt_ctx->nb_streams, sizeof(*stream_ctx)); in open_input_file()
79 for (i = 0; i < ifmt_ctx->nb_streams; i++) { in open_input_file()
80 AVStream *stream = ifmt_ctx->streams[i]; in open_input_file()
102 codec_ctx->framerate = av_guess_frame_rate(ifmt_ctx, stream, NULL); in open_input_file()
117 av_dump_format(ifmt_ctx, 0, filename, 0); in open_input_file()
138 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()