#include <stdint.h>
#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avio.h"
#include "id3v2.h"
Go to the source code of this file.
Functions | |
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 | id3v2_check_write_tag (AVFormatContext *s, AVDictionaryEntry *t, const char table[][4], enum ID3v2Encoding enc) |
static void | id3v2_3_metadata_split_date (AVDictionary **pm) |
int | ff_id3v2_write (struct AVFormatContext *s, int id3v2_version, const char *magic) |
Write an ID3v2 tag. |
int ff_id3v2_write | ( | struct AVFormatContext * | s, | |
int | id3v2_version, | |||
const char * | magic | |||
) |
Write an ID3v2 tag.
id3v2_version | Subversion of ID3v2; supported values are 3 and 4 | |
magic | magic bytes to identify the header If in doubt, use ID3v2_DEFAULT_MAGIC. |
Definition at line 138 of file id3v2enc.c.
Referenced by oma_write_header().
static void id3v2_3_metadata_split_date | ( | AVDictionary ** | pm | ) | [static] |
static int id3v2_check_write_tag | ( | AVFormatContext * | s, | |
AVDictionaryEntry * | t, | |||
const char | table[][4], | |||
enum ID3v2Encoding | enc | |||
) | [static] |
static void id3v2_put_size | ( | AVFormatContext * | s, | |
int | size | |||
) | [static] |
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).
Definition at line 48 of file id3v2enc.c.
Referenced by ff_id3v2_write(), and id3v2_check_write_tag().
static int string_is_ascii | ( | const uint8_t * | str | ) | [static] |