Debian Codegraph @

cvd/Linux/dvframe.h

raw symbols SCIP
1 // -*- c++ -*-
2 #ifndef __DVFRAME_H
3 #define __DVFRAME_H
4
5 #include <cvd/byte.h>
6 #include <cvd/videoframe.h>
7
8 namespace CVD
9 {
10
11 /// A frame from a Firewire (IEEE 1394) camera via DVBuffer2.
12 /// Frames are 8-bit greyscale, using the byte type.
13 /// @ingroup gVideoFrame
14 class DVFrame : public VideoFrame<byte>
15 {
16 public:
17 /// (Used internally) Construct a DVFrame.
18 /// @param s The image size
19 /// @param t The time of this frame
20 /// @param buff The buffer number
21 /// @param dptr The image data
22 DVFrame(ImageRef s, timeval t, int buff, byte* dptr)
23 : VideoFrame<byte>(t.tv_sec + 0.000001 * t.tv_usec, dptr, s)
24 {
25 //my_size = s;
26 my_buffer = buff;
27 //my_data = dptr;
28 }
29
30 ~DVFrame() { my_data = 0; }
31
32 int my_buffer; ///< The buffer number
33 };
34
35 }
36
37 #endif