From 49265541974282f3346c9dc7de2365858f9fcb4d Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 12 Aug 2006 15:00:40 +0000 Subject: Added timecode and fixed the sending and receiving of frames through the network. --- lib/frame.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'lib/frame.h') diff --git a/lib/frame.h b/lib/frame.h index 8c8fe34..9ddb8e7 100644 --- a/lib/frame.h +++ b/lib/frame.h @@ -3,7 +3,7 @@ * frame.h * * Mon Nov 15 19:45:07 CET 2004 - * Copyright 2004 Bent Bisballe + * Copyright 2004 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ @@ -24,25 +24,23 @@ * along with MIaV; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include "config.h" #ifndef __FRAME_H__ #define __FRAME_H__ #include "format.h" -//#define START_USE_FRAME(x) x->usage++ -//#define STOP_USE_FRAME(x) if(--x->usage == 0) delete x; x = NULL - // Definition of vector #include +#include "timecode.h" + class Frame { public: Frame(char *vframe, int vframesize, video_format_t vformat, char *aframe = NULL, int aframesize = 0, audio_format_t aformat = AF_NONE); // Video - char* vframe; + char *vframe; int vframesize; video_format_t vformat; @@ -51,6 +49,10 @@ public: int aframesize; audio_format_t aformat; + TimeCode timecode; + + bool snapshot; + /** * Old frame code... to be removed shortly */ @@ -70,7 +72,7 @@ public: bool shoot; int freeze; // 1 is freeze, -1 is unfreeze bool record; - char timecode[12]; + char timestamp[12]; bool endOfFrameStream; -- cgit v1.2.3