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