libavformat/mp3.c File Reference

#include <strings.h>
#include "libavutil/avstring.h"
#include "libavcodec/mpegaudio.h"
#include "libavcodec/mpegaudiodecheader.h"
#include "avformat.h"
#include "id3v2.h"

Go to the source code of this file.

Defines

#define ID3v1_TAG_SIZE   128
#define ID3v1_GENRE_MAX   125
#define MP3_PACKET_SIZE   1024

Functions

static unsigned int id3v2_get_size (ByteIOContext *s, int len)
static void id3v2_read_ttag (AVFormatContext *s, int taglen, const char *key)
static void id3v2_parse (AVFormatContext *s, int len, uint8_t version, uint8_t flags)
 ID3v2 parser.
static void id3v1_get_string (AVFormatContext *s, const char *key, const uint8_t *buf, int buf_size)
static int id3v1_parse_tag (AVFormatContext *s, const uint8_t *buf)
static int mp3_read_probe (AVProbeData *p)
static int mp3_parse_vbr_tags (AVFormatContext *s, AVStream *st, int64_t base)
 Try to find Xing/Info/VBRI tags and compute duration from info therein.
static int mp3_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int mp3_read_packet (AVFormatContext *s, AVPacket *pkt)

Variables

static const char *const id3v1_genre_str [ID3v1_GENRE_MAX+1]


Define Documentation

#define ID3v1_GENRE_MAX   125

Definition at line 31 of file mp3.c.

Referenced by id3v1_parse_tag(), and id3v2_read_ttag().

#define ID3v1_TAG_SIZE   128

Definition at line 29 of file mp3.c.

Referenced by mp3_read_header().

#define MP3_PACKET_SIZE   1024

Definition at line 515 of file mp3.c.

Referenced by mp3_read_packet().


Function Documentation

static void id3v1_get_string ( AVFormatContext s,
const char *  key,
const uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 321 of file mp3.c.

Referenced by id3v1_parse_tag().

static int id3v1_parse_tag ( AVFormatContext s,
const uint8_t *  buf 
) [static]

Definition at line 343 of file mp3.c.

Referenced by mp3_read_header().

static unsigned int id3v2_get_size ( ByteIOContext s,
int  len 
) [static]

Definition at line 162 of file mp3.c.

Referenced by id3v2_parse().

static void id3v2_parse ( AVFormatContext s,
int  len,
uint8_t  version,
uint8_t  flags 
) [static]

ID3v2 parser.

Handles ID3v2.2, 2.3 and 2.4.

Definition at line 215 of file mp3.c.

Referenced by mp3_read_header().

static void id3v2_read_ttag ( AVFormatContext s,
int  taglen,
const char *  key 
) [static]

Definition at line 170 of file mp3.c.

Referenced by id3v2_parse().

static int mp3_parse_vbr_tags ( AVFormatContext s,
AVStream st,
int64_t  base 
) [static]

Try to find Xing/Info/VBRI tags and compute duration from info therein.

Definition at line 411 of file mp3.c.

Referenced by mp3_read_header().

static int mp3_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 461 of file mp3.c.

static int mp3_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 517 of file mp3.c.

static int mp3_read_probe ( AVProbeData p  )  [static]

Definition at line 369 of file mp3.c.


Variable Documentation

const char* const id3v1_genre_str[ID3v1_GENRE_MAX+1] [static]

Definition at line 33 of file mp3.c.

Referenced by id3v1_parse_tag(), and id3v2_read_ttag().


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8