FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
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"
#include "libavutil/crc.h"
#include "libavutil/mathematics.h"
#include "libavutil/replaygain.h"

Go to the source code of this file.

Data Structures

struct  MP3Context
 

Macros

#define XING_NUM_BAGS   400
 
#define XING_TOC_SIZE   100
 
#define XING_SIZE   156
 

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 (MP3Context *mp3, AVPacket *pkt)
 
static int mp3_write_audio_packet (AVFormatContext *s, AVPacket *pkt)
 
static int mp3_queue_flush (AVFormatContext *s)
 
static void mp3_update_xing (AVFormatContext *s)
 
static int mp3_write_trailer (struct AVFormatContext *s)
 
static int query_codec (enum AVCodecID id, int std_compliance)
 

Variables

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

Macro Definition Documentation

#define XING_NUM_BAGS   400

Definition at line 81 of file mp3enc.c.

Referenced by mp3_xing_add_frame().

#define XING_TOC_SIZE   100

Definition at line 82 of file mp3enc.c.

Referenced by mp3_update_xing(), and mp3_write_xing().

#define XING_SIZE   156

Definition at line 84 of file mp3enc.c.

Referenced by mp3_update_xing(), and mp3_write_xing().

Function Documentation

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

Definition at line 39 of file mp3enc.c.

Referenced by id3v1_create_tag().

static int id3v1_create_tag ( AVFormatContext s,
uint8_t buf 
)
static

Definition at line 48 of file mp3enc.c.

Referenced by mp3_write_trailer().

static int mp3_write_xing ( AVFormatContext s)
static

Definition at line 129 of file mp3enc.c.

Referenced by mp3_queue_flush().

static void mp3_xing_add_frame ( MP3Context mp3,
AVPacket pkt 
)
static

Definition at line 281 of file mp3enc.c.

Referenced by mp3_write_audio_packet().

static int mp3_write_audio_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 307 of file mp3enc.c.

Referenced by mp3_queue_flush().

static int mp3_queue_flush ( AVFormatContext s)
static

Definition at line 358 of file mp3enc.c.

Referenced by mp3_write_trailer().

static void mp3_update_xing ( AVFormatContext s)
static

Definition at line 378 of file mp3enc.c.

Referenced by mp3_write_trailer().

static int mp3_write_trailer ( struct AVFormatContext s)
static

Definition at line 436 of file mp3enc.c.

static int query_codec ( enum AVCodecID  id,
int  std_compliance 
)
static

Definition at line 460 of file mp3enc.c.

Variable Documentation

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

Definition at line 124 of file mp3enc.c.

Referenced by mp3_parse_info_tag(), mp3_write_audio_packet(), and mp3_write_xing().