From d68f4dd6f58620f483be6a921201dd87ed04cd98 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 1 Oct 2013 15:12:00 +0100 Subject: end keyframe for preview --- rotord/src/libavwrapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rotord/src/libavwrapper.h') 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: -- cgit v1.2.3