summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorJan Ekström <jan.ekstrom@24i.com>2021-02-15 16:21:13 +0200
committerJan Ekström <jeebjp@gmail.com>2021-08-25 09:26:46 +0300
commite41bd075dd56f20f4eca61790bda5bf88c433bcb (patch)
treecdc0bc1a7fe2c863de577ff583133bedc5a42409 /libavformat/movenc.h
parent460beb948ceddeb86bd2b3b17335176adcaa7223 (diff)
avformat/movenc: add support for TTML muxing
Includes basic support for both the ISMV ('dfxp') and MP4 ('stpp') methods. This initial version also foregoes fragmentation support in case the built-in sample squashing is to be utilized, as this eases the initial review. Additionally, add basic tests for both muxing modes in MP4. Signed-off-by: Jan Ekström <jan.ekstrom@24i.com>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r--libavformat/movenc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index daeaad1cc6..40077b1afe 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -26,6 +26,7 @@
#include "avformat.h"
#include "movenccenc.h"
+#include "libavcodec/packet_internal.h"
#define MOV_FRAG_INFO_ALLOC_INCREMENT 64
#define MOV_INDEX_CLUSTER_SIZE 1024
@@ -163,6 +164,10 @@ typedef struct MOVTrack {
int pal_done;
int is_unaligned_qt_rgb;
+
+ unsigned int squash_fragment_samples_to_one; //< flag to note formats where all samples for a fragment are to be squashed
+
+ PacketList *squashed_packet_queue, *squashed_packet_queue_end;
} MOVTrack;
typedef enum {