FFmpeg
Macros | Functions
apetag.c File Reference
#include <inttypes.h>
#include "libavutil/dict.h"
#include "avformat.h"
#include "avio_internal.h"
#include "apetag.h"
#include "demux.h"
#include "internal.h"
#include "mux.h"

Go to the source code of this file.

Macros

#define APE_TAG_FLAG_CONTAINS_HEADER   (1U << 31)
 
#define APE_TAG_FLAG_LACKS_FOOTER   (1 << 30)
 
#define APE_TAG_FLAG_IS_HEADER   (1 << 29)
 
#define APE_TAG_FLAG_IS_BINARY   (1 << 1)
 

Functions

static int ape_tag_read_field (AVFormatContext *s)
 
int64_t ff_ape_parse_tag (AVFormatContext *s)
 Read and parse an APE tag. More...
 
static int string_is_ascii (const uint8_t *str)
 
int ff_ape_write_tag (AVFormatContext *s)
 Write an APE tag into a file. More...
 

Macro Definition Documentation

◆ APE_TAG_FLAG_CONTAINS_HEADER

#define APE_TAG_FLAG_CONTAINS_HEADER   (1U << 31)

Definition at line 33 of file apetag.c.

◆ APE_TAG_FLAG_LACKS_FOOTER

#define APE_TAG_FLAG_LACKS_FOOTER   (1 << 30)

Definition at line 34 of file apetag.c.

◆ APE_TAG_FLAG_IS_HEADER

#define APE_TAG_FLAG_IS_HEADER   (1 << 29)

Definition at line 35 of file apetag.c.

◆ APE_TAG_FLAG_IS_BINARY

#define APE_TAG_FLAG_IS_BINARY   (1 << 1)

Definition at line 36 of file apetag.c.

Function Documentation

◆ ape_tag_read_field()

static int ape_tag_read_field ( AVFormatContext s)
static

Definition at line 38 of file apetag.c.

Referenced by ff_ape_parse_tag().

◆ ff_ape_parse_tag()

int64_t ff_ape_parse_tag ( AVFormatContext s)

Read and parse an APE tag.

Returns
offset of the tag start in the file

Definition at line 109 of file apetag.c.

Referenced by adts_aac_read_header(), ape_read_header(), mpc8_read_header(), mpc_read_header(), rka_read_header(), tak_read_header(), tta_read_header(), and wv_read_header().

◆ string_is_ascii()

static int string_is_ascii ( const uint8_t *  str)
static

Definition at line 170 of file apetag.c.

Referenced by ff_ape_write_tag().

◆ ff_ape_write_tag()

int ff_ape_write_tag ( AVFormatContext s)

Write an APE tag into a file.

Definition at line 176 of file apetag.c.

Referenced by adts_write_trailer(), tta_write_trailer(), and wv_write_trailer().