libavformat/mp3enc.c File Reference

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

Go to the source code of this file.

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 void id3v2_put_size (AVFormatContext *s, int size)
static int string_is_ascii (const uint8_t *str)
static int id3v2_put_ttag (AVFormatContext *s, const char *str1, const char *str2, uint32_t tag, enum ID3v2Encoding enc)
 Write a text frame with one (normal frames) or two (TXXX frames) strings according to encoding (only UTF-8 or UTF-16+BOM supported).
static int mp2_write_trailer (struct AVFormatContext *s)


Function Documentation

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

Definition at line 45 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 36 of file mp3enc.c.

Referenced by id3v1_create_tag().

static void id3v2_put_size ( AVFormatContext s,
int  size 
) [static]

Definition at line 80 of file mp3enc.c.

Referenced by id3v2_put_ttag().

static int id3v2_put_ttag ( AVFormatContext s,
const char *  str1,
const char *  str2,
uint32_t  tag,
enum ID3v2Encoding  enc 
) [static]

Write a text frame with one (normal frames) or two (TXXX frames) strings according to encoding (only UTF-8 or UTF-16+BOM supported).

Returns:
number of bytes written or a negative error code.

Definition at line 99 of file mp3enc.c.

static int mp2_write_trailer ( struct AVFormatContext s  )  [static]

Definition at line 136 of file mp3enc.c.

static int string_is_ascii ( const uint8_t *  str  )  [static]

Definition at line 88 of file mp3enc.c.

Referenced by id3v2_put_ttag().


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