/third_party/ffmpeg/libavformat/ |
H A D | fifo.c | 39 AVFormatContext *avf; member 89 AVFormatContext *avf; member 125 AVFormatContext *avf = ctx->avf; in fifo_thread_write_header() local 126 FifoContext *fifo = avf->priv_data; in fifo_thread_write_header() 127 AVFormatContext *avf2 = fifo->avf; in fifo_thread_write_header() 135 ret = ff_format_output_open(avf2, avf->url, &format_options); in fifo_thread_write_header() 137 av_log(avf, AV_LOG_ERROR, "Error opening %s: %s\n", avf->url, in fifo_thread_write_header() 164 AVFormatContext *avf in fifo_thread_flush_output() local 171 next_duration(AVFormatContext *avf, AVPacket *pkt, int64_t *last_dts) next_duration() argument 182 AVFormatContext *avf = ctx->avf; fifo_thread_write_packet() local 225 AVFormatContext *avf = ctx->avf; fifo_thread_write_trailer() local 296 AVFormatContext *avf = ctx->avf; fifo_thread_process_recovery_failure() local 327 AVFormatContext *avf = ctx->avf; fifo_thread_attempt_recovery() local 398 AVFormatContext *avf = ctx->avf; fifo_thread_recover() local 424 AVFormatContext *avf = data; fifo_consumer_thread() local 483 fifo_mux_init(AVFormatContext *avf, const AVOutputFormat *oformat, const char *filename) fifo_mux_init() argument 520 fifo_init(AVFormatContext *avf) fifo_init() argument 559 fifo_write_header(AVFormatContext *avf) fifo_write_header() argument 574 fifo_write_packet(AVFormatContext *avf, AVPacket *pkt) fifo_write_packet() argument 618 fifo_write_trailer(AVFormatContext *avf) fifo_write_trailer() argument 657 fifo_deinit(AVFormatContext *avf) fifo_deinit() argument [all...] |
H A D | concatdec.c | 66 AVFormatContext *avf; member 113 static int add_file(AVFormatContext *avf, char *filename, ConcatFile **rfile, in add_file() argument 116 ConcatContext *cat = avf->priv_data; in add_file() 125 av_log(avf, AV_LOG_ERROR, "Unsafe file name '%s'\n", filename); in add_file() 135 url_len = strlen(avf->url) + strlen(filename) + 16; in add_file() 138 ff_make_absolute_url(url, url_len, avf->url, filename); in add_file() 199 static int detect_stream_specific(AVFormatContext *avf, int idx) in detect_stream_specific() argument 201 ConcatContext *cat = avf->priv_data; in detect_stream_specific() 202 AVStream *st = cat->avf->streams[idx]; in detect_stream_specific() 213 av_log(cat->avf, AV_LOG_INF in detect_stream_specific() 241 match_streams_one_to_one(AVFormatContext *avf) match_streams_one_to_one() argument 261 match_streams_exact_id(AVFormatContext *avf) match_streams_exact_id() argument 283 match_streams(AVFormatContext *avf) match_streams() argument 320 get_best_effort_duration(ConcatFile *file, AVFormatContext *avf) get_best_effort_duration() argument 333 open_file(AVFormatContext *avf, unsigned fileno) open_file() argument 392 concat_read_close(AVFormatContext *avf) concat_read_close() argument 458 concat_parse_script(AVFormatContext *avf) concat_parse_script() argument 647 concat_read_header(AVFormatContext *avf) concat_read_header() argument 690 open_next_file(AVFormatContext *avf) open_next_file() argument 704 filter_packet(AVFormatContext *avf, ConcatStream *cs, AVPacket *pkt) filter_packet() argument 738 concat_read_packet(AVFormatContext *avf, AVPacket *pkt) concat_read_packet() argument 822 try_seek(AVFormatContext *avf, int stream, int64_t min_ts, int64_t ts, int64_t max_ts, int flags) try_seek() argument 840 real_seek(AVFormatContext *avf, int stream, int64_t min_ts, int64_t ts, int64_t max_ts, int flags, AVFormatContext *cur_avf) real_seek() argument 890 concat_seek(AVFormatContext *avf, int stream, int64_t min_ts, int64_t ts, int64_t max_ts, int flags) concat_seek() argument [all...] |
H A D | tee.c | 40 AVFormatContext *avf; member 120 AVFormatContext *avf; in close_slave() local 125 avf = tee_slave->avf; in close_slave() 126 if (!avf) in close_slave() 130 ret = av_write_trailer(avf); in close_slave() 133 for (i = 0; i < avf->nb_streams; ++i) in close_slave() 139 ff_format_io_close(avf, &avf->pb); in close_slave() 140 avformat_free_context(avf); in close_slave() 145 close_slaves(AVFormatContext *avf) close_slaves() argument 156 open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave) open_slave() argument 430 tee_process_slave_failure(AVFormatContext *avf, unsigned slave_idx, int err_n) tee_process_slave_failure() argument 452 tee_write_header(AVFormatContext *avf) tee_write_header() argument 518 tee_write_trailer(AVFormatContext *avf) tee_write_trailer() argument 535 tee_write_packet(AVFormatContext *avf, AVPacket *pkt) tee_write_packet() argument [all...] |
H A D | srtenc.c | 37 static int srt_write_header(AVFormatContext *avf) in srt_write_header() argument 39 SRTContext *srt = avf->priv_data; in srt_write_header() 41 if (avf->nb_streams != 1 || in srt_write_header() 42 avf->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_SUBTITLE) { in srt_write_header() 43 av_log(avf, AV_LOG_ERROR, in srt_write_header() 47 if (avf->streams[0]->codecpar->codec_id != AV_CODEC_ID_TEXT && in srt_write_header() 48 avf->streams[0]->codecpar->codec_id != AV_CODEC_ID_SUBRIP) { in srt_write_header() 49 av_log(avf, AV_LOG_ERROR, in srt_write_header() 51 avcodec_get_name(avf->streams[0]->codecpar->codec_id)); in srt_write_header() 54 avpriv_set_pts_info(avf in srt_write_header() 59 srt_write_packet(AVFormatContext *avf, AVPacket *pkt) srt_write_packet() argument [all...] |
H A D | sccenc.c | 33 static int scc_write_header(AVFormatContext *avf) in scc_write_header() argument 35 SCCContext *scc = avf->priv_data; in scc_write_header() 37 if (avf->nb_streams != 1 || in scc_write_header() 38 avf->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_SUBTITLE) { in scc_write_header() 39 av_log(avf, AV_LOG_ERROR, in scc_write_header() 43 if (avf->streams[0]->codecpar->codec_id != AV_CODEC_ID_EIA_608) { in scc_write_header() 44 av_log(avf, AV_LOG_ERROR, in scc_write_header() 46 avcodec_get_name(avf->streams[0]->codecpar->codec_id)); in scc_write_header() 49 avpriv_set_pts_info(avf->streams[0], 64, 1, 1000); in scc_write_header() 50 avio_printf(avf in scc_write_header() 58 scc_write_packet(AVFormatContext *avf, AVPacket *pkt) scc_write_packet() argument [all...] |
H A D | ipmovie.c | 83 AVFormatContext *avf; member 128 av_log(s->avf, AV_LOG_ERROR, "Can not read audio packet before" in load_ipmovie_packet() 156 av_log(s->avf, AV_LOG_TRACE, "sending audio frame with pts %"PRId64" (%d audio frames)\n", in load_ipmovie_packet() 231 av_log(s->avf, AV_LOG_TRACE, "sending video frame with pts %"PRId64"\n", pkt->pts); in load_ipmovie_packet() 303 av_log(s->avf, AV_LOG_TRACE, "chunk type 0x%04X, 0x%04X bytes: ", chunk_type, chunk_size); in process_ipmovie_chunk() 308 av_log(s->avf, AV_LOG_TRACE, "initialize audio\n"); in process_ipmovie_chunk() 312 av_log(s->avf, AV_LOG_TRACE, "audio only\n"); in process_ipmovie_chunk() 316 av_log(s->avf, AV_LOG_TRACE, "initialize video\n"); in process_ipmovie_chunk() 320 av_log(s->avf, AV_LOG_TRACE, "video (and audio)\n"); in process_ipmovie_chunk() 324 av_log(s->avf, AV_LOG_TRAC in process_ipmovie_chunk() [all...] |
H A D | fifo_test.c | 59 static int failing_write_header(AVFormatContext *avf) in failing_write_header() argument 61 FailingMuxerContext *ctx = avf->priv_data; in failing_write_header() 65 static int failing_write_packet(AVFormatContext *avf, AVPacket *pkt) in failing_write_packet() argument 67 FailingMuxerContext *ctx = avf->priv_data; in failing_write_packet() 85 if (ff_check_interrupt(&avf->interrupt_callback)) in failing_write_packet() 100 static int failing_write_trailer(AVFormatContext *avf) in failing_write_trailer() argument 102 FailingMuxerContext *ctx = avf->priv_data; in failing_write_trailer() 106 static void failing_deinit(AVFormatContext *avf) in failing_deinit() argument 109 FailingMuxerContext *ctx = avf->priv_data; in failing_deinit()
|
H A D | tedcaptionsdec.c | 276 static av_cold int tedcaptions_read_header(AVFormatContext *avf) in tedcaptions_read_header() argument 278 TEDCaptionsDemuxer *tc = avf->priv_data; in tedcaptions_read_header() 279 AVStream *st = avformat_new_stream(avf, NULL); in tedcaptions_read_header() 288 ret = parse_file(avf->pb, &tc->subs); in tedcaptions_read_header() 291 av_log(avf, AV_LOG_ERROR, "Syntax error near offset %"PRId64".\n", in tedcaptions_read_header() 292 avio_tell(avf->pb)); in tedcaptions_read_header() 295 ff_subtitles_queue_finalize(avf, &tc->subs); in tedcaptions_read_header() 311 static int tedcaptions_read_packet(AVFormatContext *avf, AVPacket *packet) in tedcaptions_read_packet() argument 313 TEDCaptionsDemuxer *tc = avf->priv_data; in tedcaptions_read_packet() 318 static int tedcaptions_read_close(AVFormatContext *avf) in tedcaptions_read_close() argument 349 tedcaptions_read_seek(AVFormatContext *avf, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags) tedcaptions_read_seek() argument [all...] |
H A D | microdvdenc.c | 46 static int microdvd_write_packet(AVFormatContext *avf, AVPacket *pkt) in microdvd_write_packet() argument 48 avio_printf(avf->pb, "{%"PRId64"}", pkt->pts); in microdvd_write_packet() 50 avio_write(avf->pb, "{}", 2); in microdvd_write_packet() 52 avio_printf(avf->pb, "{%"PRId64"}", pkt->pts + pkt->duration); in microdvd_write_packet() 53 avio_write(avf->pb, pkt->data, pkt->size); in microdvd_write_packet() 54 avio_w8(avf->pb, '\n'); in microdvd_write_packet()
|
H A D | webm_chunk.c | 47 AVFormatContext *avf; member 75 ret = avformat_alloc_output_context2(&wc->avf, oformat, NULL, NULL); in webm_chunk_init() 78 oc = wc->avf; in webm_chunk_init() 153 AVFormatContext *oc = wc->avf; in webm_chunk_write_header() 167 AVFormatContext *oc = wc->avf; in chunk_start() 180 AVFormatContext *oc = wc->avf; in chunk_end() 216 AVFormatContext *oc = wc->avf; in webm_chunk_write_packet() 248 AVFormatContext *oc = wc->avf; in webm_chunk_write_trailer() 266 if (!wc->avf) in webm_chunk_deinit() 270 ffio_free_dyn_buf(&wc->avf in webm_chunk_deinit() [all...] |
H A D | oggparseopus.c | 38 static int opus_header(AVFormatContext *avf, int idx) in opus_header() argument 40 struct ogg *ogg = avf->priv_data; in opus_header() 42 AVStream *st = avf->streams[idx]; in opus_header() 83 ff_vorbis_stream_comment(avf, st, packet + 8, os->psize - 8); in opus_header() 111 static int opus_packet(AVFormatContext *avf, int idx) in opus_packet() argument 113 struct ogg *ogg = avf->priv_data; in opus_packet() 115 AVStream *st = avf->streams[idx]; in opus_packet() 123 av_log(avf, AV_LOG_ERROR, "Unsupported huge granule pos %"PRId64 "\n", os->granule); in opus_packet() 172 av_log(avf, AV_LOG_DEBUG, in opus_packet()
|
H A D | segment.c | 77 AVFormatContext *avf; member 84 int is_nullctx; ///< whether avf->pb is a nullctx 152 ret = avformat_alloc_output_context2(&seg->avf, seg->oformat, NULL, NULL); in segment_mux_init() 155 oc = seg->avf; in segment_mux_init() 191 AVFormatContext *oc = seg->avf; in set_segment_filename() 235 AVFormatContext *oc = seg->avf; in segment_start() 240 seg->avf = NULL; in segment_start() 243 oc = seg->avf; in segment_start() 350 AVFormatContext *oc = seg->avf; in segment_end() 411 seg->avf in segment_end() [all...] |
H A D | sbgdec.c | 1410 static av_cold int sbg_read_header(AVFormatContext *avf) in sbg_read_header() argument 1412 struct sbg_demuxer *sbg = avf->priv_data; in sbg_read_header() 1420 r = read_whole_file(avf->pb, sbg->max_file_size, &buf); in sbg_read_header() 1423 r = parse_script(avf, buf, r, &script); in sbg_read_header() 1433 av_log(avf, AV_LOG_WARNING, "Mix feature not implemented: " in sbg_read_header() 1435 r = expand_script(avf, &script); in sbg_read_header() 1439 r = generate_intervals(avf, &script, sbg->sample_rate, &inter); in sbg_read_header() 1448 st = avformat_new_stream(avf, NULL); in sbg_read_header() 1487 static int sbg_read_packet(AVFormatContext *avf, AVPacket *packet) in sbg_read_packet() argument 1492 ts = ffstream(avf in sbg_read_packet() 1508 sbg_read_seek2(AVFormatContext *avf, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags) sbg_read_seek2() argument 1519 sbg_read_seek(AVFormatContext *avf, int stream_index, int64_t ts, int flags) sbg_read_seek() argument [all...] |
H A D | hlsenc.c | 131 AVFormatContext *avf; member 534 AVFormatContext *ctx = vs->avf; in flush_dynbuf() 565 static int hls_delete_file(HLSContext *hls, AVFormatContext *avf, in hls_delete_file() argument 572 set_http_options(avf, &opt, hls); in hls_delete_file() 574 ret = avf->io_open(avf, &out, path, AVIO_FLAG_WRITE, &opt); in hls_delete_file() 578 ff_format_io_close(avf, &out); in hls_delete_file() 628 dirname_r = hls->segment_filename ? av_strdup(hls->segment_filename): av_strdup(vs->avf->url); in hls_delete_old_segments() 663 if (ret = hls_delete_file(hls, vs->avf, path.str, proto)) in hls_delete_old_segments() 853 ret = avformat_alloc_output_context2(&vs->avf, v in hls_mux_init() [all...] |
H A D | nutdec.c | 195 AVFormatContext *s = nut->avf; in decode_main_header() 381 AVFormatContext *s = nut->avf; in decode_stream_header() 488 static void set_disposition_bits(AVFormatContext *avf, char *value, in set_disposition_bits() argument 497 av_log(avf, AV_LOG_INFO, "unknown disposition type '%s'\n", value); in set_disposition_bits() 498 for (i = 0; i < avf->nb_streams; ++i) in set_disposition_bits() 500 avf->streams[i]->disposition |= flag; in set_disposition_bits() 505 AVFormatContext *s = nut->avf; in decode_info_header() 628 AVFormatContext *s = nut->avf; in decode_syncpoint() 672 AVFormatContext *s = nut->avf; in find_duration() 684 AVFormatContext *s = nut->avf; in find_and_decode_index() [all...] |
H A D | nutenc.c | 380 put_v(bc, nut->avf->nb_streams); in write_mainheader() 518 AVFormatContext *s = nut->avf; in write_globalinfo() 545 AVFormatContext *s= nut->avf; in write_streaminfo() 591 AVChapter *ch = nut->avf->chapters[id]; in write_chapter() 631 for (i=0; i<nut->avf->nb_streams; i++) { in write_index() 640 av_log(nut->avf, AV_LOG_WARNING, "Multiple keyframes with same PTS\n"); in write_index() 680 for (i = 0; i < nut->avf->nb_streams; i++) { in write_headers() 681 ret = write_streamheader(avctx, dyn_bc, nut->avf->streams[i], i); in write_headers() 691 for (i = 0; i < nut->avf->nb_streams; i++) { in write_headers() 700 for (i = 0; i < nut->avf in write_headers() [all...] |
H A D | nut.h | 93 AVFormatContext *avf; member
|
H A D | nut.c | 258 for (i = 0; i < nut->avf->nb_streams; i++) in ff_nut_reset_ts()
|
/third_party/ffmpeg/tools/ |
H A D | seek_print.c | 48 AVFormatContext *avf = NULL; in main() local 68 if ((ret = avformat_open_input(&avf, filename, NULL, NULL)) < 0) { in main() 72 if ((ret = avformat_find_stream_info(avf, NULL)) < 0) { in main() 80 ret = av_read_frame(avf, &packet); in main() 84 AVRational *tb = &avf->streams[packet.stream_index]->time_base; in main() 93 ret = avformat_seek_file(avf, stream, min_ts, ts, max_ts, flags); in main() 101 avformat_close_input(&avf); in main()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_minterpolate.c | 161 AVFrame *avf; member 738 av_frame_free(&mi_ctx->frames[0].avf); in inject_frame() 742 mi_ctx->frames[NB_FRAMES - 1].avf = avf_in; in inject_frame() 753 if (mi_ctx->frames[1].avf) { in inject_frame() 755 mi_ctx->me_ctx.linesize = mi_ctx->frames[2].avf->linesize[0]; in inject_frame() 756 mi_ctx->me_ctx.data_cur = mi_ctx->frames[2].avf->data[0]; in inject_frame() 757 mi_ctx->me_ctx.data_ref = mi_ctx->frames[dir ? 3 : 1].avf->data[0]; in inject_frame() 769 if (!mi_ctx->frames[0].avf) in inject_frame() 772 mi_ctx->me_ctx.linesize = mi_ctx->frames[0].avf->linesize[0]; in inject_frame() 773 mi_ctx->me_ctx.data_cur = mi_ctx->frames[1].avf in inject_frame() [all...] |
H A D | src_movie.c | 105 static AVStream *find_stream(void *log, AVFormatContext *avf, const char *spec) in find_stream() argument 115 ret = av_find_best_stream(avf, type, stream_id, -1, NULL, 0); in find_stream() 121 return avf->streams[ret]; in find_stream() 123 for (i = 0; i < avf->nb_streams; i++) { in find_stream() 124 ret = avformat_match_stream_specifier(avf, avf->streams[i], spec); in find_stream() 132 if (avf->streams[i]->discard != AVDISCARD_ALL) { in find_stream() 141 found = avf->streams[i]; in find_stream()
|
/third_party/node/deps/v8/src/parsing/ |
H A D | preparser.cc | 28 AstValueFactory* avf) { in GetIdentifierHelper() 43 if (string == avf->constructor_string()) { in GetIdentifierHelper() 46 if (string == avf->name_string()) { in GetIdentifierHelper() 52 if (string == avf->eval_string()) { in GetIdentifierHelper() 55 if (string == avf->arguments_string()) { in GetIdentifierHelper() 26 GetIdentifierHelper(Scanner* scanner, const AstRawString* string, AstValueFactory* avf) GetIdentifierHelper() argument
|
H A D | parser-base.h | 6495 AstValueFactory* avf = ast_value_factory(); in CheckClassMethodName() local 6497 if (impl()->IdentifierEquals(name, avf->private_constructor_string())) { in CheckClassMethodName() 6501 if (impl()->IdentifierEquals(name, avf->prototype_string())) { in CheckClassMethodName() 6505 } else if (impl()->IdentifierEquals(name, avf->constructor_string())) { in CheckClassMethodName() 6526 AstValueFactory* avf = ast_value_factory(); in CheckClassFieldName() local 6527 if (is_static && impl()->IdentifierEquals(name, avf->prototype_string())) { in CheckClassFieldName() 6532 if (impl()->IdentifierEquals(name, avf->constructor_string()) || in CheckClassFieldName() 6533 impl()->IdentifierEquals(name, avf->private_constructor_string())) { in CheckClassFieldName()
|
/third_party/ffmpeg/fftools/ |
H A D | ffmpeg_filter.c | 662 AVFormatContext *avf = input_files[ist->file_index]->ctx; in sub2video_prepare() local 671 for (i = 0; i < avf->nb_streams; i++) { in sub2video_prepare() 672 if (avf->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) { in sub2video_prepare() 673 w = FFMAX(w, avf->streams[i]->codecpar->width); in sub2video_prepare() 674 h = FFMAX(h, avf->streams[i]->codecpar->height); in sub2video_prepare() 681 av_log(avf, AV_LOG_INFO, "sub2video: using %dx%d canvas\n", w, h); in sub2video_prepare()
|
/third_party/ffmpeg/tests/fate/ |
H A D | filter-video.mak | 680 FATE_METADATA_FILTER-$(call ALLYES, $(AVF_PHASE_METER_DEPS)) += fate-filter-metadata-avf-aphase-meter-mono 681 fate-filter-metadata-avf-aphase-meter-mono: CMD = run $(FILTER_METADATA_COMMAND) sine="frequency=1000:sample_rate=48000:duration=1,aphasemeter=video=0" 683 FATE_METADATA_FILTER-$(call ALLYES, $(AVF_PHASE_METER_DEPS) FILE_PROTOCOL) += fate-filter-metadata-avf-aphase-meter-out-of-phase 684 fate-filter-metadata-avf-aphase-meter-out-of-phase: SRC = $(TARGET_SAMPLES)/filter/out-of-phase-1000hz.flac 685 fate-filter-metadata-avf-aphase-meter-out-of-phase: CMD = run $(FILTER_METADATA_COMMAND) "amovie='$(SRC)',aphasemeter=video=0"
|