diff options
author | deva <deva> | 2006-08-12 15:00:40 +0000 |
---|---|---|
committer | deva <deva> | 2006-08-12 15:00:40 +0000 |
commit | 49265541974282f3346c9dc7de2365858f9fcb4d (patch) | |
tree | 0861c3b9bdb9d64a7c68674c4f864171a26eed18 /lib/frame.h | |
parent | a145483e4f59ae76b28657cefd1b1e72fe5e4e2c (diff) |
Added timecode and fixed the sending and receiving of frames through the network.
Diffstat (limited to 'lib/frame.h')
-rw-r--r-- | lib/frame.h | 16 |
1 files changed, 9 insertions, 7 deletions
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 <vector> +#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; |