mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Initial commit
Start a new clean history from here.
This commit is contained in:
commit
54d9148a36
29 changed files with 1537 additions and 0 deletions
22
app/src/decoder.h
Normal file
22
app/src/decoder.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue