Initial commit

Start a new clean history from here.
This commit is contained in:
Romain Vimont
2017-12-12 15:12:07 +01:00
commit 54d9148a36
29 changed files with 1537 additions and 0 deletions

22
app/src/decoder.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef DECODER_H
#define DECODER_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_net.h>
struct frames;
typedef struct SDL_Thread SDL_Thread;
typedef struct SDL_mutex SDL_mutex;
struct decoder {
struct frames *frames;
TCPsocket video_socket;
SDL_Thread *thread;
SDL_mutex *mutex;
SDL_bool skip_frames;
};
int decoder_start(struct decoder *decoder);
void decoder_join(struct decoder *decoder);
#endif