FFmpeg
Macros | Enumerations | Functions
flac.h File Reference
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define FLAC_STREAMINFO_SIZE   34
 
#define FLAC_MAX_CHANNELS   8
 
#define FLAC_MIN_BLOCKSIZE   16
 
#define FLAC_MAX_BLOCKSIZE   65535
 
#define FLAC_MIN_FRAME_SIZE   10
 

Enumerations

enum  { FLAC_CHMODE_INDEPENDENT = 0, FLAC_CHMODE_LEFT_SIDE = 1, FLAC_CHMODE_RIGHT_SIDE = 2, FLAC_CHMODE_MID_SIDE = 3 }
 
enum  {
  FLAC_METADATA_TYPE_STREAMINFO = 0, FLAC_METADATA_TYPE_PADDING, FLAC_METADATA_TYPE_APPLICATION, FLAC_METADATA_TYPE_SEEKTABLE,
  FLAC_METADATA_TYPE_VORBIS_COMMENT, FLAC_METADATA_TYPE_CUESHEET, FLAC_METADATA_TYPE_PICTURE, FLAC_METADATA_TYPE_INVALID = 127
}
 

Functions

static av_always_inline void flac_parse_block_header (const uint8_t *block_header, int *last, int *type, int *size)
 Parse the metadata block parameters from the header. More...
 

Detailed Description

FLAC (Free Lossless Audio Codec) common stuff

Definition in file flac.h.

Macro Definition Documentation

◆ FLAC_STREAMINFO_SIZE

#define FLAC_STREAMINFO_SIZE   34

Definition at line 32 of file flac.h.

◆ FLAC_MAX_CHANNELS

#define FLAC_MAX_CHANNELS   8

Definition at line 33 of file flac.h.

◆ FLAC_MIN_BLOCKSIZE

#define FLAC_MIN_BLOCKSIZE   16

Definition at line 34 of file flac.h.

◆ FLAC_MAX_BLOCKSIZE

#define FLAC_MAX_BLOCKSIZE   65535

Definition at line 35 of file flac.h.

◆ FLAC_MIN_FRAME_SIZE

#define FLAC_MIN_FRAME_SIZE   10

Definition at line 36 of file flac.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FLAC_CHMODE_INDEPENDENT 
FLAC_CHMODE_LEFT_SIDE 
FLAC_CHMODE_RIGHT_SIDE 
FLAC_CHMODE_MID_SIDE 

Definition at line 38 of file flac.h.

◆ anonymous enum

anonymous enum
Enumerator
FLAC_METADATA_TYPE_STREAMINFO 
FLAC_METADATA_TYPE_PADDING 
FLAC_METADATA_TYPE_APPLICATION 
FLAC_METADATA_TYPE_SEEKTABLE 
FLAC_METADATA_TYPE_VORBIS_COMMENT 
FLAC_METADATA_TYPE_CUESHEET 
FLAC_METADATA_TYPE_PICTURE 
FLAC_METADATA_TYPE_INVALID 

Definition at line 45 of file flac.h.

Function Documentation

◆ flac_parse_block_header()

static av_always_inline void flac_parse_block_header ( const uint8_t *  block_header,
int last,
int type,
int size 
)
static

Parse the metadata block parameters from the header.

Parameters
[in]block_headerheader data, at least 4 bytes
[out]lastindicator for last metadata block
[out]typemetadata block type
[out]sizemetadata block size

Definition at line 63 of file flac.h.

Referenced by flac_read_header(), get_metadata_size(), mov_read_dfla(), parse_streaminfo(), and read_kuki_chunk().