diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-03-06 17:58:34 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-05-28 22:04:56 +0200 |
commit | c94e2e85cb6af8a570d8542a830556243bd32873 (patch) | |
tree | 7f8e6f1ced811150a864bdcfe718705f45469ae5 /libavformat/nut.h | |
parent | 6d212599aa684f30511fb08ca30fe2378405304e (diff) | |
download | ffmpeg-c94e2e85cb6af8a570d8542a830556243bd32873.tar.gz |
nut: Support experimental NUT 4 features
Add the low overhead pipe mode and the extended broadcast mode.
Export the options as 'syncponts' since it impacts only that.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/nut.h')
-rw-r--r-- | libavformat/nut.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavformat/nut.h b/libavformat/nut.h index 6357b3d2b1..16f3c123a1 100644 --- a/libavformat/nut.h +++ b/libavformat/nut.h @@ -36,7 +36,9 @@ #define MAX_DISTANCE (1024*32-1) -#define NUT_VERSION 3 +#define NUT_MAX_VERSION 4 +#define NUT_STABLE_VERSION 3 +#define NUT_MIN_VERSION 2 typedef enum{ FLAG_KEY = 1, ///<if set, frame is keyframe @@ -85,6 +87,7 @@ typedef struct ChapterContext { } ChapterContext; typedef struct NUTContext { + const AVClass *av_class; AVFormatContext *avf; // int written_packet_size; // int64_t packet_start; @@ -100,6 +103,10 @@ typedef struct NUTContext { int header_count; AVRational *time_base; struct AVTreeNode *syncpoints; +#define NUT_BROADCAST 1 // use extended syncpoints +#define NUT_PIPE 2 // do not write syncpoints + int flags; + int version; // version currently in use } NUTContext; extern const AVCodecTag ff_nut_subtitle_tags[]; |