diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-10-13 08:59:53 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-10-16 16:29:12 +0200 |
commit | 461a359abce7958cdd9cb4961ad9070118300258 (patch) | |
tree | 6c3c1eadb293c866ce720d7ba32bd58e3a7fa345 /libavformat/internal.h | |
parent | de49452bc122077ed64b48bcfc475cf53e3be78b (diff) | |
download | ffmpeg-461a359abce7958cdd9cb4961ad9070118300258.tar.gz |
lavf: add a header for generic-layer interfaces
Analogous to what was previously done in avcodec and avfilter.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 489a7cad08..0f31962d52 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -426,26 +426,6 @@ static av_always_inline const FFStream *cffstream(const AVStream *st) return (const FFStream*)st; } -typedef struct FFStreamGroup { - /** - * The public context. - */ - AVStreamGroup pub; - - AVFormatContext *fmtctx; -} FFStreamGroup; - - -static av_always_inline FFStreamGroup *ffstreamgroup(AVStreamGroup *stg) -{ - return (FFStreamGroup*)stg; -} - -static av_always_inline const FFStreamGroup *cffstreamgroup(const AVStreamGroup *stg) -{ - return (const FFStreamGroup*)stg; -} - #ifdef __GNUC__ #define dynarray_add(tab, nb_ptr, elem)\ do {\ @@ -461,9 +441,6 @@ do {\ } while(0) #endif - -void ff_flush_packet_queue(AVFormatContext *s); - /** * Automatically create sub-directories * @@ -591,9 +568,6 @@ void ff_parse_key_value(const char *str, ff_parse_key_val_cb callback_get_buf, enum AVCodecID ff_guess_image2_codec(const char *filename); -const struct AVCodec *ff_find_decoder(AVFormatContext *s, const AVStream *st, - enum AVCodecID codec_id); - /** * Set the time base and wrapping info for a given stream. This will be used * to interpret the stream's timestamps. If the new time base is invalid @@ -616,24 +590,12 @@ void avpriv_set_pts_info(AVStream *st, int pts_wrap_bits, int ff_framehash_write_header(AVFormatContext *s); /** - * Frees a stream without modifying the corresponding AVFormatContext. - * Must only be called if the latter doesn't matter or if the stream - * is not yet attached to an AVFormatContext. - */ -void ff_free_stream(AVStream **st); -/** * Remove a stream from its AVFormatContext and free it. * The stream must be the last stream of the AVFormatContext. */ void ff_remove_stream(AVFormatContext *s, AVStream *st); /** - * Frees a stream group without modifying the corresponding AVFormatContext. - * Must only be called if the latter doesn't matter or if the stream - * is not yet attached to an AVFormatContext. - */ -void ff_free_stream_group(AVStreamGroup **pstg); -/** * Remove a stream group from its AVFormatContext and free it. * The stream group must be the last stream group of the AVFormatContext. */ @@ -643,8 +605,6 @@ unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum AVCodecID id); enum AVCodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag); -int ff_is_intra_only(enum AVCodecID id); - /** * Select a PCM codec based on the given parameters. * @@ -752,9 +712,4 @@ int ff_match_url_ext(const char *url, const char *extensions); int ff_get_frame_filename(char *buf, int buf_size, const char *path, int64_t number, int flags); -struct FFOutputFormat; -struct FFInputFormat; -void avpriv_register_devices(const struct FFOutputFormat * const o[], - const struct FFInputFormat * const i[]); - #endif /* AVFORMAT_INTERNAL_H */ |