/
ScreenLabPortrait.h
55 lines (46 loc) · 1.1 KB
/
ScreenLabPortrait.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
// ScreenLabPortrait.cpp
// ScreenLabRenderer
//
// Created by James George on 4/16/12.
//
#pragma once
#include "ofMain.h"
#include "ofxRGBDVideoDepthSequence.h"
#include "ofxRGBDRenderer.h"
#include "ofxRGBDScene.h"
#include "ofxDepthImageSequence.h"
//#include "ofxRGBDRenderSettings.h"
#include "ofxDepthHoleFiller.h"
//#include "ofxOsc.h"
typedef enum {
Studio,
Far,
Close
} PortraitType;
class ScreenLabPortrait {
public:
ScreenLabPortrait();
void setup(PortraitType type, string mediaFolder, string soundPath);
string name; //used for osc
void resetAndPlay();
void stop();
void update(ofEventArgs& args);
// int startFrame;
// int endFrame;
float lastTime;
ofRange videoTimes;
ofxRGBDRenderer* rendererRef;
ofxRGBDScene scene;
ofxDepthImageSequence depthImages;
ofxRGBDVideoDepthSequence pairing;
bool useHighResPlayer;
PortraitType type;
ofVideoPlayer videoPlayer;
ofVideoPlayer hiResPlayer;
ofVideoPlayer soundPlayer;
ofxDepthHoleFiller filler;
string renderFolder;
void startRender();
bool render;
};