aboutsummaryrefslogtreecommitdiff
path: root/src/recorder.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-10-05 16:14:25 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-10-05 16:14:25 +0200
commit2ba309a41be5a8bbc8dcd3443a198ce815c017aa (patch)
tree68bfe97159998115c537c8c3f16280b1f2aacf63 /src/recorder.h
parent6b35154562eff1e2c31b740655641d49cb26bedd (diff)
downloadosc-graphics-2ba309a41be5a8bbc8dcd3443a198ce815c017aa.tar.gz
avoid including libav* headers in recorder.h
* forward-declare all structures
Diffstat (limited to 'src/recorder.h')
-rw-r--r--src/recorder.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/recorder.h b/src/recorder.h
index 2ef0d47..e0c2818 100644
--- a/src/recorder.h
+++ b/src/recorder.h
@@ -1,24 +1,20 @@
#ifndef __RECORDER_H
#define __RECORDER_H
-#include <SDL.h>
+#include <stdint.h>
-extern "C" {
-#include <libavformat/avformat.h>
-#include <libavcodec/avcodec.h>
-#include <libswscale/swscale.h>
-}
+#include <SDL.h>
#include "osc_graphics.h"
class Recorder : Mutex {
- AVFormatContext *ffmpeg;
- AVStream *stream;
- SwsContext *sws_context;
- AVFrame *encodeFrame;
- int encodeFrameBufferSize;
- uint8_t *encodeFrameBuffer;
- AVPacket pkt;
+ struct AVFormatContext *ffmpeg;
+ struct AVStream *stream;
+ struct SwsContext *sws_context;
+ struct AVFrame *encodeFrame;
+ int encodeFrameBufferSize;
+ uint8_t *encodeFrameBuffer;
+ struct AVPacket *pkt;
Uint32 start_time;