/third_party/ffmpeg/libavformat/ |
D | concatdec.c | 62 AVFormatContext *avf; member 109 static int add_file(AVFormatContext *avf, char *filename, ConcatFile **rfile, in add_file() argument 112 ConcatContext *cat = avf->priv_data; in add_file() 121 av_log(avf, AV_LOG_ERROR, "Unsafe file name '%s'\n", filename); in add_file() 131 url_len = strlen(avf->url) + strlen(filename) + 16; in add_file() 134 ff_make_absolute_url(url, url_len, avf->url, filename); in add_file() 194 static int detect_stream_specific(AVFormatContext *avf, int idx) in detect_stream_specific() argument 196 ConcatContext *cat = avf->priv_data; in detect_stream_specific() 197 AVStream *st = cat->avf->streams[idx]; in detect_stream_specific() 208 av_log(cat->avf, AV_LOG_INFO, in detect_stream_specific() [all …]
|
D | fifo.c | 38 AVFormatContext *avf; member 88 AVFormatContext *avf; member 124 AVFormatContext *avf = ctx->avf; in fifo_thread_write_header() local 125 FifoContext *fifo = avf->priv_data; in fifo_thread_write_header() 126 AVFormatContext *avf2 = fifo->avf; in fifo_thread_write_header() 134 ret = ff_format_output_open(avf2, avf->url, &format_options); in fifo_thread_write_header() 136 av_log(avf, AV_LOG_ERROR, "Error opening %s: %s\n", avf->url, in fifo_thread_write_header() 163 AVFormatContext *avf = ctx->avf; in fifo_thread_flush_output() local 164 FifoContext *fifo = avf->priv_data; in fifo_thread_flush_output() 165 AVFormatContext *avf2 = fifo->avf; in fifo_thread_flush_output() [all …]
|
D | tee.c | 39 AVFormatContext *avf; member 123 AVFormatContext *avf; in close_slave() local 127 avf = tee_slave->avf; in close_slave() 128 if (!avf) in close_slave() 132 ret = av_write_trailer(avf); in close_slave() 135 for (i = 0; i < avf->nb_streams; ++i) in close_slave() 141 ff_format_io_close(avf, &avf->pb); in close_slave() 142 avformat_free_context(avf); in close_slave() 143 tee_slave->avf = NULL; in close_slave() 147 static void close_slaves(AVFormatContext *avf) in close_slaves() argument [all …]
|
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->streams[0], 64, 1, 1000); in srt_write_header() [all …]
|
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->pb, "Scenarist_SCC V1.0\n"); in scc_write_header() [all …]
|
D | ipmovie.c | 81 AVFormatContext *avf; member 126 av_log(s->avf, AV_LOG_ERROR, "Can not read audio packet before" in load_ipmovie_packet() 154 av_log(s->avf, AV_LOG_TRACE, "sending audio frame with pts %"PRId64" (%d audio frames)\n", in load_ipmovie_packet() 232 av_log(s->avf, AV_LOG_TRACE, "sending video frame with pts %"PRId64"\n", pkt->pts); in load_ipmovie_packet() 306 av_log(s->avf, AV_LOG_TRACE, "chunk type 0x%04X, 0x%04X bytes: ", chunk_type, chunk_size); in process_ipmovie_chunk() 311 av_log(s->avf, AV_LOG_TRACE, "initialize audio\n"); in process_ipmovie_chunk() 315 av_log(s->avf, AV_LOG_TRACE, "audio only\n"); in process_ipmovie_chunk() 319 av_log(s->avf, AV_LOG_TRACE, "initialize video\n"); in process_ipmovie_chunk() 323 av_log(s->avf, AV_LOG_TRACE, "video (and audio)\n"); in process_ipmovie_chunk() 327 av_log(s->avf, AV_LOG_TRACE, "shutdown\n"); in process_ipmovie_chunk() [all …]
|
D | fifo_test.c | 60 static int failing_write_header(AVFormatContext *avf) in failing_write_header() argument 62 FailingMuxerContext *ctx = avf->priv_data; in failing_write_header() 66 static int failing_write_packet(AVFormatContext *avf, AVPacket *pkt) in failing_write_packet() argument 68 FailingMuxerContext *ctx = avf->priv_data; in failing_write_packet() 86 if (ff_check_interrupt(&avf->interrupt_callback)) in failing_write_packet() 101 static int failing_write_trailer(AVFormatContext *avf) in failing_write_trailer() argument 103 FailingMuxerContext *ctx = avf->priv_data; in failing_write_trailer() 107 static void failing_deinit(AVFormatContext *avf) in failing_deinit() argument 110 FailingMuxerContext *ctx = avf->priv_data; in failing_deinit()
|
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()
|
D | webm_chunk.c | 46 AVFormatContext *avf; member 74 ret = avformat_alloc_output_context2(&wc->avf, oformat, NULL, NULL); in webm_chunk_init() 77 oc = wc->avf; in webm_chunk_init() 158 AVFormatContext *oc = wc->avf; in webm_chunk_write_header() 172 AVFormatContext *oc = wc->avf; in chunk_start() 185 AVFormatContext *oc = wc->avf; in chunk_end() 221 AVFormatContext *oc = wc->avf; in webm_chunk_write_packet() 253 AVFormatContext *oc = wc->avf; in webm_chunk_write_trailer() 271 if (!wc->avf) in webm_chunk_deinit() 275 ffio_free_dyn_buf(&wc->avf->pb); in webm_chunk_deinit() [all …]
|
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() 286 ret = parse_file(avf->pb, &tc->subs); in tedcaptions_read_header() 289 av_log(avf, AV_LOG_ERROR, "Syntax error near offset %"PRId64".\n", in tedcaptions_read_header() 290 avio_tell(avf->pb)); in tedcaptions_read_header() 294 ff_subtitles_queue_finalize(avf, &tc->subs); in tedcaptions_read_header() 310 static int tedcaptions_read_packet(AVFormatContext *avf, AVPacket *packet) in tedcaptions_read_packet() argument 312 TEDCaptionsDemuxer *tc = avf->priv_data; in tedcaptions_read_packet() 317 static int tedcaptions_read_close(AVFormatContext *avf) in tedcaptions_read_close() argument [all …]
|
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()
|
D | segment.c | 76 AVFormatContext *avf; member 151 ret = avformat_alloc_output_context2(&seg->avf, seg->oformat, NULL, NULL); in segment_mux_init() 154 oc = seg->avf; in segment_mux_init() 198 AVFormatContext *oc = seg->avf; in set_segment_filename() 242 AVFormatContext *oc = seg->avf; in segment_start() 247 seg->avf = NULL; in segment_start() 250 oc = seg->avf; in segment_start() 357 AVFormatContext *oc = seg->avf; in segment_end() 418 seg->avf->url, seg->segment_count); in segment_end() 658 if (seg->avf) { in seg_free() [all …]
|
D | sbgdec.c | 1404 static av_cold int sbg_read_header(AVFormatContext *avf) in sbg_read_header() argument 1406 struct sbg_demuxer *sbg = avf->priv_data; in sbg_read_header() 1413 r = read_whole_file(avf->pb, sbg->max_file_size, &buf); in sbg_read_header() 1416 r = parse_script(avf, buf, r, &script); in sbg_read_header() 1426 av_log(avf, AV_LOG_WARNING, "Mix feature not implemented: " in sbg_read_header() 1428 r = expand_script(avf, &script); in sbg_read_header() 1432 r = generate_intervals(avf, &script, sbg->sample_rate, &inter); in sbg_read_header() 1441 st = avformat_new_stream(avf, NULL); in sbg_read_header() 1473 static int sbg_read_packet(AVFormatContext *avf, AVPacket *packet) in sbg_read_packet() argument 1478 ts = avf->streams[0]->cur_dts; in sbg_read_packet() [all …]
|
D | nutdec.c | 194 AVFormatContext *s = nut->avf; in decode_main_header() 373 AVFormatContext *s = nut->avf; in decode_stream_header() 480 static void set_disposition_bits(AVFormatContext *avf, char *value, in set_disposition_bits() argument 489 av_log(avf, AV_LOG_INFO, "unknown disposition type '%s'\n", value); in set_disposition_bits() 490 for (i = 0; i < avf->nb_streams; ++i) in set_disposition_bits() 492 avf->streams[i]->disposition |= flag; in set_disposition_bits() 497 AVFormatContext *s = nut->avf; in decode_info_header() 620 AVFormatContext *s = nut->avf; in decode_syncpoint() 664 AVFormatContext *s = nut->avf; in find_duration() 676 AVFormatContext *s = nut->avf; in find_and_decode_index() [all …]
|
D | hlsenc.c | 131 AVFormatContext *avf; member 538 AVFormatContext *ctx = vs->avf; in flush_dynbuf() 569 static int hls_delete_file(HLSContext *hls, AVFormatContext *avf, in hls_delete_file() argument 577 ret = avf->io_open(avf, &out, path, AVIO_FLAG_WRITE, &opt); in hls_delete_file() 581 ff_format_io_close(avf, &out); in hls_delete_file() 631 … dirname_r = hls->segment_filename ? av_strdup(hls->segment_filename): av_strdup(vs->avf->url); in hls_delete_old_segments() 666 if (ret = hls_delete_file(hls, vs->avf, path.str, proto)) in hls_delete_old_segments() 857 ret = avformat_alloc_output_context2(&vs->avf, vs->oformat, NULL, NULL); in hls_mux_init() 860 oc = vs->avf; in hls_mux_init() 981 ff_format_set_url(vs->avf, new_url); in sls_flags_filename_process() [all …]
|
D | nutenc.c | 358 put_v(bc, nut->avf->nb_streams); in write_mainheader() 496 AVFormatContext *s = nut->avf; in write_globalinfo() 523 AVFormatContext *s= nut->avf; in write_streaminfo() 569 AVChapter *ch = nut->avf->chapters[id]; in write_chapter() 609 for (i=0; i<nut->avf->nb_streams; i++) { in write_index() 618 av_log(nut->avf, AV_LOG_WARNING, "Multiple keyframes with same PTS\n"); in write_index() 658 for (i = 0; i < nut->avf->nb_streams; i++) { in write_headers() 659 ret = write_streamheader(avctx, dyn_bc, nut->avf->streams[i], i); in write_headers() 669 for (i = 0; i < nut->avf->nb_streams; i++) { in write_headers() 678 for (i = 0; i < nut->avf->nb_chapters; i++) { in write_headers() [all …]
|
D | nut.h | 93 AVFormatContext *avf; member
|
D | nut.c | 258 for (i = 0; i < nut->avf->nb_streams; i++) in ff_nut_reset_ts()
|
/third_party/ffmpeg/tools/ |
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/ |
D | vf_minterpolate.c | 162 AVFrame *avf; member 747 av_frame_free(&mi_ctx->frames[0].avf); in inject_frame() 751 mi_ctx->frames[NB_FRAMES - 1].avf = avf_in; in inject_frame() 762 if (mi_ctx->frames[1].avf) { in inject_frame() 764 mi_ctx->me_ctx.linesize = mi_ctx->frames[2].avf->linesize[0]; in inject_frame() 765 mi_ctx->me_ctx.data_cur = mi_ctx->frames[2].avf->data[0]; in inject_frame() 766 mi_ctx->me_ctx.data_ref = mi_ctx->frames[dir ? 3 : 1].avf->data[0]; in inject_frame() 778 if (!mi_ctx->frames[0].avf) in inject_frame() 781 mi_ctx->me_ctx.linesize = mi_ctx->frames[0].avf->linesize[0]; in inject_frame() 782 mi_ctx->me_ctx.data_cur = mi_ctx->frames[1].avf->data[0]; in inject_frame() [all …]
|
D | src_movie.c | 99 static AVStream *find_stream(void *log, AVFormatContext *avf, const char *spec) in find_stream() argument 109 ret = av_find_best_stream(avf, type, stream_id, -1, NULL, 0); in find_stream() 115 return avf->streams[ret]; in find_stream() 117 for (i = 0; i < avf->nb_streams; i++) { in find_stream() 118 ret = avformat_match_stream_specifier(avf, avf->streams[i], spec); in find_stream() 126 if (avf->streams[i]->discard != AVDISCARD_ALL) { in find_stream() 135 found = avf->streams[i]; in find_stream()
|
/third_party/gstreamer/gstplugins_bad/sys/applemedia/ |
D | avfdeviceprovider.m | 66 GstStructure *props = gst_structure_new_empty ("avf-proplist"); 72 "device.api", G_TYPE_STRING, "avf", 73 "avf.unique_id", G_TYPE_STRING, unique_id, 74 "avf.model_id", G_TYPE_STRING, model_id, 75 "avf.has_flash", G_TYPE_BOOLEAN, [device hasFlash], 76 "avf.has_torch", G_TYPE_BOOLEAN, [device hasTorch], 82 "avf.manufacturer", G_TYPE_STRING, manufacturer,
|
/third_party/ffmpeg/fftools/ |
D | ffmpeg_filter.c | 680 AVFormatContext *avf = input_files[ist->file_index]->ctx; in sub2video_prepare() local 689 for (i = 0; i < avf->nb_streams; i++) { in sub2video_prepare() 690 if (avf->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) { in sub2video_prepare() 691 w = FFMAX(w, avf->streams[i]->codecpar->width); in sub2video_prepare() 692 h = FFMAX(h, avf->streams[i]->codecpar->height); in sub2video_prepare() 699 av_log(avf, AV_LOG_INFO, "sub2video: using %dx%d canvas\n", w, h); in sub2video_prepare()
|
D | ffmpeg.c | 3287 AVFormatContext *avf = output_files[ost->file_index]->ctx; in parse_forced_key_frames() local 3290 if (avf->nb_chapters > INT_MAX - size || in parse_forced_key_frames() 3291 !(pts = av_realloc_f(pts, size += avf->nb_chapters - 1, in parse_forced_key_frames() 3300 for (j = 0; j < avf->nb_chapters; j++) { in parse_forced_key_frames() 3301 AVChapter *c = avf->chapters[j]; in parse_forced_key_frames()
|
/third_party/ffmpeg/tests/fate/ |
D | filter-video.mak | 832 FATE_METADATA_FILTER-$(call ALLYES, $(AVF_PHASE_METER_DEPS)) += fate-filter-metadata-avf-aphase-met… 833 fate-filter-metadata-avf-aphase-meter-mono: CMD = run $(FILTER_METADATA_COMMAND) sine="frequency=10… 835 FATE_METADATA_FILTER-$(call ALLYES, $(AVF_PHASE_METER_DEPS)) += fate-filter-metadata-avf-aphase-met… 836 fate-filter-metadata-avf-aphase-meter-out-of-phase: SRC = $(TARGET_SAMPLES)/filter/out-of-phase-100… 837 fate-filter-metadata-avf-aphase-meter-out-of-phase: CMD = run $(FILTER_METADATA_COMMAND) "amovie='$…
|