/dports/multimedia/QtAV/QtAV-1.13.0/src/ |
H A D | AVDemuxer.cpp | 207 , format_ctx(0) in Private() 260 if (!format_ctx) in checkSeekable() 268 s |= format_ctx->iformat->read_seek || format_ctx->iformat->read_seek2; in checkSeekable() 435 if (!d->format_ctx) in getFFmpegInputFormats() 514 if (!d->format_ctx) in getFFmpegInputFormats() 779 if (!d->format_ctx) in getFFmpegInputFormats() 948 if (!d->format_ctx) in getFFmpegInputFormats() 975 if (!d->format_ctx || d->format_ctx->start_time == AV_NOPTS_VALUE) in getFFmpegInputFormats() 982 if (!d->format_ctx || d->format_ctx->duration == AV_NOPTS_VALUE) in getFFmpegInputFormats() 1196 if (!format_ctx) in getFFmpegInputFormats() [all …]
|
H A D | AVMuxer.cpp | 47 , format_ctx(0) in Private() 80 AVFormatContext *format_ctx; member in QtAV::AVMuxer::Private 421 …if (!(d->format_ctx->oformat->flags & AVFMT_NOFILE) && !(d->format_ctx->flags & AVFMT_FLAG_CUSTOM_… in getFFmpegOutputFormats() 438 av_write_trailer(d->format_ctx); in getFFmpegOutputFormats() 441 …if (!(d->format_ctx->oformat->flags & AVFMT_NOFILE) && !(d->format_ctx->flags & AVFMT_FLAG_CUSTOM_… in getFFmpegOutputFormats() 442 if (d->format_ctx->pb) { in getFFmpegOutputFormats() 443 avio_flush(d->format_ctx->pb); in getFFmpegOutputFormats() 445 d->format_ctx->pb = 0; in getFFmpegOutputFormats() 448 avformat_free_context(d->format_ctx); in getFFmpegOutputFormats() 449 d->format_ctx = 0; in getFFmpegOutputFormats() [all …]
|
/dports/games/openmw/openmw-openmw-0.47.0/extern/osg-ffmpeg-videoplayer/ |
H A D | videostate.cpp | 81 , format_ctx(nullptr) in VideoState() 732 if(this->format_ctx) in init() 733 this->format_ctx->pb = ioCtx; in init() 742 if(!this->format_ctx || avformat_open_input(&this->format_ctx, name.c_str(), nullptr, nullptr)) in init() 744 if (this->format_ctx != nullptr) in init() 746 if (this->format_ctx->pb != nullptr) in init() 752 av_freep(&this->format_ctx->pb); in init() 757 this->format_ctx = nullptr; in init() 826 if(this->format_ctx) in deinit() 834 if (this->format_ctx->pb != nullptr) in deinit() [all …]
|
/dports/multimedia/vapoursynth-l-smash-works/L-SMASH-Works-0.0-940-g198cc78/common/ |
H A D | lwlibav_dec.h | 91 AVFormatContext **format_ctx, in lavf_open_file() argument 96 if( avformat_open_input( format_ctx, file_path, NULL, NULL ) ) in lavf_open_file() 101 if( avformat_find_stream_info( *format_ctx, NULL ) < 0 ) in lavf_open_file() 109 static inline void lavf_close_file( AVFormatContext **format_ctx ) in lavf_close_file() argument 111 avformat_close_input( format_ctx ); in lavf_close_file() 116 AVFormatContext *format_ctx, in read_av_frame() argument 122 int ret = av_read_frame( format_ctx, pkt ); in read_av_frame() 145 AVFormatContext *format_ctx,
|
/dports/textproc/libextractor/libextractor-1.11/src/plugins/ |
H A D | thumbnailffmpeg_extractor.c | 553 struct AVFormatContext *format_ctx; in extract_video() local 586 format_ctx->pb = io_ctx; in extract_video() 600 avformat_close_input (&format_ctx); in extract_video() 607 for (i = 0; i<format_ctx->nb_streams; i++) in extract_video() 610 codec_ctx = format_ctx->streams[i]->codec; in extract_video() 635 avformat_close_input (&format_ctx); in extract_video() 648 avformat_close_input (&format_ctx); in extract_video() 653 if (format_ctx->duration == AV_NOPTS_VALUE) in extract_video() 663 duration = format_ctx->duration; in extract_video() 706 avformat_close_input (&format_ctx); in extract_video() [all …]
|
H A D | previewopus_extractor.c | 877 struct AVFormatContext *format_ctx; in extract_audio() local 912 format_ctx->pb = io_ctx; in extract_audio() 926 avformat_close_input (&format_ctx); in extract_audio() 933 for (i = 0; i<format_ctx->nb_streams; i++) in extract_audio() 935 codec_ctx = format_ctx->streams[i]->codec; in extract_audio() 959 avformat_close_input (&format_ctx); in extract_audio() 972 avformat_close_input (&format_ctx); in extract_audio() 1001 if (format_ctx->duration == AV_NOPTS_VALUE) in extract_audio() 1011 duration = format_ctx->duration; in extract_audio() 1015 format_ctx->duration); in extract_audio() [all …]
|
/dports/emulators/vice/vice-3.5/src/lib/libffmpeg/libavfilter/ |
H A D | lavfutils.c | 29 AVFormatContext *format_ctx = NULL; in ff_load_image() local 41 if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) { in ff_load_image() 47 if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) { in ff_load_image() 52 codec_ctx = format_ctx->streams[0]->codec; in ff_load_image() 71 ret = av_read_frame(format_ctx, &pkt); in ff_load_image() 98 avformat_close_input(&format_ctx); in ff_load_image()
|
H A D | src_movie.c | 63 AVFormatContext *format_ctx; member 229 movie->format_ctx = NULL; in movie_common_init() 242 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) { in movie_common_init() 249 timestamp += movie->format_ctx->start_time; in movie_common_init() 258 for (i = 0; i < movie->format_ctx->nb_streams; i++) in movie_common_init() 259 movie->format_ctx->streams[i]->discard = AVDISCARD_ALL; in movie_common_init() 270 st = find_stream(ctx, movie->format_ctx, spec); in movie_common_init() 325 if (movie->format_ctx) in movie_uninit() 326 avformat_close_input(&movie->format_ctx); in movie_uninit() 417 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) in rewind_file() [all …]
|
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libffmpeg/libavfilter/ |
H A D | lavfutils.c | 29 AVFormatContext *format_ctx = NULL; in ff_load_image() local 41 if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) { in ff_load_image() 47 if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) { in ff_load_image() 52 codec_ctx = format_ctx->streams[0]->codec; in ff_load_image() 71 ret = av_read_frame(format_ctx, &pkt); in ff_load_image() 98 avformat_close_input(&format_ctx); in ff_load_image()
|
H A D | src_movie.c | 63 AVFormatContext *format_ctx; member 229 movie->format_ctx = NULL; in movie_common_init() 242 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) { in movie_common_init() 249 timestamp += movie->format_ctx->start_time; in movie_common_init() 258 for (i = 0; i < movie->format_ctx->nb_streams; i++) in movie_common_init() 259 movie->format_ctx->streams[i]->discard = AVDISCARD_ALL; in movie_common_init() 270 st = find_stream(ctx, movie->format_ctx, spec); in movie_common_init() 325 if (movie->format_ctx) in movie_uninit() 326 avformat_close_input(&movie->format_ctx); in movie_uninit() 417 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) in rewind_file() [all …]
|
/dports/x11-toolkits/gtk40/gtk-4.4.1/modules/media/ |
H A D | gtkffmediafile.c | 48 AVFormatContext *format_ctx; member 283 for (errnum = av_read_frame (video->format_ctx, &packet); in gtk_ff_media_file_decode_frame() 285 errnum = av_read_frame (video->format_ctx, &packet)) in gtk_ff_media_file_decode_frame() 489 video->format_ctx = avformat_alloc_context (); in gtk_ff_media_file_open() 491 if (video->format_ctx->pb == NULL) in gtk_ff_media_file_open() 506 errnum = avformat_find_stream_info (video->format_ctx, NULL); in gtk_ff_media_file_open() 523 stream = video->format_ctx->streams[video->stream_id]; in gtk_ff_media_file_open() 582 avformat_close_input (&video->format_ctx); in gtk_ff_media_file_close() 609 if (av_seek_frame (video->format_ctx, in gtk_ff_media_file_restart() 663 if (video->format_ctx == NULL) in gtk_ff_media_file_play() [all …]
|
/dports/multimedia/handbrake/ffmpeg-4.4/libavfilter/ |
H A D | lavfutils.c | 30 AVFormatContext *format_ctx = NULL; in ff_load_image() local 40 if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) { in ff_load_image() 46 if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) { in ff_load_image() 51 par = format_ctx->streams[0]->codecpar; in ff_load_image() 84 ret = av_read_frame(format_ctx, &pkt); in ff_load_image() 115 avformat_close_input(&format_ctx); in ff_load_image()
|
H A D | src_movie.c | 71 AVFormatContext *format_ctx; member 241 movie->format_ctx = NULL; in movie_common_init() 254 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) { in movie_common_init() 261 timestamp += movie->format_ctx->start_time; in movie_common_init() 270 for (i = 0; i < movie->format_ctx->nb_streams; i++) in movie_common_init() 282 st = find_stream(ctx, movie->format_ctx, spec); in movie_common_init() 343 if (movie->format_ctx) in movie_uninit() 344 avformat_close_input(&movie->format_ctx); in movie_uninit() 438 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) in rewind_file() 439 timestamp += movie->format_ctx->start_time; in rewind_file() [all …]
|
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavfilter/ |
H A D | lavfutils.c | 29 AVFormatContext *format_ctx = NULL; in ff_load_image() local 41 if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) { in ff_load_image() 47 if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) { in ff_load_image() 52 par = format_ctx->streams[0]->codecpar; in ff_load_image() 85 ret = av_read_frame(format_ctx, &pkt); in ff_load_image() 112 avformat_close_input(&format_ctx); in ff_load_image()
|
H A D | src_movie.c | 72 AVFormatContext *format_ctx; member 245 movie->format_ctx = NULL; in movie_common_init() 258 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) { in movie_common_init() 265 timestamp += movie->format_ctx->start_time; in movie_common_init() 274 for (i = 0; i < movie->format_ctx->nb_streams; i++) in movie_common_init() 275 movie->format_ctx->streams[i]->discard = AVDISCARD_ALL; in movie_common_init() 286 st = find_stream(ctx, movie->format_ctx, spec); in movie_common_init() 348 if (movie->format_ctx) in movie_uninit() 349 avformat_close_input(&movie->format_ctx); in movie_uninit() 443 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) in rewind_file() [all …]
|
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavfilter/ |
H A D | lavfutils.c | 30 AVFormatContext *format_ctx = NULL; in ff_load_image() local 40 if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) { in ff_load_image() 46 if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) { in ff_load_image() 51 par = format_ctx->streams[0]->codecpar; in ff_load_image() 84 ret = av_read_frame(format_ctx, &pkt); in ff_load_image() 115 avformat_close_input(&format_ctx); in ff_load_image()
|
H A D | src_movie.c | 71 AVFormatContext *format_ctx; member 241 movie->format_ctx = NULL; in movie_common_init() 254 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) { in movie_common_init() 261 timestamp += movie->format_ctx->start_time; in movie_common_init() 270 for (i = 0; i < movie->format_ctx->nb_streams; i++) in movie_common_init() 282 st = find_stream(ctx, movie->format_ctx, spec); in movie_common_init() 343 if (movie->format_ctx) in movie_uninit() 344 avformat_close_input(&movie->format_ctx); in movie_uninit() 438 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) in rewind_file() 439 timestamp += movie->format_ctx->start_time; in rewind_file() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavfilter/ |
H A D | lavfutils.c | 29 AVFormatContext *format_ctx = NULL; in ff_load_image() local 41 if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) { in ff_load_image() 47 if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) { in ff_load_image() 52 par = format_ctx->streams[0]->codecpar; in ff_load_image() 85 ret = av_read_frame(format_ctx, &pkt); in ff_load_image() 112 avformat_close_input(&format_ctx); in ff_load_image()
|
H A D | src_movie.c | 72 AVFormatContext *format_ctx; member 246 movie->format_ctx = NULL; in movie_common_init() 259 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) { in movie_common_init() 266 timestamp += movie->format_ctx->start_time; in movie_common_init() 275 for (i = 0; i < movie->format_ctx->nb_streams; i++) in movie_common_init() 276 movie->format_ctx->streams[i]->discard = AVDISCARD_ALL; in movie_common_init() 287 st = find_stream(ctx, movie->format_ctx, spec); in movie_common_init() 349 if (movie->format_ctx) in movie_uninit() 350 avformat_close_input(&movie->format_ctx); in movie_uninit() 444 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) in rewind_file() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavfilter/ |
H A D | lavfutils.c | 29 AVFormatContext *format_ctx = NULL; in ff_load_image() local 39 if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) { in ff_load_image() 45 if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) { in ff_load_image() 50 par = format_ctx->streams[0]->codecpar; in ff_load_image() 83 ret = av_read_frame(format_ctx, &pkt); in ff_load_image() 110 avformat_close_input(&format_ctx); in ff_load_image()
|
H A D | src_movie.c | 72 AVFormatContext *format_ctx; member 245 movie->format_ctx = NULL; in movie_common_init() 258 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) { in movie_common_init() 265 timestamp += movie->format_ctx->start_time; in movie_common_init() 274 for (i = 0; i < movie->format_ctx->nb_streams; i++) in movie_common_init() 286 st = find_stream(ctx, movie->format_ctx, spec); in movie_common_init() 348 if (movie->format_ctx) in movie_uninit() 349 avformat_close_input(&movie->format_ctx); in movie_uninit() 443 if (movie->format_ctx->start_time != AV_NOPTS_VALUE) in rewind_file() 444 timestamp += movie->format_ctx->start_time; in rewind_file() [all …]
|
/dports/emulators/emu64/emu64-5.0.19/src/ |
H A D | video_capture_class.cpp | 26 format_ctx = nullptr; in VideoCaptureClass() 94 if (!format_ctx) in StartCapture() 99 if (!format_ctx) in StartCapture() 106 output_format = format_ctx->oformat; in StartCapture() 131 av_dump_format(format_ctx, 0, filename, 1); in StartCapture() 148 ret = avformat_write_header(format_ctx, &options); in StartCapture() 188 av_write_trailer(format_ctx); in StopCapture() 207 avio_closep(&format_ctx->pb); in StopCapture() 209 avformat_free_context(format_ctx); in StopCapture() 210 format_ctx = nullptr; in StopCapture() [all …]
|
/dports/multimedia/vapoursynth-l-smash-works/L-SMASH-Works-0.0-940-g198cc78/AviSynth/ |
H A D | libavsmash_source.cpp | 62 AVFormatContext *format_ctx = nullptr; in open_file() local 63 … lsmash_root_t *root = libavsmash_open_file( &format_ctx, source, &file_param, &movie_param, lhp ); in open_file() 64 this->format_ctx.reset( format_ctx ); in open_file() 88 AVFormatContext *format_ctx, in prepare_video_decoding() argument 98 if( libavsmash_video_initialize_decoder_configuration( vdhp, format_ctx, threads ) < 0 ) in prepare_video_decoding() 203 AVFormatContext *format_ctx = nullptr; in open_file() local 204 … lsmash_root_t *root = libavsmash_open_file( &format_ctx, source, &file_param, &movie_param, lhp ); in open_file() 205 this->format_ctx.reset( format_ctx ); in open_file() 328 AVFormatContext *format_ctx, in prepare_audio_decoding() argument 337 if( libavsmash_audio_initialize_decoder_configuration( adhp, format_ctx, 0 ) < 0 ) in prepare_audio_decoding() [all …]
|
/dports/comms/scrcpy/scrcpy-1.9/app/src/ |
H A D | stream.c | 152 AVFormatContext *format_ctx = avformat_alloc_context(); in run_stream() local 153 if (!format_ctx) { in run_stream() 181 format_ctx->pb = avio_ctx; in run_stream() 183 if (avformat_open_input(&format_ctx, NULL, NULL, NULL) < 0) { in run_stream() 209 while (!av_read_frame(format_ctx, &packet)) { in run_stream() 252 avformat_close_input(&format_ctx); in run_stream() 257 avformat_free_context(format_ctx); in run_stream()
|
/dports/multimedia/ccextractor/ccextractor-0.85/src/lib_ccx/ |
H A D | hardsubx.c | 19 if(avformat_open_input(&ctx->format_ctx, ctx->inputfile[0], NULL, NULL)!=0) in hardsubx_process_data() 24 if(avformat_find_stream_info(ctx->format_ctx, NULL)<0) in hardsubx_process_data() 31 av_dump_format(ctx->format_ctx, 0, ctx->inputfile[0], 0); in hardsubx_process_data() 35 for(int i = 0; i < ctx->format_ctx->nb_streams; i++) in hardsubx_process_data() 37 if(ctx->format_ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) in hardsubx_process_data() 48 ctx->codec_ctx = ctx->format_ctx->streams[ctx->video_stream_id]->codec; in hardsubx_process_data() 113 avformat_close_input(&ctx->format_ctx); in hardsubx_process_data()
|