8d30d40b79
The skip_frames flag was a non-configurable runtime flag. Since it is not exposed to the user, there is no need for a (possible) runtime cost. For testing purpose, we still want it to be configurable, so make it a compilation flag.
19 lines
332 B
C
19 lines
332 B
C
#ifndef DECODER_H
|
|
#define DECODER_H
|
|
|
|
#include <SDL2/SDL_stdinc.h>
|
|
#include <SDL2/SDL_net.h>
|
|
|
|
struct frames;
|
|
|
|
struct decoder {
|
|
struct frames *frames;
|
|
TCPsocket video_socket;
|
|
SDL_Thread *thread;
|
|
SDL_mutex *mutex;
|
|
};
|
|
|
|
SDL_bool decoder_start(struct decoder *decoder);
|
|
void decoder_join(struct decoder *decoder);
|
|
|
|
#endif
|