diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-04-19 18:57:08 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-04-19 18:57:08 +0100 |
| commit | 47b733bbc93e565d840596d4fbc2d5d5f3d18dd2 (patch) | |
| tree | b3b4195c877335d4164bb33d41b6bf5c0c4f4243 /rotord/ofxMovieExporter.h | |
| parent | 8f75260c27d739aad3b019d29ba4178ba8ce55b5 (diff) | |
avcodec confusion
Diffstat (limited to 'rotord/ofxMovieExporter.h')
| -rwxr-xr-x | rotord/ofxMovieExporter.h | 9 |
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; }; |
