summaryrefslogtreecommitdiff
path: root/lib/frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/frame.h')
-rw-r--r--lib/frame.h16
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;