2017-12-12 15:12:07 +01:00
|
|
|
#ifndef DECODER_H
|
|
|
|
#define DECODER_H
|
|
|
|
|
2017-12-15 17:34:16 +01:00
|
|
|
#include <SDL2/SDL_stdinc.h>
|
2017-12-12 15:12:07 +01:00
|
|
|
#include <SDL2/SDL_net.h>
|
|
|
|
|
|
|
|
struct frames;
|
|
|
|
|
|
|
|
struct decoder {
|
|
|
|
struct frames *frames;
|
|
|
|
TCPsocket video_socket;
|
|
|
|
SDL_Thread *thread;
|
|
|
|
SDL_mutex *mutex;
|
|
|
|
};
|
|
|
|
|
2017-12-15 11:27:11 +01:00
|
|
|
SDL_bool decoder_start(struct decoder *decoder);
|
2017-12-12 15:12:07 +01:00
|
|
|
void decoder_join(struct decoder *decoder);
|
|
|
|
|
|
|
|
#endif
|