mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Enable video output file, with pts set by server
This commit is contained in:
parent
b5c64c0f5a
commit
d706c5df39
7 changed files with 126 additions and 10 deletions
|
|
@ -4,19 +4,24 @@
|
|||
#include <SDL2/SDL_stdinc.h>
|
||||
#include <SDL2/SDL_thread.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "net.h"
|
||||
|
||||
struct frames;
|
||||
|
||||
struct decoder {
|
||||
uint64_t pts;
|
||||
struct frames *frames;
|
||||
socket_t video_socket;
|
||||
SDL_Thread *thread;
|
||||
SDL_mutex *mutex;
|
||||
const char *out_filename;
|
||||
struct size frame_size;
|
||||
int remaining;
|
||||
};
|
||||
|
||||
void decoder_init(struct decoder *decoder, struct frames *frames, socket_t video_socket);
|
||||
SDL_bool decoder_start(struct decoder *decoder);
|
||||
void decoder_init(struct decoder *decoder, struct frames *frames, socket_t video_socket, struct size frame_size);
|
||||
SDL_bool decoder_start(struct decoder *decoder, const char *out_filename);
|
||||
void decoder_stop(struct decoder *decoder);
|
||||
void decoder_join(struct decoder *decoder);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue