mirror of
https://github.com/Genymobile/scrcpy.git
synced 2024-09-19 05:31:21 +02:00
523097eadf
Expose an initializer so that the caller does not have to guess what fields must be initialized.
21 lines
467 B
C
21 lines
467 B
C
#ifndef DECODER_H
|
|
#define DECODER_H
|
|
|
|
#include <SDL2/SDL_stdinc.h>
|
|
#include <SDL2/SDL_net.h>
|
|
|
|
struct frames;
|
|
|
|
struct decoder {
|
|
struct frames *frames;
|
|
TCPsocket video_socket;
|
|
SDL_Thread *thread;
|
|
SDL_mutex *mutex;
|
|
};
|
|
|
|
void decoder_init(struct decoder *decoder, struct frames *frames, TCPsocket video_socket);
|
|
SDL_bool decoder_start(struct decoder *decoder);
|
|
void decoder_stop(struct decoder *decoder);
|
|
void decoder_join(struct decoder *decoder);
|
|
|
|
#endif
|