summaryrefslogtreecommitdiff
path: root/ffmpeg/libavformat/movenc.h
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg/libavformat/movenc.h')
-rw-r--r--ffmpeg/libavformat/movenc.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/ffmpeg/libavformat/movenc.h b/ffmpeg/libavformat/movenc.h
index a5db895..09f3ea7 100644
--- a/ffmpeg/libavformat/movenc.h
+++ b/ffmpeg/libavformat/movenc.h
@@ -26,7 +26,8 @@
#include "avformat.h"
-#define MOV_INDEX_CLUSTER_SIZE 16384
+#define MOV_FRAG_INFO_ALLOC_INCREMENT 64
+#define MOV_INDEX_CLUSTER_SIZE 1024
#define MOV_TIMESCALE 1000
#define RTP_MAX_PACKET_SIZE 1450
@@ -75,7 +76,7 @@ typedef struct MOVFragmentInfo {
int64_t tfrf_offset;
} MOVFragmentInfo;
-typedef struct MOVIndex {
+typedef struct MOVTrack {
int mode;
int entry;
unsigned timescale;
@@ -88,20 +89,22 @@ typedef struct MOVIndex {
int has_keyframes;
#define MOV_TRACK_CTTS 0x0001
#define MOV_TRACK_STPS 0x0002
+#define MOV_TRACK_ENABLED 0x0004
uint32_t flags;
#define MOV_TIMECODE_FLAG_DROPFRAME 0x0001
#define MOV_TIMECODE_FLAG_24HOURSMAX 0x0002
#define MOV_TIMECODE_FLAG_ALLOWNEGATIVE 0x0004
uint32_t timecode_flags;
int language;
- int secondary;
int track_id;
int tag; ///< stsd fourcc
+ AVStream *st;
AVCodecContext *enc;
int vos_len;
uint8_t *vos_data;
MOVIentry *cluster;
+ unsigned cluster_capacity;
int audio_vbr;
int height; ///< active picture (w/o VBI) height for D-10/IMX
uint32_t tref_tag;
@@ -122,13 +125,13 @@ typedef struct MOVIndex {
HintSampleQueue sample_queue;
AVIOContext *mdat_buf;
- int64_t moof_size_offset;
int64_t data_offset;
int64_t frag_start;
int64_t tfrf_offset;
int nb_frag_info;
MOVFragmentInfo *frag_info;
+ unsigned frag_info_capacity;
struct {
int64_t struct_offset;
@@ -153,8 +156,6 @@ typedef struct MOVMuxContext {
int flags;
int rtp_flags;
- int reserved_moov_size; ///< 0 for disabled, -1 for automatic, size otherwise
- int64_t reserved_moov_pos;
int iods_skip;
int iods_video_profile;
@@ -168,6 +169,10 @@ typedef struct MOVMuxContext {
AVIOContext *mdat_buf;
int use_editlist;
+ int video_track_timescale;
+
+ int reserved_moov_size; ///< 0 for disabled, -1 for automatic, size otherwise
+ int64_t reserved_moov_pos;
} MOVMuxContext;
#define FF_MOV_FLAG_RTP_HINT 1
@@ -178,6 +183,7 @@ typedef struct MOVMuxContext {
#define FF_MOV_FLAG_FRAG_CUSTOM 32
#define FF_MOV_FLAG_ISML 64
#define FF_MOV_FLAG_FASTSTART 128
+#define FF_MOV_FLAG_OMIT_TFHD_OFFSET 256
int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt);