|
SPRAAK
|
Collaboration diagram for API_SprLibInternal::lib::core::filefmt:Data Structures | |
| class | SprStreamBZip |
| class | SprStreamGZip |
| struct | SprCoderCommon |
| struct | SprCoderDef |
| Structure to define a certain (en/de)coding pair. More... | |
| class | SprStreamCoder |
Typedefs | |
| typedef int(* | SprEncodeFunc) (SprCoderCommon *info) |
| Function to encode data in the framework defined in sphere.c. More... | |
| typedef int(* | SprDecodeFunc) (SprCoderCommon *info) |
| Function to decode data in the framework defined in sphere.c. More... | |
| typedef int(* | SprCoderFiniFunc) (SprCoderCommon *info) |
| typedef int(* | SprCoderIniFunc) (SprCoderCommon *info, SprStreamOpenParam *param, unsigned int rw_flags) |
Enumerations | |
| enum | { SPR_CODER_OK, SPR_CODER_ERR, SPR_CODER_EOF } |
Functions | |
| int | spr_stream_check_coder_bzip2 (SprStreamOpenInfo *info, SprStreamOpenParam *param) |
| int | spr_stream_open_coder_bzip2 (SprStreamOpenInfo *restrict info, SprStreamOpenParam *restrict param) |
| uint32_t | spr_calc_crc32 (uint32_t crc, const uint8_t *restrict ptr, size_t size) |
| int | spr_stream_check_coder_gzip (SprStreamOpenInfo *info, SprStreamOpenParam *param) |
| int | spr_stream_open_coder_gzip (SprStreamOpenInfo *restrict info, SprStreamOpenParam *restrict param) |
| int | spr_stream_check_coder_sphere (SprStreamOpenInfo *info, SprStreamOpenParam *param) |
| int | spr_stream_open_coder_generic (SprStreamOpenInfo *restrict info, SprStreamOpenParam *restrict param) |
| int | spr_kset_write_sphere (SprStream *restrict fd, SprKeySet *restrict keys) |
| SprKeySet * | spr_kset_read_sphere (SprStream *restrict fd, SprKeySet *restrict keys) |
| SprKeySet * | spr_kset_read_wav (SprStream *restrict fd, SprKeySet *restrict keys) |
| int | spr_kset_write_wav (SprStream *restrict fd, SprKeySet *restrict keys, int mode) |
| typedef int(* SprEncodeFunc) (SprCoderCommon *info) |
Function to encode data in the framework defined in sphere.c.
| typedef int(* SprDecodeFunc) (SprCoderCommon *info) |
Function to decode data in the framework defined in sphere.c.
| typedef int(* SprCoderFiniFunc) (SprCoderCommon *info) |
Function to close the (en/de)coding system in the framework defined in sphere.c.
| typedef int(* SprCoderIniFunc) (SprCoderCommon *info, SprStreamOpenParam *param, unsigned int rw_flags) |
Function to initialize rhe (en/de)coding system in the framework defined in sphere.c.
| anonymous enum |
| int spr_stream_check_coder_bzip2 | ( | SprStreamOpenInfo * | info, |
| SprStreamOpenParam * | param | ||
| ) |
| int spr_stream_open_coder_bzip2 | ( | SprStreamOpenInfo *restrict | info, |
| SprStreamOpenParam *restrict | param | ||
| ) |
| uint32_t spr_calc_crc32 | ( | uint32_t | crc, |
| const uint8_t *restrict | ptr, | ||
| size_t | size | ||
| ) |
Calculate/update the CRC32 checksum for a block of (additional) data. The initial value of the CRC32 checksum should be 0.
| int spr_stream_check_coder_gzip | ( | SprStreamOpenInfo * | info, |
| SprStreamOpenParam * | param | ||
| ) |
| int spr_stream_open_coder_gzip | ( | SprStreamOpenInfo *restrict | info, |
| SprStreamOpenParam *restrict | param | ||
| ) |
| int spr_stream_check_coder_sphere | ( | SprStreamOpenInfo * | info, |
| SprStreamOpenParam * | param | ||
| ) |
| int spr_stream_open_coder_generic | ( | SprStreamOpenInfo *restrict | info, |
| SprStreamOpenParam *restrict | param | ||
| ) |
Open the coder info->keys["COMPRESS"]. The coder must adhere to the framework defined in the file sphere.c.
Write the key-set keys to the open stream fd using the SPHERE-header format.
Read the SPHERE header from the open stream fd and store all relevant information as keys in the key-set keys. The stream must be in read mode and the read pointer should be positioned right before the magic word (file header indicator). If keys equals NULL, the keyset internal to fd will be used (which will be allocated if needed). In other words, the only way to use a keyset different to the one inside fd is by specifying a non NULL keys argument.
Read the RIFF-wav header from the open stream fd and store all relevant information as keys in the key-set keys. The stream must be in read mode and the read pointer should be positioned right before the magic word (file header indicator). If keys equals NULL, the keyset internal to fd will be used (which will be allocated if needed). In other words, the only way to use a keyset different to the one inside fd is by specifying a non NULL keys argument.
Write the RIFF-wav header to the open stream fd. If keys equals NULL, the keyset internal to fd will be used. The flag mode determines how much space the header may occupy on disk:
1.8.12