summaryrefslogtreecommitdiff
path: root/rotord/libavexporter.h
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-04-30 15:31:00 +0100
committerTim Redfern <tim@herge.(none)>2013-04-30 15:31:00 +0100
commit836848622f85231c3ff6b9af49704fec4c035df4 (patch)
treef36cd2e9bd98e2712807c1a5f1be311b5733f6aa /rotord/libavexporter.h
parentcaf495afbda7c12da090a9fc7b08c4e7d44420ff (diff)
first synced render
Diffstat (limited to 'rotord/libavexporter.h')
-rw-r--r--rotord/libavexporter.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/rotord/libavexporter.h b/rotord/libavexporter.h
index 24b656c..d9d6f38 100644
--- a/rotord/libavexporter.h
+++ b/rotord/libavexporter.h
@@ -481,8 +481,11 @@ namespace libav {
bool record(std::string filename);
bool encodeFrame(unsigned char *pixels, uint16_t *samples);
bool encodeFrame(unsigned char *pixels,AVPacket *audiopkt);
+ bool encodeFrame(unsigned char *pixels);
+ bool encodeFrame(uint16_t *samples);
void finishRecord();
- int get_audio_framesize(){return size;};
+ int get_audio_framesize(){return audioframesize;};
+ float get_audio_step(){return audiostep;};
private:
AVOutputFormat *fmt;
@@ -491,7 +494,8 @@ namespace libav {
AVCodec *audio_codec, *video_codec;
double audio_pts, video_pts;
- int size;
+ int audioframesize;
+ float audiostep;
int w;
int h;
int bitRate;