2017-12-12 22:12:07 +08:00
|
|
|
#ifndef DECODER_H
|
|
|
|
#define DECODER_H
|
|
|
|
|
2017-12-16 00:34:16 +08:00
|
|
|
#include <SDL2/SDL_stdinc.h>
|
2017-12-12 22:12:07 +08:00
|
|
|
#include <SDL2/SDL_net.h>
|
|
|
|
|
|
|
|
struct frames;
|
|
|
|
|
|
|
|
struct decoder {
|
|
|
|
struct frames *frames;
|
|
|
|
TCPsocket video_socket;
|
|
|
|
SDL_Thread *thread;
|
|
|
|
SDL_mutex *mutex;
|
|
|
|
};
|
|
|
|
|
2018-02-09 20:29:48 +08:00
|
|
|
void decoder_init(struct decoder *decoder, struct frames *frames, TCPsocket video_socket);
|
2017-12-15 18:27:11 +08:00
|
|
|
SDL_bool decoder_start(struct decoder *decoder);
|
2018-02-09 15:42:39 +08:00
|
|
|
void decoder_stop(struct decoder *decoder);
|
2017-12-12 22:12:07 +08:00
|
|
|
void decoder_join(struct decoder *decoder);
|
|
|
|
|
|
|
|
#endif
|