#include "avformat.h"
#include "riff.h"
#include "avio.h"
#include "isom.h"
#include "avc.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/put_bits.h"
#include <assert.h>
Go to the source code of this file.
#define MODE_3G2 0x10 |
#define MODE_3GP 0x04 |
Definition at line 40 of file movenc.c.
Referenced by mov_find_codec_tag(), mov_write_ftyp_tag(), mov_write_header(), and mov_write_udta_tag().
#define MODE_IPOD 0x20 |
Definition at line 44 of file movenc.c.
Referenced by mov_find_codec_tag(), mov_write_ftyp_tag(), mov_write_header(), and mov_write_video_tag().
#define MODE_MOV 0x02 |
Definition at line 39 of file movenc.c.
Referenced by mov_write_amr_tag(), mov_write_audio_tag(), mov_write_ftyp_tag(), mov_write_hdlr_tag(), mov_write_header(), mov_write_mdat_tag(), mov_write_mdhd_tag(), mov_write_minf_tag(), mov_write_packet(), mov_write_stbl_tag(), mov_write_udta_tag(), and mov_write_video_tag().
#define MODE_MP4 0x01 |
Definition at line 38 of file movenc.c.
Referenced by mov_find_codec_tag(), mov_write_ftyp_tag(), and mov_write_header().
#define MODE_PSP 0x08 |
Definition at line 41 of file movenc.c.
Referenced by mov_find_codec_tag(), mov_write_ftyp_tag(), mov_write_header(), mov_write_moov_tag(), and mov_write_trak_tag().
#define MOV_INDEX_CLUSTER_SIZE 16384 |
#define MOV_PARTIAL_SYNC_SAMPLE 0x0002 |
Definition at line 54 of file movenc.c.
Referenced by mov_parse_mpeg2_frame(), mov_write_packet(), and mov_write_stbl_tag().
#define MOV_SYNC_SAMPLE 0x0001 |
Definition at line 53 of file movenc.c.
Referenced by mov_parse_mpeg2_frame(), mov_write_packet(), mov_write_stbl_tag(), and mov_write_stss_tag().
#define MOV_TIMESCALE 1000 |
Definition at line 36 of file movenc.c.
Referenced by mov_write_edts_tag(), mov_write_mvhd_tag(), and mov_write_tkhd_tag().
#define MOV_TRACK_CTTS 0x0001 |
Definition at line 67 of file movenc.c.
Referenced by mov_write_packet(), mov_write_stbl_tag(), and mov_write_trak_tag().
#define MOV_TRACK_STPS 0x0002 |
static int ascii_to_wc | ( | ByteIOContext * | pb, | |
const uint8_t * | b | |||
) | [static] |
static unsigned int descrLength | ( | unsigned int | len | ) | [static] |
static int ipod_get_codec_tag | ( | AVFormatContext * | s, | |
MOVTrack * | track | |||
) | [static] |
static uint16_t language_code | ( | const char * | str | ) | [static] |
Definition at line 1489 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), mov_write_psp_udta_tag(), and mov_write_uuidusmt_tag().
static int mov_find_codec_tag | ( | AVFormatContext * | s, | |
MOVTrack * | track | |||
) | [static] |
static int mov_get_codec_tag | ( | AVFormatContext * | s, | |
MOVTrack * | track | |||
) | [static] |
static int mov_get_dv_codec_tag | ( | AVFormatContext * | s, | |
MOVTrack * | track | |||
) | [static] |
static int mov_get_lpcm_flags | ( | enum CodecID | codec_id | ) | [static] |
Compute flags for 'lpcm' tag.
See CoreAudioTypes and AudioStreamBasicDescription at Apple.
Definition at line 415 of file movenc.c.
Referenced by mov_write_audio_tag().
static int mov_get_rawvideo_codec_tag | ( | AVFormatContext * | s, | |
MOVTrack * | track | |||
) | [static] |
static int mov_parse_mpeg2_frame | ( | AVPacket * | pkt, | |
uint32_t * | flags | |||
) | [static] |
static int mov_pcm_le_gt16 | ( | enum CodecID | codec_id | ) | [static] |
Definition at line 362 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
static int mov_write_3gp_udta_tag | ( | ByteIOContext * | pb, | |
AVFormatContext * | s, | |||
const char * | tag, | |||
const char * | str | |||
) | [static] |
static int mov_write_ac3_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
Definition at line 230 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
static int mov_write_amr_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
Definition at line 216 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
static int mov_write_audio_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_avcc_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_avid_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_ctts_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_d263_tag | ( | ByteIOContext * | pb | ) | [static] |
static int mov_write_dinf_tag | ( | ByteIOContext * | pb | ) | [static] |
static int mov_write_dref_tag | ( | ByteIOContext * | pb | ) | [static] |
static int mov_write_edts_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_enda_tag | ( | ByteIOContext * | pb | ) | [static] |
static int mov_write_esds_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
Definition at line 308 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_video_tag(), and mov_write_wave_tag().
static int mov_write_extradata_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
This function writes extradata "as is".
Extradata must be formated like a valid atom (with size and tag)
Definition at line 278 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
static int mov_write_ftyp_tag | ( | ByteIOContext * | pb, | |
AVFormatContext * | s | |||
) | [static] |
static int mov_write_glbl_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
Definition at line 403 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_video_tag().
static int mov_write_gmhd_tag | ( | ByteIOContext * | pb | ) | [static] |
static int mov_write_hdlr_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
Definition at line 1042 of file movenc.c.
Referenced by mov_write_mdia_tag(), and mov_write_minf_tag().
static int mov_write_header | ( | AVFormatContext * | s | ) | [static] |
static int mov_write_ilst_tag | ( | ByteIOContext * | pb, | |
MOVMuxContext * | mov, | |||
AVFormatContext * | s | |||
) | [static] |
static int mov_write_itunes_hdlr_tag | ( | ByteIOContext * | pb, | |
MOVMuxContext * | mov, | |||
AVFormatContext * | s | |||
) | [static] |
static int mov_write_mdat_tag | ( | ByteIOContext * | pb, | |
MOVMuxContext * | mov | |||
) | [static] |
static int mov_write_mdhd_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_mdia_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_meta_tag | ( | ByteIOContext * | pb, | |
MOVMuxContext * | mov, | |||
AVFormatContext * | s | |||
) | [static] |
static int mov_write_minf_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_moov_tag | ( | ByteIOContext * | pb, | |
MOVMuxContext * | mov, | |||
AVFormatContext * | s | |||
) | [static] |
static int mov_write_mvhd_tag | ( | ByteIOContext * | pb, | |
MOVMuxContext * | mov | |||
) | [static] |
static int mov_write_nmhd_tag | ( | ByteIOContext * | pb | ) | [static] |
static int mov_write_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static void mov_write_psp_udta_tag | ( | ByteIOContext * | pb, | |
const char * | str, | |||
const char * | lang, | |||
int | type | |||
) | [static] |
static int mov_write_smhd_tag | ( | ByteIOContext * | pb | ) | [static] |
static int mov_write_stbl_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_stco_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_string_data_tag | ( | ByteIOContext * | pb, | |
const char * | data, | |||
int | lang, | |||
int | long_style | |||
) | [static] |
static int mov_write_string_metadata | ( | AVFormatContext * | s, | |
ByteIOContext * | pb, | |||
const char * | name, | |||
const char * | tag, | |||
int | long_style | |||
) | [static] |
Definition at line 1378 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_udta_tag().
static int mov_write_string_tag | ( | ByteIOContext * | pb, | |
const char * | name, | |||
const char * | value, | |||
int | lang, | |||
int | long_style | |||
) | [static] |
Definition at line 1366 of file movenc.c.
Referenced by mov_write_ilst_tag(), mov_write_string_metadata(), and mov_write_udta_tag().
static int mov_write_stsc_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_stsd_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_stss_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track, | |||
uint32_t | flag | |||
) | [static] |
static int mov_write_stsz_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_stts_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_subtitle_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_svq3_tag | ( | ByteIOContext * | pb | ) | [static] |
static int mov_write_tkhd_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track, | |||
AVStream * | st | |||
) | [static] |
static int mov_write_trailer | ( | AVFormatContext * | s | ) | [static] |
static int mov_write_trak_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track, | |||
AVStream * | st | |||
) | [static] |
static int mov_write_trkn_tag | ( | ByteIOContext * | pb, | |
MOVMuxContext * | mov, | |||
AVFormatContext * | s | |||
) | [static] |
static int mov_write_udta_tag | ( | ByteIOContext * | pb, | |
MOVMuxContext * | mov, | |||
AVFormatContext * | s | |||
) | [static] |
static int mov_write_uuid_tag_ipod | ( | ByteIOContext * | 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 773 of file movenc.c.
Referenced by mov_write_video_tag().
static int mov_write_uuid_tag_psp | ( | ByteIOContext * | pb, | |
MOVTrack * | mov | |||
) | [static] |
static void mov_write_uuidprof_tag | ( | ByteIOContext * | pb, | |
AVFormatContext * | s | |||
) | [static] |
static int mov_write_uuidusmt_tag | ( | ByteIOContext * | pb, | |
AVFormatContext * | s | |||
) | [static] |
static int mov_write_video_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mov_write_vmhd_tag | ( | ByteIOContext * | pb | ) | [static] |
static int mov_write_wave_tag | ( | ByteIOContext * | pb, | |
MOVTrack * | track | |||
) | [static] |
static int mp4_get_codec_tag | ( | AVFormatContext * | s, | |
MOVTrack * | track | |||
) | [static] |
static void putDescr | ( | ByteIOContext * | pb, | |
int | tag, | |||
unsigned int | size | |||
) | [static] |
static int64_t updateSize | ( | ByteIOContext * | pb, | |
int64_t | pos | |||
) | [static] |
static int utf8len | ( | const uint8_t * | b | ) | [static] |
Definition at line 1467 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), and mov_write_psp_udta_tag().
unsigned bps |
Definition at line 674 of file movenc.c.
Referenced by ff_put_wav_header(), ff_wma_init(), gxf_packet(), nsv_read_chunk(), output_packet(), raw_read_packet(), and tta_read_header().
const AVCodecTag codec_3gp_tags[] [static] |
Initial value:
{ { CODEC_ID_H263, MKTAG('s','2','6','3') }, { CODEC_ID_H264, MKTAG('a','v','c','1') }, { CODEC_ID_MPEG4, MKTAG('m','p','4','v') }, { CODEC_ID_AAC, MKTAG('m','p','4','a') }, { CODEC_ID_AMR_NB, MKTAG('s','a','m','r') }, { CODEC_ID_AMR_WB, MKTAG('s','a','w','b') }, { CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') }, { CODEC_ID_NONE, 0 }, }
const AVCodecTag codec_ipod_tags[] [static] |
Initial value:
{ { CODEC_ID_H264, MKTAG('a','v','c','1') }, { CODEC_ID_MPEG4, MKTAG('m','p','4','v') }, { CODEC_ID_AAC, MKTAG('m','p','4','a') }, { CODEC_ID_ALAC, MKTAG('a','l','a','c') }, { CODEC_ID_AC3, MKTAG('a','c','-','3') }, { CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') }, { CODEC_ID_MOV_TEXT, MKTAG('t','e','x','t') }, { CODEC_ID_NONE, 0 }, }
Initial value:
{ "ipod", NULL_IF_CONFIG_SMALL("iPod H.264 MP4 format"), "application/mp4", "m4v,m4a", sizeof(MOVMuxContext), CODEC_ID_AAC, CODEC_ID_H264, mov_write_header, mov_write_packet, mov_write_trailer, .flags = AVFMT_GLOBALHEADER, .codec_tag = (const AVCodecTag* const []){codec_ipod_tags, 0}, }
Initial value:
{ "mov", NULL_IF_CONFIG_SMALL("MOV format"), NULL, "mov", sizeof(MOVMuxContext), CODEC_ID_AAC, CODEC_ID_MPEG4, mov_write_header, mov_write_packet, mov_write_trailer, .flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS, .codec_tag = (const AVCodecTag* const []){codec_movvideo_tags, codec_movaudio_tags, 0}, }
struct { ... } mov_pix_fmt_tags[] [static] |
Referenced by mov_get_rawvideo_codec_tag().
Initial value:
{ "mp4", NULL_IF_CONFIG_SMALL("MP4 format"), "application/mp4", "mp4", sizeof(MOVMuxContext), CODEC_ID_AAC, CODEC_ID_MPEG4, mov_write_header, mov_write_packet, mov_write_trailer, .flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS, .codec_tag = (const AVCodecTag* const []){ff_mp4_obj_type, 0}, }
enum PixelFormat pix_fmt |
Initial value:
{ "psp", NULL_IF_CONFIG_SMALL("PSP MP4 format"), NULL, "mp4,psp", sizeof(MOVMuxContext), CODEC_ID_AAC, CODEC_ID_MPEG4, mov_write_header, mov_write_packet, mov_write_trailer, .flags = AVFMT_GLOBALHEADER, .codec_tag = (const AVCodecTag* const []){ff_mp4_obj_type, 0}, }
uint32_t tag |
Definition at line 673 of file movenc.c.
Referenced by aac_encode_frame(), aiff_read_header(), ape_read_header(), asf_read_header(), asf_write_header1(), au_read_header(), av_codec_get_tag(), av_metadata_set2(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), decode_frame(), dump_metadata(), dxa_read_header(), ff_id3v2_parse(), ff_mov_read_esds(), ff_vorbiscomment_length(), ff_vorbiscomment_write(), ffm_read_header(), find_info_tag(), find_tag(), get_swf_tag(), gxf_material_tags(), gxf_track_tags(), id3v1_create_tag(), id3v1_set_string(), ipod_get_codec_tag(), lz_unpack(), matroska_convert_tags(), mkv_write_codecprivate(), mkv_write_header(), mkv_write_tracks(), mmf_read_header(), mov_find_codec_tag(), mov_get_codec_tag(), mov_get_dv_codec_tag(), mov_get_rawvideo_codec_tag(), mov_probe(), mov_read_meta(), mov_read_udta_string(), mov_write_audio_tag(), mp3_write_header(), mp4_get_codec_tag(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), mxf_read_local_tags(), ogm_header(), pmt_cb(), process_line(), put_swf_end_tag(), qcp_read_packet(), rdt_load_mdpr(), read_header(), rm_read_header(), rv10_write_header(), show_format(), show_stream(), siff_probe(), siff_read_header(), sol_read_header(), swf_read_header(), swf_read_packet(), tiff_decode_tag(), wav_read_header(), wv_read_block_header(), and yop_decode_frame().
Initial value:
{ "3g2", NULL_IF_CONFIG_SMALL("3GP2 format"), NULL, "3g2", sizeof(MOVMuxContext), CODEC_ID_AMR_NB, CODEC_ID_H263, mov_write_header, mov_write_packet, mov_write_trailer, .flags = AVFMT_GLOBALHEADER, .codec_tag = (const AVCodecTag* const []){codec_3gp_tags, 0}, }
Initial value:
{ "3gp", NULL_IF_CONFIG_SMALL("3GP format"), NULL, "3gp", sizeof(MOVMuxContext), CODEC_ID_AMR_NB, CODEC_ID_H263, mov_write_header, mov_write_packet, mov_write_trailer, .flags = AVFMT_GLOBALHEADER, .codec_tag = (const AVCodecTag* const []){codec_3gp_tags, 0}, }