Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
VideoSource_Centaurus.hh
1 /*
2  * VideoSource_SonyX300.hh
3  *
4  * Created on: Dec 8, 2009
5  * Author: africk
6  */
7 
8 #ifndef __VIDEOSOURCE_CENTAURUS_HH__
9 #define __VIDEOSOURCE_CENTAURUS_HH__
10 
11 #include <VideoSource/VideoSource_Base.hh>
12 #include <Image/Camera.hh>
13 #include <bias_config.h>
14 
15 
16 //#define SV_FIFO_FLAG_NO_LIVE
17 
18 namespace BIAS {
19 
20 #include <dvs_setup.h>
21 #include <dvs_clib.h>
22 #include <dvs_fifo.h>
23 
24 /**
25  \class VideoSource_Centaurus
26  \ingroup g_videosource
27  \author africk
28  \brief VideoSource for Centaurus boards and Sony HD cameras
29  */
30 class BIASVideoSource_EXPORT VideoSource_Centaurus: public VideoSource {
31 
32 public:
34  virtual ~VideoSource_Centaurus();
35 
36  virtual int OpenDevice();
37  int OpenDevice(char * setup);
38  int OpenDevice(char * setup, int openprogram, int opentype, int timeout,
39  int spare);
40 
41  virtual int CloseDevice();
42 
43  virtual int GrabSingle(BIAS::Camera<unsigned char> &image);
44 
45  /*
46  * SV_MODE_COLOR_YUV422_YUYV
47  * SV_MODE_SMPTE274_25sF, SV_MODE_SMPTE274_30sF
48  * SV_MODE_STORAGE_FRAME
49  */
50  int SetVideoMode(int mode = (SV_MODE_COLOR_YUV422_YUYV
51  | SV_MODE_SMPTE274_25sF | SV_MODE_STORAGE_FRAME));
52 
53  int InitFiFo();
54 
55  int InitImage(BIAS::ImageBase &Image);
56 
57  static char setup;
58 private:
59 
60  sv_handle* cam_handleP_;
61  sv_fifo* inputFifoP_;
62 
63  std::string setup1_;
64  std::string setup2_;
65 };
66 }
67 
68 #endif /* __VIDEOSOURCE_CENTAURUS_HH__ */
Defines a common interface to different devices.
VideoSource for Centaurus boards and Sony HD cameras.
The image template class for specific storage types.
Definition: Image.hh:78
This is the base class for images in BIAS.
Definition: ImageBase.hh:102