libavformat/mp3enc.c File Reference
#include <strings.h>
#include "avformat.h"
#include "id3v1.h"
#include "id3v2.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.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_packet (struct AVFormatContext *s, AVPacket *pkt) |
static int | mp3_write_trailer (struct AVFormatContext *s) |
Function Documentation
static int id3v1_create_tag |
( |
AVFormatContext * |
s, |
|
|
uint8_t * |
buf | |
|
) |
| | [static] |
static int id3v1_set_string |
( |
AVFormatContext * |
s, |
|
|
const char * |
key, |
|
|
uint8_t * |
buf, |
|
|
int |
buf_size | |
|
) |
| | [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 91 of file mp3enc.c.
static int string_is_ascii |
( |
const uint8_t * |
str |
) |
[static] |