libavformat/isom.c File Reference

#include "avformat.h"
#include "internal.h"
#include "isom.h"
#include "riff.h"
#include "libavcodec/mpeg4audio.h"
#include "libavcodec/mpegaudiodata.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_read_chan (AVFormatContext *s, int64_t size, AVCodecContext *codec)
void ff_mov_write_chan (AVIOContext *pb, int64_t channel_layout)

Variables

const AVCodecTag ff_mp4_obj_type []
const AVCodecTag codec_movvideo_tags []
const AVCodecTag codec_movaudio_tags []
const AVCodecTag ff_codec_movsubtitle_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 316 of file isom.c.

Referenced by mov_write_header(), mov_write_string_data_tag(), and mov_write_string_metadata().

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

Definition at line 343 of file isom.c.

Referenced by mov_read_mdhd(), and mov_read_udta_string().

void ff_mov_read_chan ( AVFormatContext s,
int64_t  size,
AVCodecContext codec 
)

Definition at line 488 of file isom.c.

Referenced by aiff_read_header(), mov_read_chan2(), and read_header().

void ff_mov_write_chan ( AVIOContext pb,
int64_t  channel_layout 
)

Definition at line 519 of file isom.c.

Referenced by aiff_write_header(), and caf_write_header().

void ff_mp4_parse_es_descr ( AVIOContext pb,
int *  es_id 
)

Definition at line 387 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 412 of file isom.c.

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

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

Definition at line 378 of file isom.c.

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

int ff_mp4_read_descr_len ( AVIOContext pb  ) 

Definition at line 365 of file isom.c.

Referenced by ff_mp4_read_descr(), and read_pakt_chunk().


Variable Documentation

Definition at line 237 of file isom.c.

Referenced by ff_mov_read_stsd_entries(), and mov_get_codec_tag().

Initial value:

 {
    { CODEC_ID_MOV_TEXT, MKTAG('t', 'e', 'x', 't') },
    { CODEC_ID_MOV_TEXT, MKTAG('t', 'x', '3', 'g') },
    { CODEC_ID_NONE, 0 },
}

Definition at line 284 of file isom.c.

Referenced by ff_mov_read_stsd_entries(), and mov_get_codec_tag().

Definition at line 35 of file isom.c.

Referenced by mov_write_esds_tag(), and mp4_get_codec_tag().

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}, 
    { AV_CH_LAYOUT_5POINT1_BACK|AV_CH_LAYOUT_STEREO_DOWNMIX, (130<<16) | 8}, 
    { AV_CH_LAYOUT_STEREO|AV_CH_LOW_FREQUENCY,   (133<<16) | 3}, 
    { AV_CH_LAYOUT_2_1|AV_CH_LOW_FREQUENCY,      (134<<16) | 4}, 
    { AV_CH_LAYOUT_QUAD|AV_CH_LOW_FREQUENCY,     (135<<16) | 4}, 
    { AV_CH_LAYOUT_2_2|AV_CH_LOW_FREQUENCY,      (135<<16) | 4}, 
    { AV_CH_LAYOUT_SURROUND|AV_CH_LOW_FREQUENCY, (136<<16) | 4}, 
    { AV_CH_LAYOUT_4POINT0|AV_CH_LOW_FREQUENCY,  (137<<16) | 5}, 
    { 0, 0},
}

Definition at line 462 of file isom.c.

const char mov_mdhd_language_map[][4] [static]

Initial value:

 {
    
    "eng", "fra", "ger", "ita", "dut", "sve", "spa", "dan", "por", "nor",
    "heb", "jpn", "ara", "fin", "gre", "ice", "mlt", "tur", "hr ", "chi",
    "urd", "hin", "tha", "kor", "lit", "pol", "hun", "est", "lav",    "",
    "fo ",    "", "rus", "chi",    "", "iri", "alb", "ron", "ces", "slk",
    "slv", "yid", "sr ", "mac", "bul", "ukr", "bel", "uzb", "kaz", "aze",
    
    "aze", "arm", "geo", "mol", "kir", "tgk", "tuk", "mon",    "", "pus",
    "kur", "kas", "snd", "tib", "nep", "san", "mar", "ben", "asm", "guj",
    "pa ", "ori", "mal", "kan", "tam", "tel",    "", "bur", "khm", "lao",
    
    "vie", "ind", "tgl", "may", "may", "amh", "tir", "orm", "som", "swa",
    
       "", "run",    "", "mlg", "epo",    "",    "",    "",    "",    "",
    
       "",    "",    "",    "",    "",    "",    "",    "",    "",    "",
       "",    "",    "",    "",    "",    "",    "",    "",    "",    "",
       "",    "",    "",    "",    "",    "",    "",    "", "wel", "baq",
    "cat", "lat", "que", "grn", "aym", "tat", "uig", "dzo", "jav"
}

Definition at line 294 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 403 of file isom.c.


Generated on Fri Oct 26 02:46:13 2012 for FFmpeg by  doxygen 1.5.8