FFmpeg
Data Structures | Functions | Variables
isom.c File Reference
#include "avformat.h"
#include "internal.h"
#include "isom.h"
#include "libavcodec/mpeg4audio.h"
#include "libavcodec/mpegaudiodata.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Data Structures

struct  MovChannelLayout
 

Functions

int ff_mov_iso639_to_lang (const char lang[4], int mp4)
 
int ff_mov_lang_to_iso639 (unsigned code, char to[4])
 
int ff_mp4_read_descr_len (AVIOContext *pb)
 
int ff_mp4_read_descr (AVFormatContext *fc, AVIOContext *pb, int *tag)
 
void ff_mp4_parse_es_descr (AVIOContext *pb, int *es_id)
 
int ff_mp4_read_dec_config_descr (AVFormatContext *fc, AVStream *st, AVIOContext *pb)
 
void ff_mov_write_chan (AVIOContext *pb, int64_t channel_layout)
 
const struct AVCodecTagavformat_get_mov_video_tags (void)
 
const struct AVCodecTagavformat_get_mov_audio_tags (void)
 

Variables

const AVCodecTag ff_mp4_obj_type []
 
const AVCodecTag ff_codec_movvideo_tags []
 
const AVCodecTag ff_codec_movaudio_tags []
 
const AVCodecTag ff_codec_movsubtitle_tags []
 
const AVCodecTag ff_codec_movdata_tags []
 
static const char mov_mdhd_language_map [][4]
 
static const AVCodecTag mp4_audio_types []
 
static const MovChannelLayout mov_channel_layout []
 

Function Documentation

int ff_mov_iso639_to_lang ( const char  lang[4],
int  mp4 
)

Definition at line 542 of file isom.c.

Referenced by get_metadata_lang(), mov_init(), and mov_write_string_data_tag().

int ff_mov_lang_to_iso639 ( unsigned  code,
char  to[4] 
)

Definition at line 569 of file isom.c.

Referenced by mov_metadata_loci(), mov_read_mdhd(), and mov_read_udta_string().

int ff_mp4_read_descr_len ( AVIOContext pb)

Definition at line 591 of file isom.c.

Referenced by ff_mp4_read_descr(), and read_pakt_chunk().

int ff_mp4_read_descr ( AVFormatContext fc,
AVIOContext pb,
int tag 
)

Definition at line 604 of file isom.c.

Referenced by ff_mov_read_esds(), ff_mp4_read_dec_config_descr(), and parse_mp4_descr().

void ff_mp4_parse_es_descr ( AVIOContext pb,
int es_id 
)

Definition at line 613 of file isom.c.

Referenced by ff_mov_read_esds(), and parse_MP4ESDescrTag().

int ff_mp4_read_dec_config_descr ( AVFormatContext fc,
AVStream st,
AVIOContext pb 
)

Definition at line 638 of file isom.c.

Referenced by ff_mov_read_esds(), ff_parse_mpeg2_descriptor(), and m4sl_cb().

void ff_mov_write_chan ( AVIOContext pb,
int64_t  channel_layout 
)

Definition at line 770 of file isom.c.

Referenced by aiff_write_header(), and caf_write_header().

Variable Documentation

const AVCodecTag ff_mp4_obj_type[]

Definition at line 34 of file isom.c.

Referenced by mov_write_esds_tag(), and set_codec_str().

const AVCodecTag ff_codec_movvideo_tags[]
const AVCodecTag ff_codec_movaudio_tags[]
const AVCodecTag ff_codec_movsubtitle_tags[]
Initial value:
= {
{ AV_CODEC_ID_MOV_TEXT, MKTAG('t', 'e', 'x', 't') },
{ AV_CODEC_ID_MOV_TEXT, MKTAG('t', 'x', '3', 'g') },
{ AV_CODEC_ID_EIA_608, MKTAG('c', '6', '0', '8') },
}
#define MKTAG(a, b, c, d)
Definition: common.h:406

Definition at line 384 of file isom.c.

Referenced by mov_codec_id(), and mov_get_codec_tag().

const AVCodecTag ff_codec_movdata_tags[]
Initial value:
= {
{ AV_CODEC_ID_BIN_DATA, MKTAG('g', 'p', 'm', 'd') },
}
#define MKTAG(a, b, c, d)
Definition: common.h:406

Definition at line 391 of file isom.c.

Referenced by mov_codec_id().

const char mov_mdhd_language_map[][4]
static

Definition at line 400 of file isom.c.

Referenced by ff_mov_iso639_to_lang(), and ff_mov_lang_to_iso639().

const AVCodecTag mp4_audio_types[]
static
Initial value:

Definition at line 629 of file isom.c.

const MovChannelLayout mov_channel_layout[]
static
Initial value:
= {
{ AV_CH_LAYOUT_MONO, (100<<16) | 1},
{ AV_CH_LAYOUT_STEREO, (101<<16) | 2},
{ AV_CH_LAYOUT_STEREO, (102<<16) | 2},
{ AV_CH_LAYOUT_2_1, (131<<16) | 3},
{ AV_CH_LAYOUT_QUAD, (132<<16) | 4},
{ AV_CH_LAYOUT_2_2, (132<<16) | 4},
{ AV_CH_LAYOUT_QUAD, (108<<16) | 4},
{ AV_CH_LAYOUT_SURROUND, (113<<16) | 3},
{ AV_CH_LAYOUT_4POINT0, (115<<16) | 4},
{ AV_CH_LAYOUT_5POINT0_BACK, (117<<16) | 5},
{ AV_CH_LAYOUT_5POINT0, (117<<16) | 5},
{ AV_CH_LAYOUT_5POINT1_BACK, (121<<16) | 6},
{ AV_CH_LAYOUT_5POINT1, (121<<16) | 6},
{ AV_CH_LAYOUT_7POINT1, (128<<16) | 8},
{ AV_CH_LAYOUT_7POINT1_WIDE, (126<<16) | 8},
{ 0, 0},
}
#define AV_CH_LAYOUT_7POINT1
#define AV_CH_LAYOUT_SURROUND
#define AV_CH_LAYOUT_4POINT0
#define AV_CH_LAYOUT_STEREO
#define AV_CH_LAYOUT_5POINT0
#define AV_CH_LOW_FREQUENCY
#define AV_CH_LAYOUT_5POINT1
#define AV_CH_LAYOUT_QUAD
#define AV_CH_LAYOUT_2_1
#define AV_CH_LAYOUT_2_2
#define AV_CH_LAYOUT_STEREO_DOWNMIX
#define AV_CH_LAYOUT_5POINT1_BACK
#define AV_CH_LAYOUT_5POINT0_BACK
#define AV_CH_LAYOUT_7POINT1_WIDE
#define AV_CH_LAYOUT_MONO

Definition at line 705 of file isom.c.