From 897867cc9d3bc869317666993a9cc6ef38c163e2 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 15 Jun 2006 17:35:33 +0000 Subject: Prepared for the client to use uncompressed frames (YUV422 instead of DV). Still a lot of work to do though! --- client/dv1394.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'client/dv1394.cc') diff --git a/client/dv1394.cc b/client/dv1394.cc index e463c54..7dac7b3 100644 --- a/client/dv1394.cc +++ b/client/dv1394.cc @@ -150,7 +150,7 @@ bool dv1394::connect() return true; } -unsigned char *dv1394::readFrame() +Frame *dv1394::readFrame() { // Firewire port not correctly opened. if(!handle) return NULL; @@ -164,6 +164,9 @@ unsigned char *dv1394::readFrame() break; } } - return ptr; + + Frame *frame = new Frame((char*)ptr, DVPACKAGE_SIZE, VF_DV, NULL, 0, AF_DV); + + return frame; } -- cgit v1.2.3