summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/camera/camera.h
blob: 2d056c45650148e08dd18e97e1f10b75574d5564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef camera_h
#define camera_h
// camera.h
// buzz - Programme du robot Efrei Robotique I1-I2 2003
// Copyright (C) 2003 Nicolas Schodet

class Camera
{
    int m_fd;
    int m_w, m_h;
    int m_cut;
    int m_frameSize;
  public:
    // Constructeur.
    Camera ();
    // Destructeur.
    ~Camera ();
    // Lit une image.
    int read (unsigned char *image) const;
    // Lit la taille.
    void getSize (int &w, int &h) const { w = m_w; h = m_h; }
};

#endif // camera_h