summaryrefslogtreecommitdiff
path: root/src/mov_encoder_thread.h
diff options
context:
space:
mode:
authordeva <deva>2005-09-18 12:52:16 +0000
committerdeva <deva>2005-09-18 12:52:16 +0000
commita37c83d8c536ef6dd53b130e92022b04e8559f5b (patch)
treefd08ba4bb2c339b4998437e43d620083c33cf60a /src/mov_encoder_thread.h
parentc5ab3a0ea0dfe35dd1927c2ca3c9f27be9db2ebd (diff)
*** empty log message ***
Diffstat (limited to 'src/mov_encoder_thread.h')
-rw-r--r--src/mov_encoder_thread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mov_encoder_thread.h b/src/mov_encoder_thread.h
index 5684edf..e3fba27 100644
--- a/src/mov_encoder_thread.h
+++ b/src/mov_encoder_thread.h
@@ -37,6 +37,7 @@
using namespace std;
#include "mov_encoder.h"
+#include "audio_encoder.h"
#include "mov_encoder_writer.h"
#include "info.h"
@@ -53,20 +54,25 @@ private:
FrameVectorQueue *inputqueue;
FramePriorityQueue *video_outputqueue;
+ FramePriorityQueue *audio_inputqueue;
FramePriorityQueue *audio_outputqueue;
FrameVector *block;
//thread stuff
sem_t in_sem;
sem_t video_out_sem;
+ sem_t audio_in_sem;
sem_t audio_out_sem;
sem_t read_sem;
pthread_mutex_t input_mutex;
pthread_mutex_t video_output_mutex;
+ pthread_mutex_t audio_input_mutex;
pthread_mutex_t audio_output_mutex;
+ volatile bool movencodersrunning;
+
// Used for encoder switching
unsigned int frame_number;
@@ -75,6 +81,8 @@ private:
MovEncoderWriter *writer;
// pthread_t* writer_tid;
+ AudioEncoder* audioenc;
+
int threads;
vector<MovEncoder*> encs;
// vector<pthread_t*> tids;