Exemplo n.º 1
0
IPCamViewer::IPCamViewer(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::IPCamViewer)
{
    ui->setupUi(this);
    show_next_img = false;
    connect(IPCamThread::Instance(), SIGNAL(new_frame_ready()), this, SLOT(new_frame_ready()));
}
Exemplo n.º 2
0
static inline struct source_frame *get_closest_frame(obs_source_t source,
		uint64_t sys_time)
{
	if (new_frame_ready(source, sys_time)) {
		struct source_frame *frame = source->video_frames.array[0];
		da_erase(source->video_frames, 0);
		return frame;
	}

	return NULL;
}
Exemplo n.º 3
0
static inline void cycle_frames(struct obs_source *source)
{
	if (source->video_frames.num && !source->activate_refs)
		new_frame_ready(source, os_gettime_ns());
}