summaryrefslogtreecommitdiff
path: root/rotord/src/libavwrapper.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-10-01 15:12:00 +0100
committerTim Redfern <tim@eclectronics.org>2013-10-01 15:12:00 +0100
commitd68f4dd6f58620f483be6a921201dd87ed04cd98 (patch)
tree303c7d6f1da6d9e3eb263712791518c17733ea3d /rotord/src/libavwrapper.h
parentd40e73de321ccccd06ca06d4f733b6f2c971a37d (diff)
end keyframe for preview
Diffstat (limited to 'rotord/src/libavwrapper.h')
-rw-r--r--rotord/src/libavwrapper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rotord/src/libavwrapper.h b/rotord/src/libavwrapper.h
index 275425d..6391af9 100644
--- a/rotord/src/libavwrapper.h
+++ b/rotord/src/libavwrapper.h
@@ -175,7 +175,7 @@ namespace libav {
bool record(std::string filename);
bool encodeFrame(unsigned char *pixels, uint16_t *samples);
bool encodeFrame(unsigned char *pixels,AVPacket *audiopkt); //is possible to just copy the packets?
- bool encodeFrame(unsigned char *pixels);
+ bool encodeFrame(unsigned char *pixels,bool keyframe=false);
bool encodeFrame(uint16_t *samples);
void finishRecord();
int get_audio_framesize(){return audioframesize;};
@@ -189,7 +189,7 @@ namespace libav {
void write_audio_frame(AVFormatContext *oc, AVStream *st,AVPacket *pkt);
void close_audio(AVFormatContext *oc, AVStream *st);
- void write_video_frame(AVFormatContext *oc, AVStream *st, uint8_t *pixels);
+ void write_video_frame(AVFormatContext *oc, AVStream *st, uint8_t *pixels, bool keyframe=false);
void close_video(AVFormatContext *oc, AVStream *st);
private: