summaryrefslogtreecommitdiff
path: root/src/decoder.h
diff options
context:
space:
mode:
authordeva <deva>2005-04-14 17:28:21 +0000
committerdeva <deva>2005-04-14 17:28:21 +0000
commitd5e1739f5288355869eccd53ab3eb1a4000d1cab (patch)
tree15f9f20fb8d5c92fbf0b2ef5e34f150ce660168f /src/decoder.h
parentf742dd679138b1e3428b72e8f934fee15ade9ecb (diff)
Unified the frame types.
Diffstat (limited to 'src/decoder.h')
-rw-r--r--src/decoder.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/decoder.h b/src/decoder.h
index 6d50e5b..0fd09d1 100644
--- a/src/decoder.h
+++ b/src/decoder.h
@@ -30,24 +30,25 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <avformat.h>
+//#include <avformat.h>
#include <SDL/SDL.h>
-#include <queue.h>
+#include "queue.h"
#include "encoder.h"
#include "player.h"
#include "thread.h"
-#include "ffframe.h"
-#include <dvframe.h>
+#include "frame.h"
+
+#define DVPACKAGE_SIZE 144000
class Decoder : public Thread {
public:
Decoder(Error* err,
sem_t *gencode_sem,
sem_t *gplayer_sem,
- Queue<DVFrame> *gencode_queue,
- Queue<FFFrame> *gplayer_queue,
+ Queue<Frame> *gencode_queue,
+ Queue<Frame> *gplayer_queue,
pthread_mutex_t *gmutex,
volatile int *grunning);
~Decoder();
@@ -59,8 +60,8 @@ private:
sem_t *encode_sem;
sem_t *player_sem;
- Queue<DVFrame> *encode_queue;
- Queue<FFFrame> *player_queue;
+ Queue<Frame> *encode_queue;
+ Queue<Frame> *player_queue;
pthread_mutex_t *mutex;
volatile int *running;