fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
pump.h
Go to the documentation of this file.
1
3#ifndef FPLAYER_PUMP_H
4#define FPLAYER_PUMP_H
5
6#include <stdint.h>
7
8struct FC;
9
10struct tf_header_t;
11
14struct frame_pump_s;
15
25int FP_init(struct FC* fc,
26 const struct tf_header_t* seq,
27 struct frame_pump_s** pump);
28
36int FP_checkPreload(struct frame_pump_s* pump, uint32_t frame);
37
45int FP_nextFrame(struct frame_pump_s* pump, uint8_t** fd);
46
50int FP_framesRemaining(struct frame_pump_s* pump);
51
54void FP_free(struct frame_pump_s* pump);
55
56#endif//FPLAYER_PUMP_H
int FP_nextFrame(struct frame_pump_s *pump, uint8_t **fd)
Copies the next frame of data from the pump to the provided frame data buffer. If the pump's internal...
Definition pump.c:175
int FP_framesRemaining(struct frame_pump_s *pump)
Returns the number of frames remaining in the pump's internal buffer.
Definition pump.c:213
int FP_checkPreload(struct frame_pump_s *pump, uint32_t frame)
Checks if the pump's internal buffer is low, and if so, preloads the next frame set from the file con...
Definition pump.c:142
void FP_free(struct frame_pump_s *pump)
Frees the resources associated with the provided frame pump.
Definition pump.c:218
int FP_init(struct FC *fc, const struct tf_header_t *seq, struct frame_pump_s **pump)
Initializes a frame pump with the provided file controller. The pump will read frames from the file c...
Definition pump.c:32
File controller that wraps a stdlib file pointer and provides additional functionality for reading fi...
Definition fc.c:10
Frame pump state controller for loading/tracking frame data.
Definition pump.c:19
uint32_t frame
Target frame index.
Definition pump.c:27
const struct tf_header_t * seq
Sequence file metadata header.
Definition pump.c:21
struct FC * fc
File controller to read from.
Definition pump.c:20