FlacConstants
@UnstableApi
public final class FlacConstants
Defines constants used by the FLAC extractor.
Summary
Constants |
|
|---|---|
static final int |
Maximum size of a FLAC frame header in bytes. |
static final int |
Size of the header of a FLAC metadata block in bytes. |
static final int |
Picture metadata block type. |
static final int |
Seek table metadata block type. |
static final int |
Stream info metadata block type. |
static final int |
Vorbis comment metadata block type. |
static final int |
Minimum size of a FLAC frame header in bytes. |
static final int |
Size of the FLAC stream info block (header included) in bytes. |
static final int |
Size of the FLAC stream marker in bytes. |
Constants
MAX_FRAME_HEADER_SIZE
public static final int MAX_FRAME_HEADER_SIZE = 16
Maximum size of a FLAC frame header in bytes.
This is a header with:
- The standard mandatory first 4 bytes
- A 7 byte coded number
- A 2 byte uncommon block size
- A 2 byte uncommon sample rate
- A CRC-8 byte
METADATA_BLOCK_HEADER_SIZE
public static final int METADATA_BLOCK_HEADER_SIZE = 4
Size of the header of a FLAC metadata block in bytes.
METADATA_TYPE_PICTURE
public static final int METADATA_TYPE_PICTURE = 6
Picture metadata block type.
METADATA_TYPE_SEEK_TABLE
public static final int METADATA_TYPE_SEEK_TABLE = 3
Seek table metadata block type.
METADATA_TYPE_STREAM_INFO
public static final int METADATA_TYPE_STREAM_INFO = 0
Stream info metadata block type.
METADATA_TYPE_VORBIS_COMMENT
public static final int METADATA_TYPE_VORBIS_COMMENT = 4
Vorbis comment metadata block type.
MIN_FRAME_HEADER_SIZE
public static final int MIN_FRAME_HEADER_SIZE = 6
Minimum size of a FLAC frame header in bytes.
This is a header with:
- The standard mandatory first 4 bytes
- A single byte coded number
- No uncommon block size or uncommon sample rate
- A CRC-8 byte
STREAM_INFO_BLOCK_SIZE
public static final int STREAM_INFO_BLOCK_SIZE = 38
Size of the FLAC stream info block (header included) in bytes.
STREAM_MARKER_SIZE
public static final int STREAM_MARKER_SIZE = 4
Size of the FLAC stream marker in bytes.