summaryrefslogtreecommitdiff
path: root/rotord/ofxMovieExporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/ofxMovieExporter.h')
-rwxr-xr-xrotord/ofxMovieExporter.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/rotord/ofxMovieExporter.h b/rotord/ofxMovieExporter.h
index 4682107..5433812 100755
--- a/rotord/ofxMovieExporter.h
+++ b/rotord/ofxMovieExporter.h
@@ -115,7 +115,9 @@ class ofxMovieExporter
// codecId = CODEC_ID_MPEG2VIDEO, container = "mov"
bool setup(int outW = OUT_W, int outH = OUT_H, int bitRate = BIT_RATE, int frameRate = FRAME_RATE, AVCodecID codecId = CODEC_ID, std::string container = CONTAINER);
bool record(std::string filePrefix=FILENAME_PREFIX, std::string folderPath="");
+ bool encodeFrame(unsigned char *pixels);
void finishRecord();
+
void stop();
bool isRecording() const;
@@ -133,7 +135,6 @@ class ofxMovieExporter
inline int getRecordingWidth() {return outW;}
inline int getRecordingHeight() {return outH;}
- bool encodeFrame(unsigned char *pixels);
private:
//#ifdef _THREAD_CAPTURE
@@ -158,8 +159,9 @@ class ofxMovieExporter
int frameRate;
int bitRate;
float frameInterval;
+ float aframeInterval;
float lastFrameTime;
- int frameNum;
+
std::string outFileName;
AVOutputFormat* outputFormat;
@@ -190,6 +192,7 @@ class ofxMovieExporter
bool usePixelSource;
unsigned char* pixelSource;
- int frame_ticks;
+ int aframeNum;
+ int vframeNum;
};