diff options
Diffstat (limited to 'rotord/src/libavwrapper.h')
| -rw-r--r-- | rotord/src/libavwrapper.h | 4 |
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: |
