Maestro Audio Framework v 1.7
NXP Semiconductors
Loading...
Searching...
No Matches
Asi_dffi

Macros

#define FLAC_FILE_IDENTIFIER   0x43614C66
 
#define MAX_CHANNELS   2
 
#define ERROR   -1
 
#define MAX_STRING_LEN   255
 
#define TOTAL_COMMENTS   15
 

Functions

int8_t txt_ConvertUtf8ToUtf16c (char *ptr, uint16_t *pUnicodeValue)
 
int CheckFlacId (CCI_Ctx *Ctx, file_meta_data_t *MetaData)
 Checks the headers for flac ID.
 
int FLACReadMetadata (CCI_Ctx *Ctx, file_meta_data_t *pMetaData)
 Read FLAC Metadata block header and calls metadata block data reader.
 
int FLACReadStreamInfoMetadata (CCI_Ctx *Ctx, file_meta_data_t *MetaData, uint32_t u32Length)
 Reads stream info metadata block.
 
int FLACReadVorbisCommentMetadata (CCI_Ctx *Ctx, file_meta_data_t *pMetaData, uint32_t uLength)
 Reads vorbis comment metadata block.
 
int32_t GetFlacBytes (CCI_Ctx *Ctx, int32_t i32BytesToRead, uint8_t *pBuffer)
 
uint8_t flac_copy_one_byte (char *ptr, char *ptr1)
 
uint64_t BigNum_Divide_64_by_32_flac (uint64_t n, uint32_t base)
 
int32_t flac_GetFileSize (CCI_Ctx *Ctx)
 get file size Callback API for all metadata extraction.
 
int32_t codec_extract_metadata_flac (file_meta_data_t *MetaData, CCI_Ctx *Ctx)
 Extract the meta data from the file.
 

Detailed Description

Function Documentation

◆ CheckFlacId()

int CheckFlacId ( CCI_Ctx * Ctx,
file_meta_data_t * MetaData )

\fntype internal Function

Checks the headers for FLAC ID.

Parameters
[in]iHandleFile handle that we're checking
[in]*MetaData– this structure will be filled in by the function
Return values
SUCCESSor ERROR

◆ FLACReadMetadata()

int FLACReadMetadata ( CCI_Ctx * Ctx,
file_meta_data_t * pMetaData )

\fntype internal Function

Read FLAC Metadata block header and calls metadata block data reader.

Parameters
[in]iHandleFile handle that we're checking
[out]*pMetaDataMetadata extracted from the file.
Return values
SUCCESSor !SUCCESS

◆ FLACReadStreamInfoMetadata()

int FLACReadStreamInfoMetadata ( CCI_Ctx * Ctx,
file_meta_data_t * MetaData,
uint32_t u32Length )

\fntype internal Function

Reads stream info metadata block

Parameters
[in]iHandleFile handle that we're checking
[in/out]*MetaData – this structure will be filled in by the function
[in]u32Length– length of metadata block, to be read.
Return values
SUCCESSor ERROR

◆ FLACReadVorbisCommentMetadata()

int FLACReadVorbisCommentMetadata ( CCI_Ctx * Ctx,
file_meta_data_t * pMetaData,
uint32_t uLength )

\fntype internal Function

Reads vorbis comment metadata block ( flac tag information )

Parameters
[in]iHandleFile handle that we're checking
[in/out]*MetaData – this structure will be filled in by the function
[in]u32Length– length of metadata block, to be read.
Return values
SUCCESSor ERROR

◆ flac_GetFileSize()

int32_t flac_GetFileSize ( CCI_Ctx * Ctx)

\fntype Function

Parameters
[in]*CtxPointer to CCI Context structure
Return values
FileSize.

◆ codec_extract_metadata_flac()

int32_t codec_extract_metadata_flac ( file_meta_data_t * MetaData,
CCI_Ctx * Ctx )

Extract the meta data from the flac file.

\fntype Reentrant Function

Extract the meta data from the file.

Parameters
[in]file_handleFast open key; this key allows the file to be quickly found and opened
[out]*MetaDataMetadata extracted from the file.
Returns
Status of the call.
Return values
SUCCESS
ERROR_ASI_DFFI_EXTRACTMETADATA