1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#pragma once
#include "version.h"
#include <obs-module.h>
#include <util/deque.h>
#include <util/threading.h>
enum clone_type {
CLONE_SOURCE,
CLONE_CURRENT_SCENE,
CLONE_PREVIOUS_SCENE,
};
struct source_clone {
obs_source_t *source;
enum clone_type clone_type;
obs_weak_canvas_t *canvas;
obs_weak_source_t *clone;
obs_weak_source_t *current_scene;
struct audio_wrapper_info *audio_wrapper;
struct deque audio_data[MAX_AUDIO_CHANNELS];
struct deque audio_frames;
struct deque audio_timestamps;
uint64_t audio_ts;
size_t num_channels;
pthread_mutex_t audio_mutex;
gs_texrender_t *render;
bool processed_frame;
bool audio_enabled;
uint8_t buffer_frame;
uint32_t cx;
uint32_t cy;
uint32_t source_cx;
uint32_t source_cy;
enum gs_color_space space;
bool rendering;
bool active_clone;
bool no_filter;
};
|