RetroArch
Functions | Variables
format.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <retro_miscellaneous.h>
#include "include/FLAC/assert.h"
#include "include/FLAC/format.h"
#include "include/share/alloc.h"
#include "include/share/compat.h"
#include "include/private/format.h"
#include "include/private/macros.h"
Include dependency graph for format.c:

Functions

FLAC_API FLAC__bool FLAC__format_sample_rate_is_valid (unsigned sample_rate)
 
FLAC_API FLAC__bool FLAC__format_blocksize_is_subset (unsigned blocksize, unsigned sample_rate)
 
FLAC_API FLAC__bool FLAC__format_sample_rate_is_subset (unsigned sample_rate)
 
FLAC_API FLAC__bool FLAC__format_seektable_is_legal (const FLAC__StreamMetadata_SeekTable *seek_table)
 
static int seekpoint_compare_ (const FLAC__StreamMetadata_SeekPoint *l, const FLAC__StreamMetadata_SeekPoint *r)
 
FLAC_API unsigned FLAC__format_seektable_sort (FLAC__StreamMetadata_SeekTable *seek_table)
 
static unsigned utf8len_ (const FLAC__byte *utf8)
 
FLAC_API FLAC__bool FLAC__format_vorbiscomment_entry_name_is_legal (const char *name)
 
FLAC_API FLAC__bool FLAC__format_vorbiscomment_entry_value_is_legal (const FLAC__byte *value, unsigned length)
 
FLAC_API FLAC__bool FLAC__format_vorbiscomment_entry_is_legal (const FLAC__byte *entry, unsigned length)
 
FLAC_API FLAC__bool FLAC__format_cuesheet_is_legal (const FLAC__StreamMetadata_CueSheet *cue_sheet, FLAC__bool check_cd_da_subset, const char **violation)
 
FLAC_API FLAC__bool FLAC__format_picture_is_legal (const FLAC__StreamMetadata_Picture *picture, const char **violation)
 
unsigned FLAC__format_get_max_rice_partition_order (unsigned blocksize, unsigned predictor_order)
 
unsigned FLAC__format_get_max_rice_partition_order_from_blocksize (unsigned blocksize)
 
unsigned FLAC__format_get_max_rice_partition_order_from_blocksize_limited_max_and_predictor_order (unsigned limit, unsigned blocksize, unsigned predictor_order)
 
void FLAC__format_entropy_coding_method_partitioned_rice_contents_init (FLAC__EntropyCodingMethod_PartitionedRiceContents *object)
 
void FLAC__format_entropy_coding_method_partitioned_rice_contents_clear (FLAC__EntropyCodingMethod_PartitionedRiceContents *object)
 
FLAC__bool FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size (FLAC__EntropyCodingMethod_PartitionedRiceContents *object, unsigned max_partition_order)
 

Variables

FLAC_API const char * FLAC__VERSION_STRING = FLAC_PACKAGE_VERSION
 
FLAC_API const char * FLAC__VENDOR_STRING = "reference libFLAC " FLAC_PACKAGE_VERSION " 20170101"
 
FLAC_API const FLAC__byte FLAC__STREAM_SYNC_STRING [4] = { 'f','L','a','C' }
 
FLAC_API const unsigned FLAC__STREAM_SYNC = 0x664C6143
 
FLAC_API const unsigned FLAC__STREAM_SYNC_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LEN = 16
 
FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN = 16
 
FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN = 24
 
FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LEN = 24
 
FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_SAMPLE_RATE_LEN = 20
 
FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_CHANNELS_LEN = 3
 
FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_BITS_PER_SAMPLE_LEN = 5
 
FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LEN = 36
 
FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_MD5SUM_LEN = 128
 
FLAC_API const unsigned FLAC__STREAM_METADATA_APPLICATION_ID_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_SEEKPOINT_SAMPLE_NUMBER_LEN = 64
 
FLAC_API const unsigned FLAC__STREAM_METADATA_SEEKPOINT_STREAM_OFFSET_LEN = 64
 
FLAC_API const unsigned FLAC__STREAM_METADATA_SEEKPOINT_FRAME_SAMPLES_LEN = 16
 
FLAC_API const FLAC__uint64 FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER = FLAC__U64L(0xffffffffffffffff)
 
FLAC_API const unsigned FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_INDEX_OFFSET_LEN = 64
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_INDEX_NUMBER_LEN = 8
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_INDEX_RESERVED_LEN = 3*8
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_TRACK_OFFSET_LEN = 64
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_TRACK_NUMBER_LEN = 8
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_TRACK_ISRC_LEN = 12*8
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_TRACK_TYPE_LEN = 1
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_TRACK_PRE_EMPHASIS_LEN = 1
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_TRACK_RESERVED_LEN = 6+13*8
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_TRACK_NUM_INDICES_LEN = 8
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_MEDIA_CATALOG_NUMBER_LEN = 128*8
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_LEAD_IN_LEN = 64
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_IS_CD_LEN = 1
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_RESERVED_LEN = 7+258*8
 
FLAC_API const unsigned FLAC__STREAM_METADATA_CUESHEET_NUM_TRACKS_LEN = 8
 
FLAC_API const unsigned FLAC__STREAM_METADATA_PICTURE_TYPE_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_PICTURE_DESCRIPTION_LENGTH_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_PICTURE_WIDTH_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_PICTURE_HEIGHT_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_PICTURE_DEPTH_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_PICTURE_COLORS_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_PICTURE_DATA_LENGTH_LEN = 32
 
FLAC_API const unsigned FLAC__STREAM_METADATA_IS_LAST_LEN = 1
 
FLAC_API const unsigned FLAC__STREAM_METADATA_TYPE_LEN = 7
 
FLAC_API const unsigned FLAC__STREAM_METADATA_LENGTH_LEN = 24
 
FLAC_API const unsigned FLAC__FRAME_HEADER_SYNC = 0x3ffe
 
FLAC_API const unsigned FLAC__FRAME_HEADER_SYNC_LEN = 14
 
FLAC_API const unsigned FLAC__FRAME_HEADER_RESERVED_LEN = 1
 
FLAC_API const unsigned FLAC__FRAME_HEADER_BLOCKING_STRATEGY_LEN = 1
 
FLAC_API const unsigned FLAC__FRAME_HEADER_BLOCK_SIZE_LEN = 4
 
FLAC_API const unsigned FLAC__FRAME_HEADER_SAMPLE_RATE_LEN = 4
 
FLAC_API const unsigned FLAC__FRAME_HEADER_CHANNEL_ASSIGNMENT_LEN = 4
 
FLAC_API const unsigned FLAC__FRAME_HEADER_BITS_PER_SAMPLE_LEN = 3
 
FLAC_API const unsigned FLAC__FRAME_HEADER_ZERO_PAD_LEN = 1
 
FLAC_API const unsigned FLAC__FRAME_HEADER_CRC_LEN = 8
 
FLAC_API const unsigned FLAC__FRAME_FOOTER_CRC_LEN = 16
 
FLAC_API const unsigned FLAC__ENTROPY_CODING_METHOD_TYPE_LEN = 2
 
FLAC_API const unsigned FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN = 4
 
FLAC_API const unsigned FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN = 4
 
FLAC_API const unsigned FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN = 5
 
FLAC_API const unsigned FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN = 5
 
FLAC_API const unsigned FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER = 15
 
FLAC_API const unsigned FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER = 31
 
FLAC_API const char *const FLAC__EntropyCodingMethodTypeString []
 
FLAC_API const unsigned FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LEN = 4
 
FLAC_API const unsigned FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN = 5
 
FLAC_API const unsigned FLAC__SUBFRAME_ZERO_PAD_LEN = 1
 
FLAC_API const unsigned FLAC__SUBFRAME_TYPE_LEN = 6
 
FLAC_API const unsigned FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN = 1
 
FLAC_API const unsigned FLAC__SUBFRAME_TYPE_CONSTANT_BYTE_ALIGNED_MASK = 0x00
 
FLAC_API const unsigned FLAC__SUBFRAME_TYPE_VERBATIM_BYTE_ALIGNED_MASK = 0x02
 
FLAC_API const unsigned FLAC__SUBFRAME_TYPE_FIXED_BYTE_ALIGNED_MASK = 0x10
 
FLAC_API const unsigned FLAC__SUBFRAME_TYPE_LPC_BYTE_ALIGNED_MASK = 0x40
 
FLAC_API const char *const FLAC__SubframeTypeString []
 
FLAC_API const char *const FLAC__ChannelAssignmentString []
 
FLAC_API const char *const FLAC__FrameNumberTypeString []
 
FLAC_API const char *const FLAC__MetadataTypeString []
 
FLAC_API const char *const FLAC__StreamMetadata_Picture_TypeString []
 

Function Documentation

◆ FLAC__format_entropy_coding_method_partitioned_rice_contents_clear()

void FLAC__format_entropy_coding_method_partitioned_rice_contents_clear ( FLAC__EntropyCodingMethod_PartitionedRiceContents object)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size()

FLAC__bool FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size ( FLAC__EntropyCodingMethod_PartitionedRiceContents object,
unsigned  max_partition_order 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FLAC__format_entropy_coding_method_partitioned_rice_contents_init()

void FLAC__format_entropy_coding_method_partitioned_rice_contents_init ( FLAC__EntropyCodingMethod_PartitionedRiceContents object)
Here is the caller graph for this function:

◆ FLAC__format_get_max_rice_partition_order()

unsigned FLAC__format_get_max_rice_partition_order ( unsigned  blocksize,
unsigned  predictor_order 
)
Here is the call graph for this function:

◆ FLAC__format_get_max_rice_partition_order_from_blocksize()

unsigned FLAC__format_get_max_rice_partition_order_from_blocksize ( unsigned  blocksize)
Here is the caller graph for this function:

◆ FLAC__format_get_max_rice_partition_order_from_blocksize_limited_max_and_predictor_order()

unsigned FLAC__format_get_max_rice_partition_order_from_blocksize_limited_max_and_predictor_order ( unsigned  limit,
unsigned  blocksize,
unsigned  predictor_order 
)
Here is the caller graph for this function:

◆ seekpoint_compare_()

static int seekpoint_compare_ ( const FLAC__StreamMetadata_SeekPoint l,
const FLAC__StreamMetadata_SeekPoint r 
)
static
Here is the caller graph for this function:

◆ utf8len_()

static unsigned utf8len_ ( const FLAC__byte utf8)
static
Here is the caller graph for this function: