mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avformat/avformat: Move AVOutputFormat internals out of public header
This commit does for AVOutputFormat what commit
20f9727018 did for AVCodec:
It adds a new type FFOutputFormat, moves all the internals
of AVOutputFormat to it and adds a now reduced AVOutputFormat
as first member.
This does not affect/improve extensibility of both public
or private fields for muxers (it is still a mess due to lavd).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
f23ae839fc
commit
59c9dc82f4
115 changed files with 1731 additions and 1644 deletions
|
|
@ -22,6 +22,7 @@
|
|||
*/
|
||||
|
||||
#include "avformat.h"
|
||||
#include "mux.h"
|
||||
#include "libavutil/avassert.h"
|
||||
#include "libavutil/crc.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
|
|
@ -306,18 +307,18 @@ static const AVClass apng_muxer_class = {
|
|||
.option = options,
|
||||
};
|
||||
|
||||
const AVOutputFormat ff_apng_muxer = {
|
||||
.name = "apng",
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Animated Portable Network Graphics"),
|
||||
.mime_type = "image/png",
|
||||
.extensions = "apng",
|
||||
const FFOutputFormat ff_apng_muxer = {
|
||||
.p.name = "apng",
|
||||
.p.long_name = NULL_IF_CONFIG_SMALL("Animated Portable Network Graphics"),
|
||||
.p.mime_type = "image/png",
|
||||
.p.extensions = "apng",
|
||||
.priv_data_size = sizeof(APNGMuxContext),
|
||||
.audio_codec = AV_CODEC_ID_NONE,
|
||||
.video_codec = AV_CODEC_ID_APNG,
|
||||
.p.audio_codec = AV_CODEC_ID_NONE,
|
||||
.p.video_codec = AV_CODEC_ID_APNG,
|
||||
.write_header = apng_write_header,
|
||||
.write_packet = apng_write_packet,
|
||||
.write_trailer = apng_write_trailer,
|
||||
.deinit = apng_deinit,
|
||||
.priv_class = &apng_muxer_class,
|
||||
.flags = AVFMT_VARIABLE_FPS,
|
||||
.p.priv_class = &apng_muxer_class,
|
||||
.p.flags = AVFMT_VARIABLE_FPS,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue