• Home
  • Raw
  • Download

Lines Matching refs:oformat

91 int avformat_alloc_output_context2(AVFormatContext **avctx, const AVOutputFormat *oformat,  in avformat_alloc_output_context2()  argument
101 if (!oformat) { in avformat_alloc_output_context2()
103 oformat = av_guess_format(format, NULL, NULL); in avformat_alloc_output_context2()
104 if (!oformat) { in avformat_alloc_output_context2()
110 oformat = av_guess_format(NULL, filename, NULL); in avformat_alloc_output_context2()
111 if (!oformat) { in avformat_alloc_output_context2()
120 s->oformat = oformat; in avformat_alloc_output_context2()
121 if (s->oformat->priv_data_size > 0) { in avformat_alloc_output_context2()
122 s->priv_data = av_mallocz(s->oformat->priv_data_size); in avformat_alloc_output_context2()
125 if (s->oformat->priv_class) { in avformat_alloc_output_context2()
126 *(const AVClass**)s->priv_data= s->oformat->priv_class; in avformat_alloc_output_context2()
159 for (int n = 0; s->oformat->codec_tag[n]; n++) { in validate_codec_tag()
160 avctag = s->oformat->codec_tag[n]; in validate_codec_tag()
184 const AVOutputFormat *of = s->oformat; in init_muxer()
193 …if (s->priv_data && s->oformat->priv_class && *(const AVClass**)s->priv_data==s->oformat->priv_cla… in init_muxer()
295 const uint32_t otag = av_codec_get_tag(s->oformat->codec_tag, par->codec_id); in init_muxer()
345 if (s->oformat->init) { in init_muxer()
346 if ((ret = s->oformat->init(s)) < 0) { in init_muxer()
347 if (s->oformat->deinit) in init_muxer()
348 s->oformat->deinit(s); in init_muxer()
398 if (s->oformat->flags & (AVFMT_TS_NEGATIVE | AVFMT_NOTIMESTAMPS)) { in init_pts()
414 else if (s->flush_packets && !(s->oformat->flags & AVFMT_NOFILE)) in flush_if_needed()
422 if (s->oformat && s->oformat->deinit && si->initialized) in deinit_muxer()
423 s->oformat->deinit(s); in deinit_muxer()
439 if (s->oformat->init && ret) { in avformat_init_output()
460 if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb) in avformat_write_header()
462 if (s->oformat->write_header) { in avformat_write_header()
463 ret = s->oformat->write_header(s); in avformat_write_header()
470 if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb) in avformat_write_header()
499 !(s->oformat->flags & AVFMT_NOTIMESTAMPS) && in compute_muxer_pkt_fields()
540 ((!(s->oformat->flags & AVFMT_TS_NONSTRICT) && in compute_muxer_pkt_fields()
723 ret = s->oformat->write_uncoded_frame(s, pkt->stream_index, frame, 0); in write_packet()
725 ret = s->oformat->write_packet(s, pkt); in write_packet()
761 if (!(s->oformat->flags & AVFMT_NOTIMESTAMPS)) { in prepare_input_packet()
782 ((!(s->oformat->flags & AVFMT_TS_NONSTRICT) && sti->cur_dts >= pkt->dts) || in prepare_input_packet()
1076 if (s->oformat->check_bitstream) { in check_bitstream()
1078 if ((ret = s->oformat->check_bitstream(s, &sti->pub, pkt)) < 0) in check_bitstream()
1117 … if ((ret = compute_muxer_pkt_fields(s, st, pkt)) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS)) in write_packet_common()
1122 if (pkt->dts == AV_NOPTS_VALUE && !(s->oformat->flags & AVFMT_NOTIMESTAMPS)) in write_packet_common()
1195 if (s->oformat->flags & AVFMT_ALLOW_FLUSH) { in av_write_frame()
1196 ret = s->oformat->write_packet(s, NULL); in av_write_frame()
1271 if (s->oformat->write_trailer) { in av_write_trailer()
1272 if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb) in av_write_trailer()
1275 ret = s->oformat->write_trailer(s); in av_write_trailer()
1277 s->oformat->write_trailer(s); in av_write_trailer()
1291 if (s->oformat->priv_class) in av_write_trailer()
1301 if (!s->oformat || !s->oformat->get_output_timestamp) in av_get_output_timestamp()
1303 s->oformat->get_output_timestamp(s, stream, dts, wall); in av_get_output_timestamp()
1392 av_assert0(s->oformat); in write_uncoded_frame_internal()
1393 if (!s->oformat->write_uncoded_frame) { in write_uncoded_frame_internal()
1443 av_assert0(s->oformat); in av_write_uncoded_frame_query()
1444 if (!s->oformat->write_uncoded_frame) in av_write_uncoded_frame_query()
1446 return s->oformat->write_uncoded_frame(s, stream_index, NULL, in av_write_uncoded_frame_query()