mirror of
https://github.com/Genymobile/scrcpy.git
synced 2024-09-19 05:31:21 +02:00
37d88b8a6a
Many functions returned an int to indicate their success. For clarity, use SDL_bool instead.
22 lines
425 B
C
22 lines
425 B
C
#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;
|
|
};
|
|
|
|
SDL_bool decoder_start(struct decoder *decoder);
|
|
void decoder_join(struct decoder *decoder);
|
|
|
|
#endif
|