fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
comblock.h File Reference

FSEQ compression block loading API. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int ComBlock_read (struct FC *fc, const struct tf_header_t *seq, int index, struct fd_list_s *list)
 Reads the given compression block (by index) from the given file controller and decompresses it (if supported).
 
int ComBlock_count (struct FC *fc, const struct tf_header_t *seq)
 Determines the number of compression blocks available within the given sequence file. The FSEQ file header already contains a field, compressionBlockCount, that specifies the number of compression blocks, but other encoding programs are known to write additional zero-sized compression blocks to align write operations. This results in a discrepancy between the header field and the actual number of playable blocks in the sequence file.
 

Detailed Description

FSEQ compression block loading API.

Function Documentation

◆ ComBlock_count()

int ComBlock_count ( struct FC * fc,
const struct tf_header_t * seq )

Determines the number of compression blocks available within the given sequence file. The FSEQ file header already contains a field, compressionBlockCount, that specifies the number of compression blocks, but other encoding programs are known to write additional zero-sized compression blocks to align write operations. This results in a discrepancy between the header field and the actual number of playable blocks in the sequence file.

Parameters
fctarget file controller instance
seqsequence file for file layout information
Returns
the number of compression blocks on success or a negative error code on failure
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ComBlock_read()

int ComBlock_read ( struct FC * fc,
const struct tf_header_t * seq,
int index,
struct fd_list_s * list )

Reads the given compression block (by index) from the given file controller and decompresses it (if supported).

Parameters
fctarget file controller instance
seqsequence file for file layout information
indexindex of the compression block to read
listpointer to the list for storing the decompressed frame data
Returns
0 on success, a negative error code on failure
Here is the call graph for this function:
Here is the caller graph for this function: