summaryrefslogtreecommitdiff
path: root/src/mov_encoder_writer.h
diff options
context:
space:
mode:
authordeva <deva>2005-10-04 21:39:53 +0000
committerdeva <deva>2005-10-04 21:39:53 +0000
commit111b16802de661228ef414eb6ec7484e2fa186ed (patch)
treed6d1ce9e8b857371414f33ff460266258c462275 /src/mov_encoder_writer.h
parent9640339f2e9dc126406f6b6f8a091b924898b4f5 (diff)
*** empty log message ***
Diffstat (limited to 'src/mov_encoder_writer.h')
-rw-r--r--src/mov_encoder_writer.h25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/mov_encoder_writer.h b/src/mov_encoder_writer.h
index e653223..3146bf8 100644
--- a/src/mov_encoder_writer.h
+++ b/src/mov_encoder_writer.h
@@ -33,6 +33,8 @@
#include "file.h"
#include "info.h"
+#include "threadsafe_queue_priority.h"
+
#include <string>
using namespace std;
@@ -42,8 +44,8 @@ using namespace std;
class MovEncoderWriter : public Thread {
public:
MovEncoderWriter(const char* cpr,
- FramePriorityQueue *video_queue, pthread_mutex_t *video_mutex, sem_t *video_sem,
- FramePriorityQueue *audio_queue, pthread_mutex_t *audio_mutex, sem_t *audio_sem,
+ ThreadSafeQueuePriority *video_queue,
+ ThreadSafeQueuePriority *audio_queue,
Info *info);
~MovEncoderWriter();
@@ -56,23 +58,8 @@ private:
File *file;
- FramePriorityQueue *video_queue;
- FramePriorityQueue *audio_queue;
- pthread_mutex_t *video_mutex;
- pthread_mutex_t *audio_mutex;
- sem_t *video_sem;
- sem_t *audio_sem;
-
- unsigned int video_frame_number;
- unsigned int audio_frame_number;
-
- // Timecode_struc SCR;
- // double timestamp;
-
-// void write_audio_header(unsigned short int packetsize);
-// void write_video_header(unsigned short int packetsize);
-// void write_system_header(unsigned int audio_size, unsigned int video_size);
-// void write_packet_header(unsigned int audio_size, unsigned int video_size);
+ ThreadSafeQueuePriority *video_queue;
+ ThreadSafeQueuePriority *audio_queue;
};