libavformat/mp3enc.c File Reference

#include "avformat.h"
#include "avio_internal.h"
#include "id3v1.h"
#include "id3v2.h"
#include "rawenc.h"
#include "libavutil/avstring.h"
#include "libavcodec/mpegaudio.h"
#include "libavcodec/mpegaudiodata.h"
#include "libavcodec/mpegaudiodecheader.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/dict.h"
#include "libavutil/avassert.h"

Go to the source code of this file.

Data Structures

struct  MP3Context

Defines

#define VBR_NUM_BAGS   400
#define VBR_TOC_SIZE   100

Functions

static int id3v1_set_string (AVFormatContext *s, const char *key, uint8_t *buf, int buf_size)
static int id3v1_create_tag (AVFormatContext *s, uint8_t *buf)
static int mp3_write_xing (AVFormatContext *s)
static void mp3_xing_add_frame (AVFormatContext *s, AVPacket *pkt)
static void mp3_fix_xing (AVFormatContext *s)
static int mp3_write_packet_internal (AVFormatContext *s, AVPacket *pkt)
static int mp3_queue_flush (AVFormatContext *s)
static int mp2_write_trailer (struct AVFormatContext *s)

Variables

static const int64_t xing_offtbl [2][2] = {{32, 17}, {17,9}}


Define Documentation

#define VBR_NUM_BAGS   400

Definition at line 82 of file mp3enc.c.

Referenced by mp3_xing_add_frame().

#define VBR_TOC_SIZE   100

Definition at line 83 of file mp3enc.c.

Referenced by mp3_fix_xing(), and mp3_write_xing().


Function Documentation

static int id3v1_create_tag ( AVFormatContext s,
uint8_t buf 
) [static]

Definition at line 49 of file mp3enc.c.

Referenced by mp2_write_trailer().

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

Definition at line 40 of file mp3enc.c.

Referenced by id3v1_create_tag().

static int mp2_write_trailer ( struct AVFormatContext s  )  [static]

Definition at line 336 of file mp3enc.c.

static void mp3_fix_xing ( AVFormatContext s  )  [static]

Definition at line 241 of file mp3enc.c.

static int mp3_queue_flush ( AVFormatContext s  )  [static]

Definition at line 316 of file mp3enc.c.

Referenced by mp2_write_trailer().

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

Definition at line 273 of file mp3enc.c.

Referenced by mp3_queue_flush().

static int mp3_write_xing ( AVFormatContext s  )  [static]

Definition at line 114 of file mp3enc.c.

Referenced by mp3_queue_flush().

static void mp3_xing_add_frame ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 215 of file mp3enc.c.

Referenced by mp3_write_packet_internal().


Variable Documentation

const int64_t xing_offtbl[2][2] = {{32, 17}, {17,9}} [static]

Definition at line 109 of file mp3enc.c.

Referenced by mp3_parse_vbr_tags(), mp3_write_packet_internal(), and mp3_write_xing().


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