Libav
Data Structures | Macros | Functions
movenc.h File Reference
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  MOVIentry
 
struct  HintSample
 
struct  HintSampleQueue
 
struct  MOVFragmentInfo
 
struct  MOVTrack
 
struct  MOVMuxContext
 

Macros

#define MOV_FRAG_INFO_ALLOC_INCREMENT   64
 
#define MOV_INDEX_CLUSTER_SIZE   1024
 
#define MOV_TIMESCALE   1000
 
#define RTP_MAX_PACKET_SIZE   1450
 
#define MODE_MP4   0x01
 
#define MODE_MOV   0x02
 
#define MODE_3GP   0x04
 
#define MODE_PSP   0x08
 
#define MODE_3G2   0x10
 
#define MODE_IPOD   0x20
 
#define MODE_ISM   0x40
 
#define MODE_F4V   0x80
 
#define MOV_SYNC_SAMPLE   0x0001
 
#define MOV_PARTIAL_SYNC_SAMPLE   0x0002
 
#define MOV_TRACK_CTTS   0x0001
 
#define MOV_TRACK_STPS   0x0002
 
#define MOV_TRACK_ENABLED   0x0004
 
#define FF_MOV_FLAG_RTP_HINT   1
 
#define FF_MOV_FLAG_FRAGMENT   2
 
#define FF_MOV_FLAG_EMPTY_MOOV   4
 
#define FF_MOV_FLAG_FRAG_KEYFRAME   8
 
#define FF_MOV_FLAG_SEPARATE_MOOF   16
 
#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
 
#define FF_MOV_FLAG_DISABLE_CHPL   512
 

Functions

int ff_mov_write_packet (AVFormatContext *s, AVPacket *pkt)
 
int ff_mov_init_hinting (AVFormatContext *s, int index, int src_index)
 
int ff_mov_add_hinted_packet (AVFormatContext *s, AVPacket *pkt, int track_index, int sample, uint8_t *sample_data, int sample_size)
 
void ff_mov_close_hinting (MOVTrack *track)
 

Macro Definition Documentation

§ MOV_FRAG_INFO_ALLOC_INCREMENT

#define MOV_FRAG_INFO_ALLOC_INCREMENT   64

Definition at line 29 of file movenc.h.

Referenced by mov_flush_fragment().

§ MOV_INDEX_CLUSTER_SIZE

#define MOV_INDEX_CLUSTER_SIZE   1024

Definition at line 30 of file movenc.h.

Referenced by ff_mov_write_packet().

§ MOV_TIMESCALE

#define MOV_TIMESCALE   1000

§ RTP_MAX_PACKET_SIZE

#define RTP_MAX_PACKET_SIZE   1450

Definition at line 33 of file movenc.h.

Referenced by ff_mov_add_hinted_packet(), and ff_mov_init_hinting().

§ MODE_MP4

#define MODE_MP4   0x01

§ MODE_MOV

#define MODE_MOV   0x02

§ MODE_3GP

#define MODE_3GP   0x04

§ MODE_PSP

#define MODE_PSP   0x08

§ MODE_3G2

#define MODE_3G2   0x10

Definition at line 40 of file movenc.h.

Referenced by mov_write_ftyp_tag(), and mov_write_header().

§ MODE_IPOD

#define MODE_IPOD   0x20

§ MODE_ISM

#define MODE_ISM   0x40

§ MODE_F4V

#define MODE_F4V   0x80

Definition at line 43 of file movenc.h.

Referenced by mov_find_codec_tag(), mov_write_ftyp_tag(), and mov_write_header().

§ MOV_SYNC_SAMPLE

#define MOV_SYNC_SAMPLE   0x0001

§ MOV_PARTIAL_SYNC_SAMPLE

#define MOV_PARTIAL_SYNC_SAMPLE   0x0002

Definition at line 53 of file movenc.h.

Referenced by ff_mov_write_packet(), mov_parse_mpeg2_frame(), and mov_write_stbl_tag().

§ MOV_TRACK_CTTS

#define MOV_TRACK_CTTS   0x0001

§ MOV_TRACK_STPS

#define MOV_TRACK_STPS   0x0002

Definition at line 88 of file movenc.h.

Referenced by ff_mov_write_packet(), and mov_write_stbl_tag().

§ MOV_TRACK_ENABLED

#define MOV_TRACK_ENABLED   0x0004

Definition at line 89 of file movenc.h.

Referenced by enable_tracks(), and mov_write_tkhd_tag().

§ FF_MOV_FLAG_RTP_HINT

#define FF_MOV_FLAG_RTP_HINT   1

Definition at line 170 of file movenc.h.

Referenced by mov_write_header().

§ FF_MOV_FLAG_FRAGMENT

#define FF_MOV_FLAG_FRAGMENT   2

§ FF_MOV_FLAG_EMPTY_MOOV

#define FF_MOV_FLAG_EMPTY_MOOV   4

Definition at line 172 of file movenc.h.

Referenced by mov_flush_fragment(), and mov_write_header().

§ FF_MOV_FLAG_FRAG_KEYFRAME

#define FF_MOV_FLAG_FRAG_KEYFRAME   8

Definition at line 173 of file movenc.h.

Referenced by mov_write_header(), and mov_write_packet().

§ FF_MOV_FLAG_SEPARATE_MOOF

#define FF_MOV_FLAG_SEPARATE_MOOF   16

Definition at line 174 of file movenc.h.

Referenced by mov_flush_fragment(), mov_write_header(), and mov_write_trun_tag().

§ FF_MOV_FLAG_FRAG_CUSTOM

#define FF_MOV_FLAG_FRAG_CUSTOM   32

Definition at line 175 of file movenc.h.

Referenced by mov_write_header().

§ FF_MOV_FLAG_ISML

#define FF_MOV_FLAG_ISML   64

Definition at line 176 of file movenc.h.

Referenced by mov_write_header(), and mov_write_mfra_tag().

§ FF_MOV_FLAG_FASTSTART

#define FF_MOV_FLAG_FASTSTART   128

Definition at line 177 of file movenc.h.

Referenced by mov_write_header(), and mov_write_trailer().

§ FF_MOV_FLAG_OMIT_TFHD_OFFSET

#define FF_MOV_FLAG_OMIT_TFHD_OFFSET   256

Definition at line 178 of file movenc.h.

Referenced by mov_write_tfhd_tag(), and mov_write_trun_tag().

§ FF_MOV_FLAG_DISABLE_CHPL

#define FF_MOV_FLAG_DISABLE_CHPL   512

Definition at line 179 of file movenc.h.

Referenced by mov_write_udta_tag().

Function Documentation

§ ff_mov_write_packet()

int ff_mov_write_packet ( AVFormatContext s,
AVPacket pkt 
)

Definition at line 2990 of file movenc.c.

Referenced by ff_mov_add_hinted_packet(), mov_create_chapter_track(), and mov_write_packet().

§ ff_mov_init_hinting()

int ff_mov_init_hinting ( AVFormatContext s,
int  index,
int  src_index 
)

Definition at line 29 of file movenchint.c.

Referenced by mov_write_header().

§ ff_mov_add_hinted_packet()

int ff_mov_add_hinted_packet ( AVFormatContext s,
AVPacket pkt,
int  track_index,
int  sample,
uint8_t sample_data,
int  sample_size 
)

Definition at line 400 of file movenchint.c.

Referenced by ff_mov_write_packet().

§ ff_mov_close_hinting()

void ff_mov_close_hinting ( MOVTrack track)

Definition at line 458 of file movenchint.c.

Referenced by mov_free().