summaryrefslogtreecommitdiff
path: root/client/decoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/decoder.cc')
-rw-r--r--client/decoder.cc20
1 files changed, 18 insertions, 2 deletions
diff --git a/client/decoder.cc b/client/decoder.cc
index d4d1d15..e181516 100644
--- a/client/decoder.cc
+++ b/client/decoder.cc
@@ -28,14 +28,30 @@
#include "info.h"
+#include "dv.h"
+//#include "dvfile.h"
+#include "dv1394.h"
+
Decoder::Decoder()
-{}
+{
+ frame = NULL;
+}
Decoder::~Decoder()
{}
void Decoder::run()
{
- // MIaV::info->info("The decoder thread is running.");
+ dv1394 reader;
+
+ reader.connect();
+
+ while(1) {
+ frame = reader.readFrame();
+ }
}
+unsigned char *Decoder::getFrame()
+{
+ return frame;
+}