• Home
  • Raw
  • Download

Lines Matching refs:oc

123 static void add_stream(OutputStream *ost, AVFormatContext *oc,  in add_stream()  argument
138 ost->st = avformat_new_stream(oc, NULL); in add_stream()
143 ost->st->id = oc->nb_streams-1; in add_stream()
210 if (oc->oformat->flags & AVFMT_GLOBALHEADER) in add_stream()
245 static void open_audio(AVFormatContext *oc, AVCodec *codec, OutputStream *ost, AVDictionary *opt_ar… in open_audio() argument
339 static int write_audio_frame(AVFormatContext *oc, OutputStream *ost) in write_audio_frame() argument
379 return write_frame(oc, c, ost->st, frame); in write_audio_frame()
408 static void open_video(AVFormatContext *oc, AVCodec *codec, OutputStream *ost, AVDictionary *opt_ar… in open_video() argument
519 static int write_video_frame(AVFormatContext *oc, OutputStream *ost) in write_video_frame() argument
521 return write_frame(oc, ost->enc, ost->st, get_video_frame(ost)); in write_video_frame()
524 static void close_stream(AVFormatContext *oc, OutputStream *ost) in close_stream() argument
541 AVFormatContext *oc; in main() local
567 avformat_alloc_output_context2(&oc, NULL, NULL, filename); in main()
568 if (!oc) { in main()
570 avformat_alloc_output_context2(&oc, NULL, "mpeg", filename); in main()
572 if (!oc) in main()
575 fmt = oc->oformat; in main()
580 add_stream(&video_st, oc, &video_codec, fmt->video_codec); in main()
585 add_stream(&audio_st, oc, &audio_codec, fmt->audio_codec); in main()
593 open_video(oc, video_codec, &video_st, opt); in main()
596 open_audio(oc, audio_codec, &audio_st, opt); in main()
598 av_dump_format(oc, 0, filename, 1); in main()
602 ret = avio_open(&oc->pb, filename, AVIO_FLAG_WRITE); in main()
611 ret = avformat_write_header(oc, &opt); in main()
623 encode_video = !write_video_frame(oc, &video_st); in main()
625 encode_audio = !write_audio_frame(oc, &audio_st); in main()
633 av_write_trailer(oc); in main()
637 close_stream(oc, &video_st); in main()
639 close_stream(oc, &audio_st); in main()
643 avio_closep(&oc->pb); in main()
646 avformat_free_context(oc); in main()