Subversion Repositories seema-scanner

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 jakw 1
#ifndef CAMERAIIDC_H
2
#define CAMERAIIDC_H
3
 
4
#include "Camera.h"
5
#include <dc1394/dc1394.h>
6
 
7
using namespace std;
8
 
9
class CameraIIDC : public Camera {
10
    public:
11
        // Static methods
12
        static vector<CameraInfo> getCameraList();
13
        // Interface function
14
        CameraIIDC(unsigned int camNum);
15
        CameraSettings getCameraSettings();
16
        void setCameraSettings(CameraSettings);
17
        void startCapture();
18
        void stopCapture();
19
        CameraFrame lockFrame();
20
        void unlockFrame();
21
        CameraFrame getSingleFrame();
22
        size_t getFrameSizeBytes();
23
        void getFrameWidthHeight(unsigned int *width, unsigned int *height);
24
        ~CameraIIDC();
25
    private:
26
        dc1394_t *context;
27
        dc1394camera_t *cam;
28
        dc1394video_mode_t video_mode;
29
        dc1394video_frame_t *currentFrame;
30
        void flushBuffer();
31
};
32
 
33
#endif