Libav 0.7.1
Functions
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 "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 mp3_write_trailer (struct AVFormatContext *s)

Function Documentation

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

Definition at line 41 of file mp3enc.c.

Referenced by mp3_write_trailer().

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

Definition at line 32 of file mp3enc.c.

Referenced by id3v1_create_tag().

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

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

static int mp3_write_trailer ( struct AVFormatContext s) [static]

Definition at line 131 of file mp3enc.c.

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

Definition at line 83 of file mp3enc.c.

Referenced by id3v2_put_ttag().