moved memsink_shared_s to separate file

This commit is contained in:
Devaev Maxim
2021-01-20 12:28:26 +03:00
parent bc25e787cc
commit e08ac1467f
2 changed files with 61 additions and 26 deletions

View File

@@ -37,34 +37,9 @@
#include "tools.h"
#include "logging.h"
#include "frame.h"
#include "memsinksh.h"
#define MEMSINK_MAGIC ((uint64_t)0xCAFEBABECAFEBABE)
#define MEMSINK_VERSION ((uint32_t)1)
#ifndef CFG_MEMSINK_MAX_DATA
# define CFG_MEMSINK_MAX_DATA 33554432
#endif
#define MEMSINK_MAX_DATA ((size_t)(CFG_MEMSINK_MAX_DATA))
typedef struct {
uint64_t magic;
uint32_t version;
uint64_t id;
size_t used;
unsigned width;
unsigned height;
unsigned format;
unsigned stride;
bool online;
long double grab_ts;
long double encode_begin_ts;
long double encode_end_ts;
long double last_client_ts;
uint8_t data[MEMSINK_MAX_DATA];
} memsink_shared_s;
typedef struct {
const char *name;
const char *obj;