FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
movenc.c File Reference
#include <stdint.h>
#include <inttypes.h>
#include "movenc.h"
#include "avformat.h"
#include "avio_internal.h"
#include "riff.h"
#include "avio.h"
#include "isom.h"
#include "av1.h"
#include "avc.h"
#include "libavcodec/ac3_parser_internal.h"
#include "libavcodec/dnxhddata.h"
#include "libavcodec/flac.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/internal.h"
#include "libavcodec/put_bits.h"
#include "libavcodec/vc1_common.h"
#include "libavcodec/raw.h"
#include "internal.h"
#include "libavutil/avstring.h"
#include "libavutil/intfloat.h"
#include "libavutil/mathematics.h"
#include "libavutil/libm.h"
#include "libavutil/opt.h"
#include "libavutil/dict.h"
#include "libavutil/pixdesc.h"
#include "libavutil/stereo3d.h"
#include "libavutil/timecode.h"
#include "libavutil/color_utils.h"
#include "hevc.h"
#include "rtpenc.h"
#include "mov_chan.h"
#include "vpcc.h"

Go to the source code of this file.

Data Structures

struct  eac3_info
 

Macros

#define MOV_CLASS(flavor)
 
#define READ_BLOCK
 

Functions

static int get_moov_size (AVFormatContext *s)
 
static int utf8len (const uint8_t *b)
 
static int64_t update_size (AVIOContext *pb, int64_t pos)
 
static int co64_required (const MOVTrack *track)
 
static int is_cover_image (const AVStream *st)
 
static int rtp_hinting_needed (const AVStream *st)
 
static int mov_write_stco_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_stsz_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_stsc_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_stss_tag (AVIOContext *pb, MOVTrack *track, uint32_t flag)
 
static int mov_write_sdtp_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_amr_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_ac3_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_eac3_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_extradata_tag (AVIOContext *pb, MOVTrack *track)
 This function writes extradata "as is". More...
 
static int mov_write_enda_tag (AVIOContext *pb)
 
static int mov_write_enda_tag_be (AVIOContext *pb)
 
static void put_descr (AVIOContext *pb, int tag, unsigned int size)
 
static unsigned compute_avg_bitrate (MOVTrack *track)
 
static int mov_write_esds_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_pcm_le_gt16 (enum AVCodecID codec_id)
 
static int mov_pcm_be_gt16 (enum AVCodecID codec_id)
 
static int mov_write_ms_tag (AVFormatContext *s, AVIOContext *pb, MOVTrack *track)
 
static int mov_write_wfex_tag (AVFormatContext *s, AVIOContext *pb, MOVTrack *track)
 
static int mov_write_dfla_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_dops_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_chan_tag (AVFormatContext *s, AVIOContext *pb, MOVTrack *track)
 
static int mov_write_wave_tag (AVFormatContext *s, AVIOContext *pb, MOVTrack *track)
 
static int mov_write_dvc1_structs (MOVTrack *track, uint8_t *buf)
 
static int mov_write_dvc1_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_glbl_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_get_lpcm_flags (enum AVCodecID codec_id)
 Compute flags for 'lpcm' tag. More...
 
static int get_cluster_duration (MOVTrack *track, int cluster_idx)
 
static int get_samples_per_packet (MOVTrack *track)
 
static int mov_write_audio_tag (AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
 
static int mov_write_d263_tag (AVIOContext *pb)
 
static int mov_write_av1c_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_avcc_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_vpcc_tag (AVFormatContext *s, AVIOContext *pb, MOVTrack *track)
 
static int mov_write_hvcc_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_avid_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_dpxe_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_get_dv_codec_tag (AVFormatContext *s, MOVTrack *track)
 
static AVRational find_fps (AVFormatContext *s, AVStream *st)
 
static int defined_frame_rate (AVFormatContext *s, AVStream *st)
 
static int mov_get_mpeg2_xdcam_codec_tag (AVFormatContext *s, MOVTrack *track)
 
static int mov_get_h264_codec_tag (AVFormatContext *s, MOVTrack *track)
 
static int mov_get_dnxhd_codec_tag (AVFormatContext *s, MOVTrack *track)
 
static int mov_get_rawvideo_codec_tag (AVFormatContext *s, MOVTrack *track)
 
static unsigned int mov_get_codec_tag (AVFormatContext *s, MOVTrack *track)
 
static unsigned int validate_codec_tag (const AVCodecTag *const *tags, unsigned int tag, int codec_id)
 
static unsigned int mov_find_codec_tag (AVFormatContext *s, MOVTrack *track)
 
static int mov_write_uuid_tag_ipod (AVIOContext *pb)
 Write uuid atom. More...
 
static int mov_write_fiel_tag (AVIOContext *pb, MOVTrack *track, int field_order)
 
static int mov_write_subtitle_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_st3d_tag (AVIOContext *pb, AVStereo3D *stereo_3d)
 
static int mov_write_sv3d_tag (AVFormatContext *s, AVIOContext *pb, AVSphericalMapping *spherical_mapping)
 
static int mov_write_clap_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_pasp_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_gama_tag (AVIOContext *pb, MOVTrack *track, double gamma)
 
static int mov_write_colr_tag (AVIOContext *pb, MOVTrack *track)
 
static void find_compressor (char *compressor_name, int len, MOVTrack *track)
 
static int mov_write_video_tag (AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
 
static int mov_write_rtp_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_source_reference_tag (AVIOContext *pb, MOVTrack *track, const char *reel_name)
 
static int mov_write_tmcd_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_gpmd_tag (AVIOContext *pb, const MOVTrack *track)
 
static int mov_write_stsd_tag (AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
 
static int mov_write_ctts_tag (AVFormatContext *s, AVIOContext *pb, MOVTrack *track)
 
static int mov_write_stts_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_dref_tag (AVIOContext *pb)
 
static int mov_preroll_write_stbl_atoms (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_stbl_tag (AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
 
static int mov_write_dinf_tag (AVIOContext *pb)
 
static int mov_write_nmhd_tag (AVIOContext *pb)
 
static int mov_write_tcmi_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_gmhd_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_smhd_tag (AVIOContext *pb)
 
static int mov_write_vmhd_tag (AVIOContext *pb)
 
static int is_clcp_track (MOVTrack *track)
 
static int mov_write_hdlr_tag (AVFormatContext *s, AVIOContext *pb, MOVTrack *track)
 
static int mov_write_hmhd_tag (AVIOContext *pb)
 
static int mov_write_minf_tag (AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
 
static int mov_write_mdhd_tag (AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
 
static int mov_write_mdia_tag (AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
 
static void write_matrix (AVIOContext *pb, int16_t a, int16_t b, int16_t c, int16_t d, int16_t tx, int16_t ty)
 
static int mov_write_tkhd_tag (AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track, AVStream *st)
 
static int mov_write_tapt_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_edts_tag (AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
 
static int mov_write_tref_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_uuid_tag_psp (AVIOContext *pb, MOVTrack *mov)
 
static int mov_write_udta_sdp (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_track_metadata (AVIOContext *pb, AVStream *st, const char *tag, const char *str)
 
static int mov_write_track_udta_tag (AVIOContext *pb, MOVMuxContext *mov, AVStream *st)
 
static int mov_write_trak_tag (AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track, AVStream *st)
 
static int mov_write_iods_tag (AVIOContext *pb, MOVMuxContext *mov)
 
static int mov_write_trex_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_mvex_tag (AVIOContext *pb, MOVMuxContext *mov)
 
static int mov_write_mvhd_tag (AVIOContext *pb, MOVMuxContext *mov)
 
static int mov_write_itunes_hdlr_tag (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
 
static int mov_write_string_data_tag (AVIOContext *pb, const char *data, int lang, int long_style)
 
static int mov_write_string_tag (AVIOContext *pb, const char *name, const char *value, int lang, int long_style)
 
static AVDictionaryEntryget_metadata_lang (AVFormatContext *s, const char *tag, int *lang)
 
static int mov_write_string_metadata (AVFormatContext *s, AVIOContext *pb, const char *name, const char *tag, int long_style)
 
static int mov_write_tmpo_tag (AVIOContext *pb, AVFormatContext *s)
 
static int mov_write_loci_tag (AVFormatContext *s, AVIOContext *pb)
 
static int mov_write_trkn_tag (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s, int disc)
 
static int mov_write_int8_metadata (AVFormatContext *s, AVIOContext *pb, const char *name, const char *tag, int len)
 
static int mov_write_covr (AVIOContext *pb, AVFormatContext *s)
 
static int mov_write_ilst_tag (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
 
static int mov_write_mdta_hdlr_tag (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
 
static int mov_write_mdta_keys_tag (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
 
static int mov_write_mdta_ilst_tag (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
 
static int mov_write_meta_tag (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
 
static int mov_write_raw_metadata_tag (AVFormatContext *s, AVIOContext *pb, const char *name, const char *key)
 
static int ascii_to_wc (AVIOContext *pb, const uint8_t *b)
 
static uint16_t language_code (const char *str)
 
static int mov_write_3gp_udta_tag (AVIOContext *pb, AVFormatContext *s, const char *tag, const char *str)
 
static int mov_write_chpl_tag (AVIOContext *pb, AVFormatContext *s)
 
static int mov_write_udta_tag (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
 
static void mov_write_psp_udta_tag (AVIOContext *pb, const char *str, const char *lang, int type)
 
static int mov_write_uuidusmt_tag (AVIOContext *pb, AVFormatContext *s)
 
static void build_chunks (MOVTrack *trk)
 
static int mov_setup_track_ids (MOVMuxContext *mov, AVFormatContext *s)
 Assign track ids. More...
 
static int mov_write_moov_tag (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
 
static void param_write_int (AVIOContext *pb, const char *name, int value)
 
static void param_write_string (AVIOContext *pb, const char *name, const char *value)
 
static void param_write_hex (AVIOContext *pb, const char *name, const uint8_t *value, int len)
 
static int mov_write_isml_manifest (AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s)
 
static int mov_write_mfhd_tag (AVIOContext *pb, MOVMuxContext *mov)
 
static uint32_t get_sample_flags (MOVTrack *track, MOVIentry *entry)
 
static int mov_write_tfhd_tag (AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track, int64_t moof_offset)
 
static int mov_write_trun_tag (AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track, int moof_size, int first, int end)
 
static int mov_write_tfxd_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_tfrf_tag (AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track, int entry)
 
static int mov_write_tfrf_tags (AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
 
static int mov_add_tfra_entries (AVIOContext *pb, MOVMuxContext *mov, int tracks, int size)
 
static void mov_prune_frag_info (MOVMuxContext *mov, int tracks, int max)
 
static int mov_write_tfdt_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_traf_tag (AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track, int64_t moof_offset, int moof_size)
 
static int mov_write_moof_tag_internal (AVIOContext *pb, MOVMuxContext *mov, int tracks, int moof_size)
 
static int mov_write_sidx_tag (AVIOContext *pb, MOVTrack *track, int ref_size, int total_sidx_size)
 
static int mov_write_sidx_tags (AVIOContext *pb, MOVMuxContext *mov, int tracks, int ref_size)
 
static int mov_write_prft_tag (AVIOContext *pb, MOVMuxContext *mov, int tracks)
 
static int mov_write_moof_tag (AVIOContext *pb, MOVMuxContext *mov, int tracks, int64_t mdat_size)
 
static int mov_write_tfra_tag (AVIOContext *pb, MOVTrack *track)
 
static int mov_write_mfra_tag (AVIOContext *pb, MOVMuxContext *mov)
 
static int mov_write_mdat_tag (AVIOContext *pb, MOVMuxContext *mov)
 
static int mov_write_ftyp_tag (AVIOContext *pb, AVFormatContext *s)
 
static int mov_write_uuidprof_tag (AVIOContext *pb, AVFormatContext *s)
 
static int mov_write_identification (AVIOContext *pb, AVFormatContext *s)
 
static int mov_parse_mpeg2_frame (AVPacket *pkt, uint32_t *flags)
 
static void mov_parse_vc1_frame (AVPacket *pkt, MOVTrack *trk)
 
static int mov_flush_fragment_interleaving (AVFormatContext *s, MOVTrack *track)
 
static int mov_flush_fragment (AVFormatContext *s, int force)
 
static int mov_auto_flush_fragment (AVFormatContext *s, int force)
 
static int check_pkt (AVFormatContext *s, AVPacket *pkt)
 
int ff_mov_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int mov_write_single_packet (AVFormatContext *s, AVPacket *pkt)
 
static int mov_write_subtitle_end_packet (AVFormatContext *s, int stream_index, int64_t dts)
 
static int mov_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int mov_create_chapter_track (AVFormatContext *s, int tracknum)
 
static int mov_check_timecode_track (AVFormatContext *s, AVTimecode *tc, int src_index, const char *tcstr)
 
static int mov_create_timecode_track (AVFormatContext *s, int index, int src_index, AVTimecode tc)
 
static void enable_tracks (AVFormatContext *s)
 
static void mov_free (AVFormatContext *s)
 
static uint32_t rgb_to_yuv (uint32_t rgb)
 
static int mov_create_dvd_sub_decoder_specific_info (MOVTrack *track, AVStream *st)
 
static int mov_init (AVFormatContext *s)
 
static int mov_write_header (AVFormatContext *s)
 
static int get_sidx_size (AVFormatContext *s)
 
static int compute_moov_size (AVFormatContext *s)
 
static int compute_sidx_size (AVFormatContext *s)
 
static int shift_data (AVFormatContext *s)
 
static int mov_write_trailer (AVFormatContext *s)
 
static int mov_check_bitstream (struct AVFormatContext *s, const AVPacket *pkt)
 

Variables

static const AVOption options []
 
struct {
   enum AVPixelFormat   pix_fmt
 
   uint32_t   tag
 
   unsigned   bps
 
mov_pix_fmt_tags []
 
static const AVCodecTag codec_cover_image_tags []
 
static const uint16_t fiel_data []
 
static const AVCodecTag codec_3gp_tags []
 
const AVCodecTag codec_mp4_tags []
 
const AVCodecTag codec_ism_tags []
 
static const AVCodecTag codec_ipod_tags []
 
static const AVCodecTag codec_f4v_tags []
 

Macro Definition Documentation

#define MOV_CLASS (   flavor)
Value:
static const AVClass flavor ## _muxer_class = {\
.class_name = #flavor " muxer",\
.item_name = av_default_item_name,\
.option = options,\
.version = LIBAVUTIL_VERSION_INT,\
};
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
Definition: log.h:72
static const AVOption options[]
Definition: movenc.c:60
Describe the class of an AVClass context structure.
Definition: log.h:67

Definition at line 109 of file movenc.c.

#define READ_BLOCK
Value:
do { \
read_size[read_buf_id] = avio_read(read_pb, read_buf[read_buf_id], moov_size); \
read_buf_id ^= 1; \
} while (0)
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Definition: aviobuf.c:648

Referenced by shift_data().

Function Documentation

static int get_moov_size ( AVFormatContext s)
static

Definition at line 6476 of file movenc.c.

Referenced by compute_moov_size(), and mov_flush_fragment().

static int utf8len ( const uint8_t b)
static
static int64_t update_size ( AVIOContext pb,
int64_t  pos 
)
static
static int co64_required ( const MOVTrack track)
static

Definition at line 141 of file movenc.c.

Referenced by mov_write_stco_tag().

static int is_cover_image ( const AVStream st)
static
static int rtp_hinting_needed ( const AVStream st)
static

Definition at line 155 of file movenc.c.

Referenced by mov_init(), and mov_write_header().

static int mov_write_stco_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 165 of file movenc.c.

Referenced by mov_write_stbl_tag().

static int mov_write_stsz_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 189 of file movenc.c.

Referenced by mov_write_stbl_tag().

static int mov_write_stsc_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 225 of file movenc.c.

Referenced by mov_write_stbl_tag().

static int mov_write_stss_tag ( AVIOContext pb,
MOVTrack track,
uint32_t  flag 
)
static

Definition at line 254 of file movenc.c.

Referenced by mov_write_stbl_tag().

static int mov_write_sdtp_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 278 of file movenc.c.

Referenced by mov_write_stbl_tag().

static int mov_write_amr_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 301 of file movenc.c.

Referenced by mov_write_audio_tag(), and mov_write_wave_tag().

static int mov_write_ac3_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 315 of file movenc.c.

Referenced by mov_write_audio_tag(), and mov_write_wave_tag().

static int mov_write_eac3_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 533 of file movenc.c.

Referenced by mov_write_audio_tag(), and mov_write_wave_tag().

static int mov_write_extradata_tag ( AVIOContext pb,
MOVTrack track 
)
static

This function writes extradata "as is".

Extradata must be formatted like a valid atom (with size and tag).

Definition at line 590 of file movenc.c.

Referenced by mov_write_audio_tag(), mov_write_video_tag(), and mov_write_wave_tag().

static int mov_write_enda_tag ( AVIOContext pb)
static

Definition at line 596 of file movenc.c.

Referenced by mov_write_wave_tag().

static int mov_write_enda_tag_be ( AVIOContext pb)
static

Definition at line 604 of file movenc.c.

Referenced by mov_write_wave_tag().

static void put_descr ( AVIOContext pb,
int  tag,
unsigned int  size 
)
static

Definition at line 612 of file movenc.c.

Referenced by mov_write_esds_tag(), and mov_write_iods_tag().

static unsigned compute_avg_bitrate ( MOVTrack track)
static

Definition at line 621 of file movenc.c.

Referenced by mov_write_esds_tag().

static int mov_write_esds_tag ( AVIOContext pb,
MOVTrack track 
)
static
static int mov_pcm_le_gt16 ( enum AVCodecID  codec_id)
static

Definition at line 689 of file movenc.c.

Referenced by mov_write_audio_tag(), and mov_write_wave_tag().

static int mov_pcm_be_gt16 ( enum AVCodecID  codec_id)
static

Definition at line 697 of file movenc.c.

Referenced by mov_write_audio_tag(), and mov_write_wave_tag().

static int mov_write_ms_tag ( AVFormatContext s,
AVIOContext pb,
MOVTrack track 
)
static

Definition at line 705 of file movenc.c.

Referenced by mov_write_wave_tag().

static int mov_write_wfex_tag ( AVFormatContext s,
AVIOContext pb,
MOVTrack track 
)
static

Definition at line 717 of file movenc.c.

Referenced by mov_write_audio_tag().

static int mov_write_dfla_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 728 of file movenc.c.

Referenced by mov_write_audio_tag().

static int mov_write_dops_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 748 of file movenc.c.

Referenced by mov_write_audio_tag().

static int mov_write_chan_tag ( AVFormatContext s,
AVIOContext pb,
MOVTrack track 
)
static

Definition at line 771 of file movenc.c.

Referenced by mov_write_audio_tag().

static int mov_write_wave_tag ( AVFormatContext s,
AVIOContext pb,
MOVTrack track 
)
static

Definition at line 799 of file movenc.c.

Referenced by mov_write_audio_tag().

static int mov_write_dvc1_structs ( MOVTrack track,
uint8_t buf 
)
static

Definition at line 842 of file movenc.c.

Referenced by mov_write_dvc1_tag().

static int mov_write_dvc1_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 925 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_glbl_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 941 of file movenc.c.

Referenced by mov_write_audio_tag(), and mov_write_video_tag().

static int mov_get_lpcm_flags ( enum AVCodecID  codec_id)
static

Compute flags for 'lpcm' tag.

See CoreAudioTypes and AudioStreamBasicDescription at Apple.

Definition at line 953 of file movenc.c.

Referenced by mov_write_audio_tag().

static int get_cluster_duration ( MOVTrack track,
int  cluster_idx 
)
static
static int get_samples_per_packet ( MOVTrack track)
static

Definition at line 998 of file movenc.c.

Referenced by mov_write_audio_tag().

static int mov_write_audio_tag ( AVFormatContext s,
AVIOContext pb,
MOVMuxContext mov,
MOVTrack track 
)
static

Definition at line 1019 of file movenc.c.

Referenced by mov_write_stsd_tag().

static int mov_write_d263_tag ( AVIOContext pb)
static

Definition at line 1155 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_av1c_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1167 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_avcc_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1177 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_vpcc_tag ( AVFormatContext s,
AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1187 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_hvcc_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1199 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_avid_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1213 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_dpxe_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1296 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_get_dv_codec_tag ( AVFormatContext s,
MOVTrack track 
)
static

Definition at line 1309 of file movenc.c.

Referenced by mov_get_codec_tag().

static AVRational find_fps ( AVFormatContext s,
AVStream st 
)
static
static int defined_frame_rate ( AVFormatContext s,
AVStream st 
)
static
static int mov_get_mpeg2_xdcam_codec_tag ( AVFormatContext s,
MOVTrack track 
)
static

Definition at line 1361 of file movenc.c.

Referenced by mov_get_codec_tag().

static int mov_get_h264_codec_tag ( AVFormatContext s,
MOVTrack track 
)
static

Definition at line 1423 of file movenc.c.

Referenced by mov_get_codec_tag().

static int mov_get_dnxhd_codec_tag ( AVFormatContext s,
MOVTrack track 
)
static

Definition at line 1503 of file movenc.c.

Referenced by mov_get_codec_tag().

static int mov_get_rawvideo_codec_tag ( AVFormatContext s,
MOVTrack track 
)
static

Definition at line 1512 of file movenc.c.

Referenced by mov_get_codec_tag().

static unsigned int mov_get_codec_tag ( AVFormatContext s,
MOVTrack track 
)
static

Definition at line 1538 of file movenc.c.

Referenced by mov_find_codec_tag().

static unsigned int validate_codec_tag ( const AVCodecTag *const *  tags,
unsigned int  tag,
int  codec_id 
)
static

Check that tag + id is in the table

Definition at line 1592 of file movenc.c.

Referenced by mov_find_codec_tag().

static unsigned int mov_find_codec_tag ( AVFormatContext s,
MOVTrack track 
)
static

Definition at line 1612 of file movenc.c.

Referenced by mov_init().

static int mov_write_uuid_tag_ipod ( AVIOContext pb)
static

Write uuid atom.

Needed to make file play in iPods running newest firmware goes after avcC atom in moov.trak.mdia.minf.stbl.stsd.avc1

Definition at line 1635 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_fiel_tag ( AVIOContext pb,
MOVTrack track,
int  field_order 
)
static

Definition at line 1651 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_subtitle_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1664 of file movenc.c.

Referenced by mov_write_stsd_tag().

static int mov_write_st3d_tag ( AVIOContext pb,
AVStereo3D stereo_3d 
)
static

Definition at line 1681 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_sv3d_tag ( AVFormatContext s,
AVIOContext pb,
AVSphericalMapping spherical_mapping 
)
static

Definition at line 1711 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_clap_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1769 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_pasp_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1784 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_gama_tag ( AVIOContext pb,
MOVTrack track,
double  gamma 
)
static

Definition at line 1797 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_colr_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 1822 of file movenc.c.

Referenced by mov_write_video_tag().

static void find_compressor ( char *  compressor_name,
int  len,
MOVTrack track 
)
static

Definition at line 1903 of file movenc.c.

Referenced by mov_write_video_tag().

static int mov_write_video_tag ( AVIOContext pb,
MOVMuxContext mov,
MOVTrack track 
)
static

Definition at line 1931 of file movenc.c.

Referenced by mov_write_stsd_tag().

static int mov_write_rtp_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 2107 of file movenc.c.

Referenced by mov_write_stsd_tag().

static int mov_write_source_reference_tag ( AVIOContext pb,
MOVTrack track,
const char *  reel_name 
)
static

Definition at line 2127 of file movenc.c.

Referenced by mov_write_tmcd_tag().

static int mov_write_tmcd_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 2146 of file movenc.c.

Referenced by mov_write_stsd_tag().

static int mov_write_gpmd_tag ( AVIOContext pb,
const MOVTrack track 
)
static

Definition at line 2202 of file movenc.c.

Referenced by mov_write_stsd_tag().

static int mov_write_stsd_tag ( AVFormatContext s,
AVIOContext pb,
MOVMuxContext mov,
MOVTrack track 
)
static

Definition at line 2214 of file movenc.c.

Referenced by mov_write_stbl_tag().

static int mov_write_ctts_tag ( AVFormatContext s,
AVIOContext pb,
MOVTrack track 
)
static

Definition at line 2236 of file movenc.c.

Referenced by mov_write_stbl_tag().

static int mov_write_stts_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 2277 of file movenc.c.

Referenced by mov_write_stbl_tag().

static int mov_write_dref_tag ( AVIOContext pb)
static

Definition at line 2322 of file movenc.c.

Referenced by mov_write_dinf_tag().

static int mov_preroll_write_stbl_atoms ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 2337 of file movenc.c.

Referenced by mov_write_stbl_tag().

static int mov_write_stbl_tag ( AVFormatContext s,
AVIOContext pb,
MOVMuxContext mov,
MOVTrack track 
)
static

Definition at line 2432 of file movenc.c.

Referenced by mov_write_minf_tag().

static int mov_write_dinf_tag ( AVIOContext pb)
static

Definition at line 2467 of file movenc.c.

Referenced by mov_write_minf_tag().

static int mov_write_nmhd_tag ( AVIOContext pb)
static

Definition at line 2476 of file movenc.c.

Referenced by mov_write_minf_tag().

static int mov_write_tcmi_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 2484 of file movenc.c.

Referenced by mov_write_gmhd_tag().

static int mov_write_gmhd_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 2506 of file movenc.c.

Referenced by mov_write_minf_tag().

static int mov_write_smhd_tag ( AVIOContext pb)
static

Definition at line 2558 of file movenc.c.

Referenced by mov_write_minf_tag().

static int mov_write_vmhd_tag ( AVIOContext pb)
static

Definition at line 2568 of file movenc.c.

Referenced by mov_write_minf_tag().

static int is_clcp_track ( MOVTrack track)
static

Definition at line 2577 of file movenc.c.

Referenced by mov_write_hdlr_tag(), mov_write_minf_tag(), and mov_write_trak_tag().

static int mov_write_hdlr_tag ( AVFormatContext s,
AVIOContext pb,
MOVTrack track 
)
static

Definition at line 2583 of file movenc.c.

Referenced by mov_write_mdia_tag(), and mov_write_minf_tag().

static int mov_write_hmhd_tag ( AVIOContext pb)
static

Definition at line 2659 of file movenc.c.

Referenced by mov_write_minf_tag().

static int mov_write_minf_tag ( AVFormatContext s,
AVIOContext pb,
MOVMuxContext mov,
MOVTrack track 
)
static

Definition at line 2674 of file movenc.c.

Referenced by mov_write_mdia_tag().

static int mov_write_mdhd_tag ( AVIOContext pb,
MOVMuxContext mov,
MOVTrack track 
)
static

Definition at line 2709 of file movenc.c.

Referenced by mov_write_mdia_tag().

static int mov_write_mdia_tag ( AVFormatContext s,
AVIOContext pb,
MOVMuxContext mov,
MOVTrack track 
)
static

Definition at line 2748 of file movenc.c.

Referenced by mov_write_trak_tag().

static void write_matrix ( AVIOContext pb,
int16_t  a,
int16_t  b,
int16_t  c,
int16_t  d,
int16_t  tx,
int16_t  ty 
)
static

Definition at line 2767 of file movenc.c.

Referenced by mov_write_mvhd_tag(), and mov_write_tkhd_tag().

static int mov_write_tkhd_tag ( AVIOContext pb,
MOVMuxContext mov,
MOVTrack track,
AVStream st 
)
static

Definition at line 2781 of file movenc.c.

Referenced by mov_write_trak_tag().

static int mov_write_tapt_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 2896 of file movenc.c.

Referenced by mov_write_trak_tag().

static int mov_write_edts_tag ( AVIOContext pb,
MOVMuxContext mov,
MOVTrack track 
)
static

Definition at line 2928 of file movenc.c.

Referenced by mov_write_trak_tag().

static int mov_write_tref_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 3013 of file movenc.c.

Referenced by mov_write_trak_tag().

static int mov_write_uuid_tag_psp ( AVIOContext pb,
MOVTrack mov 
)
static

Definition at line 3024 of file movenc.c.

Referenced by mov_write_trak_tag().

static int mov_write_udta_sdp ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 3042 of file movenc.c.

Referenced by mov_write_trak_tag().

static int mov_write_track_metadata ( AVIOContext pb,
AVStream st,
const char *  tag,
const char *  str 
)
static

Definition at line 3063 of file movenc.c.

Referenced by mov_write_track_udta_tag().

static int mov_write_track_udta_tag ( AVIOContext pb,
MOVMuxContext mov,
AVStream st 
)
static

Definition at line 3077 of file movenc.c.

Referenced by mov_write_trak_tag().

static int mov_write_trak_tag ( AVFormatContext s,
AVIOContext pb,
MOVMuxContext mov,
MOVTrack track,
AVStream st 
)
static

Definition at line 3104 of file movenc.c.

Referenced by mov_write_moov_tag().

static int mov_write_iods_tag ( AVIOContext pb,
MOVMuxContext mov 
)
static

Definition at line 3157 of file movenc.c.

Referenced by mov_write_moov_tag().

static int mov_write_trex_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 3186 of file movenc.c.

Referenced by mov_write_mvex_tag().

static int mov_write_mvex_tag ( AVIOContext pb,
MOVMuxContext mov 
)
static

Definition at line 3199 of file movenc.c.

Referenced by mov_write_moov_tag().

static int mov_write_mvhd_tag ( AVIOContext pb,
MOVMuxContext mov 
)
static

Definition at line 3210 of file movenc.c.

Referenced by mov_write_moov_tag().

static int mov_write_itunes_hdlr_tag ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s 
)
static

Definition at line 3270 of file movenc.c.

Referenced by mov_write_meta_tag().

static int mov_write_string_data_tag ( AVIOContext pb,
const char *  data,
int  lang,
int  long_style 
)
static

Definition at line 3286 of file movenc.c.

Referenced by mov_write_mdta_ilst_tag(), and mov_write_string_tag().

static int mov_write_string_tag ( AVIOContext pb,
const char *  name,
const char *  value,
int  lang,
int  long_style 
)
static

Definition at line 3306 of file movenc.c.

Referenced by mov_write_ilst_tag(), and mov_write_string_metadata().

static AVDictionaryEntry* get_metadata_lang ( AVFormatContext s,
const char *  tag,
int lang 
)
static

Definition at line 3320 of file movenc.c.

Referenced by mov_write_loci_tag(), and mov_write_string_metadata().

static int mov_write_string_metadata ( AVFormatContext s,
AVIOContext pb,
const char *  name,
const char *  tag,
int  long_style 
)
static

Definition at line 3345 of file movenc.c.

Referenced by mov_write_ilst_tag(), and mov_write_udta_tag().

static int mov_write_tmpo_tag ( AVIOContext pb,
AVFormatContext s 
)
static

Definition at line 3357 of file movenc.c.

Referenced by mov_write_ilst_tag().

static int mov_write_loci_tag ( AVFormatContext s,
AVIOContext pb 
)
static

Definition at line 3375 of file movenc.c.

Referenced by mov_write_udta_tag().

static int mov_write_trkn_tag ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s,
int  disc 
)
static

Definition at line 3426 of file movenc.c.

Referenced by mov_write_ilst_tag().

static int mov_write_int8_metadata ( AVFormatContext s,
AVIOContext pb,
const char *  name,
const char *  tag,
int  len 
)
static

Definition at line 3453 of file movenc.c.

Referenced by mov_write_ilst_tag().

static int mov_write_covr ( AVIOContext pb,
AVFormatContext s 
)
static

Definition at line 3480 of file movenc.c.

Referenced by mov_write_ilst_tag().

static int mov_write_ilst_tag ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s 
)
static

Definition at line 3508 of file movenc.c.

Referenced by mov_write_meta_tag().

static int mov_write_mdta_hdlr_tag ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s 
)
static

Definition at line 3548 of file movenc.c.

Referenced by mov_write_meta_tag().

static int mov_write_mdta_keys_tag ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s 
)
static

Definition at line 3563 of file movenc.c.

Referenced by mov_write_meta_tag().

static int mov_write_mdta_ilst_tag ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s 
)
static

Definition at line 3591 of file movenc.c.

Referenced by mov_write_meta_tag().

static int mov_write_meta_tag ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s 
)
static

Definition at line 3613 of file movenc.c.

Referenced by mov_write_udta_tag().

static int mov_write_raw_metadata_tag ( AVFormatContext s,
AVIOContext pb,
const char *  name,
const char *  key 
)
static

Definition at line 3635 of file movenc.c.

Referenced by mov_write_udta_tag().

static int ascii_to_wc ( AVIOContext pb,
const uint8_t b 
)
static

Definition at line 3655 of file movenc.c.

Referenced by mov_write_psp_udta_tag().

static uint16_t language_code ( const char *  str)
static
static int mov_write_3gp_udta_tag ( AVIOContext pb,
AVFormatContext s,
const char *  tag,
const char *  str 
)
static

Definition at line 3673 of file movenc.c.

Referenced by mov_write_udta_tag().

static int mov_write_chpl_tag ( AVIOContext pb,
AVFormatContext s 
)
static

Definition at line 3695 of file movenc.c.

Referenced by mov_write_udta_tag().

static int mov_write_udta_tag ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s 
)
static

Definition at line 3721 of file movenc.c.

Referenced by mov_write_moov_tag().

static void mov_write_psp_udta_tag ( AVIOContext pb,
const char *  str,
const char *  lang,
int  type 
)
static

Definition at line 3779 of file movenc.c.

Referenced by mov_write_uuidusmt_tag().

static int mov_write_uuidusmt_tag ( AVIOContext pb,
AVFormatContext s 
)
static

Definition at line 3792 of file movenc.c.

Referenced by mov_write_moov_tag().

static void build_chunks ( MOVTrack trk)
static

Definition at line 3830 of file movenc.c.

Referenced by mov_write_moov_tag().

static int mov_setup_track_ids ( MOVMuxContext mov,
AVFormatContext s 
)
static

Assign track ids.

If option "use_stream_ids_as_track_ids" is set, the stream ids are used as track ids.

This assumes mov->tracks and s->streams are in the same order and there are no gaps in either of them (so mov->tracks[n] refers to s->streams[n]).

As an exception, there can be more entries in s->streams than in mov->tracks, in which case new track ids are generated (starting after the largest found stream id).

Definition at line 3865 of file movenc.c.

Referenced by mov_write_isml_manifest(), and mov_write_moov_tag().

static int mov_write_moov_tag ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s 
)
static

Definition at line 3899 of file movenc.c.

Referenced by get_moov_size(), mov_flush_fragment(), mov_write_header(), and mov_write_trailer().

static void param_write_int ( AVIOContext pb,
const char *  name,
int  value 
)
static

Definition at line 3975 of file movenc.c.

Referenced by mov_write_isml_manifest().

static void param_write_string ( AVIOContext pb,
const char *  name,
const char *  value 
)
static

Definition at line 3980 of file movenc.c.

Referenced by mov_write_isml_manifest().

static void param_write_hex ( AVIOContext pb,
const char *  name,
const uint8_t value,
int  len 
)
static

Definition at line 3985 of file movenc.c.

Referenced by mov_write_isml_manifest().

static int mov_write_isml_manifest ( AVIOContext pb,
MOVMuxContext mov,
AVFormatContext s 
)
static

Definition at line 3994 of file movenc.c.

Referenced by mov_write_header().

static int mov_write_mfhd_tag ( AVIOContext pb,
MOVMuxContext mov 
)
static

Definition at line 4126 of file movenc.c.

Referenced by mov_write_moof_tag_internal().

static uint32_t get_sample_flags ( MOVTrack track,
MOVIentry entry 
)
static

Definition at line 4135 of file movenc.c.

Referenced by mov_write_tfhd_tag(), and mov_write_trun_tag().

static int mov_write_tfhd_tag ( AVIOContext pb,
MOVMuxContext mov,
MOVTrack track,
int64_t  moof_offset 
)
static

Definition at line 4141 of file movenc.c.

Referenced by mov_write_traf_tag().

static int mov_write_trun_tag ( AVIOContext pb,
MOVMuxContext mov,
MOVTrack track,
int  moof_size,
int  first,
int  end 
)
static

Definition at line 4201 of file movenc.c.

Referenced by mov_write_traf_tag().

static int mov_write_tfxd_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 4257 of file movenc.c.

Referenced by mov_write_traf_tag().

static int mov_write_tfrf_tag ( AVIOContext pb,
MOVMuxContext mov,
MOVTrack track,
int  entry 
)
static

Definition at line 4278 of file movenc.c.

Referenced by mov_write_tfrf_tags().

static int mov_write_tfrf_tags ( AVIOContext pb,
MOVMuxContext mov,
MOVTrack track 
)
static

Definition at line 4313 of file movenc.c.

Referenced by mov_add_tfra_entries().

static int mov_add_tfra_entries ( AVIOContext pb,
MOVMuxContext mov,
int  tracks,
int  size 
)
static

Definition at line 4327 of file movenc.c.

Referenced by mov_write_moof_tag().

static void mov_prune_frag_info ( MOVMuxContext mov,
int  tracks,
int  max 
)
static

Definition at line 4367 of file movenc.c.

Referenced by mov_write_moof_tag().

static int mov_write_tfdt_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 4381 of file movenc.c.

Referenced by mov_write_traf_tag().

static int mov_write_traf_tag ( AVIOContext pb,
MOVMuxContext mov,
MOVTrack track,
int64_t  moof_offset,
int  moof_size 
)
static

Definition at line 4393 of file movenc.c.

Referenced by mov_write_moof_tag_internal().

static int mov_write_moof_tag_internal ( AVIOContext pb,
MOVMuxContext mov,
int  tracks,
int  moof_size 
)
static

Definition at line 4433 of file movenc.c.

Referenced by mov_write_moof_tag().

static int mov_write_sidx_tag ( AVIOContext pb,
MOVTrack track,
int  ref_size,
int  total_sidx_size 
)
static

Definition at line 4456 of file movenc.c.

Referenced by mov_write_sidx_tags().

static int mov_write_sidx_tags ( AVIOContext pb,
MOVMuxContext mov,
int  tracks,
int  ref_size 
)
static

Definition at line 4517 of file movenc.c.

Referenced by get_sidx_size(), mov_write_moof_tag(), and mov_write_trailer().

static int mov_write_prft_tag ( AVIOContext pb,
MOVMuxContext mov,
int  tracks 
)
static

Definition at line 4552 of file movenc.c.

Referenced by mov_write_moof_tag().

static int mov_write_moof_tag ( AVIOContext pb,
MOVMuxContext mov,
int  tracks,
int64_t  mdat_size 
)
static

Definition at line 4595 of file movenc.c.

Referenced by mov_flush_fragment().

static int mov_write_tfra_tag ( AVIOContext pb,
MOVTrack track 
)
static

Definition at line 4626 of file movenc.c.

Referenced by mov_write_mfra_tag().

static int mov_write_mfra_tag ( AVIOContext pb,
MOVMuxContext mov 
)
static

Definition at line 4650 of file movenc.c.

Referenced by mov_write_trailer().

static int mov_write_mdat_tag ( AVIOContext pb,
MOVMuxContext mov 
)
static

Definition at line 4676 of file movenc.c.

Referenced by mov_write_header().

static int mov_write_ftyp_tag ( AVIOContext pb,
AVFormatContext s 
)
static

Definition at line 4688 of file movenc.c.

Referenced by mov_write_identification().

static int mov_write_uuidprof_tag ( AVIOContext pb,
AVFormatContext s 
)
static

Definition at line 4767 of file movenc.c.

Referenced by mov_write_identification().

static int mov_write_identification ( AVIOContext pb,
AVFormatContext s 
)
static

Definition at line 4838 of file movenc.c.

Referenced by mov_flush_fragment(), and mov_write_header().

static int mov_parse_mpeg2_frame ( AVPacket pkt,
uint32_t *  flags 
)
static

Definition at line 4867 of file movenc.c.

Referenced by ff_mov_write_packet().

static void mov_parse_vc1_frame ( AVPacket pkt,
MOVTrack trk 
)
static

Definition at line 4888 of file movenc.c.

Referenced by ff_mov_write_packet().

static int mov_flush_fragment_interleaving ( AVFormatContext s,
MOVTrack track 
)
static

Definition at line 4948 of file movenc.c.

Referenced by ff_mov_write_packet(), and mov_flush_fragment().

static int mov_flush_fragment ( AVFormatContext s,
int  force 
)
static

Definition at line 4974 of file movenc.c.

Referenced by mov_auto_flush_fragment(), and mov_write_packet().

static int mov_auto_flush_fragment ( AVFormatContext s,
int  force 
)
static

Definition at line 5184 of file movenc.c.

Referenced by mov_write_single_packet(), and mov_write_trailer().

static int check_pkt ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 5198 of file movenc.c.

Referenced by ff_mov_write_packet(), and mov_write_single_packet().

int ff_mov_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static int mov_write_single_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 5524 of file movenc.c.

Referenced by mov_write_packet(), and mov_write_subtitle_end_packet().

static int mov_write_subtitle_end_packet ( AVFormatContext s,
int  stream_index,
int64_t  dts 
)
static

Definition at line 5609 of file movenc.c.

Referenced by mov_write_packet(), and mov_write_trailer().

static int mov_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 5630 of file movenc.c.

static int mov_create_chapter_track ( AVFormatContext s,
int  tracknum 
)
static

Definition at line 5732 of file movenc.c.

Referenced by mov_write_header(), and mov_write_trailer().

static int mov_check_timecode_track ( AVFormatContext s,
AVTimecode tc,
int  src_index,
const char *  tcstr 
)
static

Definition at line 5830 of file movenc.c.

Referenced by mov_init(), and mov_write_header().

static int mov_create_timecode_track ( AVFormatContext s,
int  index,
int  src_index,
AVTimecode  tc 
)
static

Definition at line 5839 of file movenc.c.

Referenced by mov_write_header().

static void enable_tracks ( AVFormatContext s)
static

Definition at line 5888 of file movenc.c.

Referenced by mov_init().

static void mov_free ( AVFormatContext s)
static

Definition at line 5930 of file movenc.c.

static uint32_t rgb_to_yuv ( uint32_t  rgb)
static

Definition at line 5959 of file movenc.c.

Referenced by mov_create_dvd_sub_decoder_specific_info().

static int mov_create_dvd_sub_decoder_specific_info ( MOVTrack track,
AVStream st 
)
static

Definition at line 5975 of file movenc.c.

Referenced by mov_write_header().

static int mov_init ( AVFormatContext s)
static

Definition at line 6024 of file movenc.c.

static int mov_write_header ( AVFormatContext s)
static

Definition at line 6336 of file movenc.c.

static int get_sidx_size ( AVFormatContext s)
static

Definition at line 6489 of file movenc.c.

Referenced by compute_sidx_size().

static int compute_moov_size ( AVFormatContext s)
static

Definition at line 6507 of file movenc.c.

Referenced by shift_data().

static int compute_sidx_size ( AVFormatContext s)
static

Definition at line 6532 of file movenc.c.

Referenced by shift_data().

static int shift_data ( AVFormatContext s)
static

Definition at line 6547 of file movenc.c.

Referenced by mov_write_trailer().

static int mov_write_trailer ( AVFormatContext s)
static

Definition at line 6613 of file movenc.c.

static int mov_check_bitstream ( struct AVFormatContext s,
const AVPacket pkt 
)
static

Definition at line 6728 of file movenc.c.

Variable Documentation

const AVOption options[]
static

Definition at line 60 of file movenc.c.

enum AVPixelFormat pix_fmt

Definition at line 1482 of file movenc.c.

Referenced by mov_get_rawvideo_codec_tag(), and mov_init().

uint32_t tag
Examples:
metadata.c, and remuxing.c.

Definition at line 1483 of file movenc.c.

Referenced by aac_encode_frame(), aal_read_packet(), add_input_streams(), aiff_read_header(), ape_read_header(), apng_find_chunk(), apng_probe(), apng_read_header(), apng_read_packet(), asf_write_header1(), av_codec_get_tag(), av_dict_set(), av_find_info_tag(), avformat_find_stream_info(), avformat_match_stream_specifier(), avi_extract_stream_metadata(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_nikon(), avi_stream2fourcc(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_packet_internal(), cfhd_decode(), check_tag(), copy_tag(), decode_aiff_header(), decode_frame_common(), decode_interframe_v4(), decode_interframe_v4a(), decompress_2(), decompress_5(), decompress_68(), dump_metadata(), dxa_read_header(), dxa_read_packet(), dxv_decode(), ea_read_packet(), eval_function(), ff_aac_ltp_insert_new_frame(), ff_mov_get_channel_layout_tag(), ff_mov_read_esds(), ff_mp4_read_dec_config_descr(), ff_vorbiscomment_length(), ff_vorbiscomment_write(), ffat_convert_layout(), ffat_init_encoder(), find_sidx(), get_swf_tag(), guess_ni_flag(), gxf_material_tags(), gxf_track_tags(), hq_hqa_decode_frame(), id3v1_create_tag(), id3v1_set_string(), id3v2_check_write_tag(), id3v2_parse(), iff_read_header(), ircam_read_header(), ircam_write_header(), ivr_read_header(), lz_unpack(), main(), matroska_convert_tags(), metasound_decode_init(), mkv_write_codecprivate(), mkv_write_header(), mkv_write_simpletag(), mkv_write_stereo_mode(), mkv_write_tag(), mkv_write_tags(), mkv_write_track(), mmf_read_header(), mov_get_codec_tag(), mov_get_dnxhd_codec_tag(), mov_get_dv_codec_tag(), mov_get_h264_codec_tag(), mov_get_mpeg2_xdcam_codec_tag(), mov_get_rawvideo_codec_tag(), mov_probe(), mov_read_custom(), mov_read_meta(), mov_read_sv3d(), mov_read_udta_string(), mov_write_audio_tag(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), mpegts_write_pmt(), mxf_parse_package_comments(), new_output_stream(), nuv_resync(), ogm_header(), parse_dsd_diin(), parse_dsd_prop(), parse_fragment(), parse_mp4_descr(), parse_multipart_header(), parse_video_info(), pmt_cb(), process_line(), put_meta(), put_swf_end_tag(), put_swf_tag(), qcp_read_packet(), qt_rtp_parse_packet(), rdt_load_mdpr(), read_chapter(), read_header(), read_moof_duration(), rfc4175_parse_format(), rm_read_header(), rv10_write_header(), sami_paragraph_to_ass(), set_codec_str(), show_frame(), show_tags(), siff_probe(), siff_read_header(), skip_tag(), smjpeg_write_header(), sol_read_header(), swf_read_header(), swf_read_packet(), tiff_decode_tag(), validate_codec_tag(), vs2av_log(), write_metadata(), write_odml_master(), write_stream_codec_info(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), xan_decode_frame(), xv_write_header(), xwma_read_header(), yop_decode_frame(), and yop_paint_block().

unsigned bps
const { ... } mov_pix_fmt_tags[]
Initial value:
= {
{ AV_PIX_FMT_YUYV422, MKTAG('y','u','v','2'), 0 },
{ AV_PIX_FMT_YUYV422, MKTAG('y','u','v','s'), 0 },
{ AV_PIX_FMT_UYVY422, MKTAG('2','v','u','y'), 0 },
{ AV_PIX_FMT_RGB555BE,MKTAG('r','a','w',' '), 16 },
{ AV_PIX_FMT_RGB555LE,MKTAG('L','5','5','5'), 16 },
{ AV_PIX_FMT_RGB565LE,MKTAG('L','5','6','5'), 16 },
{ AV_PIX_FMT_RGB565BE,MKTAG('B','5','6','5'), 16 },
{ AV_PIX_FMT_GRAY16BE,MKTAG('b','1','6','g'), 16 },
{ AV_PIX_FMT_RGB24, MKTAG('r','a','w',' '), 24 },
{ AV_PIX_FMT_BGR24, MKTAG('2','4','B','G'), 24 },
{ AV_PIX_FMT_ARGB, MKTAG('r','a','w',' '), 32 },
{ AV_PIX_FMT_BGRA, MKTAG('B','G','R','A'), 32 },
{ AV_PIX_FMT_RGBA, MKTAG('R','G','B','A'), 32 },
{ AV_PIX_FMT_ABGR, MKTAG('A','B','G','R'), 32 },
{ AV_PIX_FMT_RGB48BE, MKTAG('b','4','8','r'), 48 },
}
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
Definition: pixfmt.h:81
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:68
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined ...
Definition: pixfmt.h:108
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian
Definition: pixfmt.h:106
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
Definition: pixfmt.h:105
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:94
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:95
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:92
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:93
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:69
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
Definition: pixfmt.h:67
Y , 16bpp, big-endian.
Definition: pixfmt.h:97
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian , X=unused/undefined
Definition: pixfmt.h:107
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:102
#define MKTAG(a, b, c, d)
Definition: common.h:366

Referenced by mov_get_rawvideo_codec_tag().

const AVCodecTag codec_cover_image_tags[]
static
Initial value:

Definition at line 1585 of file movenc.c.

const uint16_t fiel_data[]
static
Initial value:
= {
0x0000, 0x0100, 0x0201, 0x0206, 0x0209, 0x020e
}

Definition at line 1647 of file movenc.c.

const AVCodecTag codec_3gp_tags[]
static
Initial value:
= {
{ AV_CODEC_ID_H263, MKTAG('s','2','6','3') },
{ AV_CODEC_ID_H264, MKTAG('a','v','c','1') },
{ AV_CODEC_ID_MPEG4, MKTAG('m','p','4','v') },
{ AV_CODEC_ID_AAC, MKTAG('m','p','4','a') },
{ AV_CODEC_ID_AMR_NB, MKTAG('s','a','m','r') },
{ AV_CODEC_ID_AMR_WB, MKTAG('s','a','w','b') },
{ AV_CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') },
}
#define MKTAG(a, b, c, d)
Definition: common.h:366

Definition at line 6743 of file movenc.c.

const AVCodecTag codec_mp4_tags[]

Definition at line 6754 of file movenc.c.

const AVCodecTag codec_ism_tags[]
Initial value:
= {
{ AV_CODEC_ID_WMAPRO , MKTAG('w', 'm', 'a', ' ') },
}
#define MKTAG(a, b, c, d)
Definition: common.h:366

Definition at line 6788 of file movenc.c.

const AVCodecTag codec_ipod_tags[]
static
Initial value:
= {
{ AV_CODEC_ID_H264, MKTAG('a','v','c','1') },
{ AV_CODEC_ID_MPEG4, MKTAG('m','p','4','v') },
{ AV_CODEC_ID_AAC, MKTAG('m','p','4','a') },
{ AV_CODEC_ID_ALAC, MKTAG('a','l','a','c') },
{ AV_CODEC_ID_AC3, MKTAG('a','c','-','3') },
{ AV_CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') },
{ AV_CODEC_ID_MOV_TEXT, MKTAG('t','e','x','t') },
}
#define MKTAG(a, b, c, d)
Definition: common.h:366

Definition at line 6793 of file movenc.c.

const AVCodecTag codec_f4v_tags[]
static
Initial value:
= {
{ AV_CODEC_ID_MP3, MKTAG('.','m','p','3') },
{ AV_CODEC_ID_AAC, MKTAG('m','p','4','a') },
{ AV_CODEC_ID_H264, MKTAG('a','v','c','1') },
{ AV_CODEC_ID_VP6A, MKTAG('V','P','6','A') },
{ AV_CODEC_ID_VP6F, MKTAG('V','P','6','F') },
}
preferred ID for decoding MPEG audio layer 1, 2 or 3
Definition: avcodec.h:559
#define MKTAG(a, b, c, d)
Definition: common.h:366

Definition at line 6804 of file movenc.c.