summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/camera/camera.h
blob: 5c15a8808b55f3e3f88c2456564390135c6beb88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;
    static const int m_w = 352, m_h = 280;
    int m_frameSize;
  public:
    // Constructeur.
    Camera ();
    // Destructeur.
    ~Camera ();
    // Lit une image.
    void read (unsigned char *image) const;
    // Lit la taille.
    void getSize (int &w, int &h) const { w = m_w; h = m_h; }
};

#endif // camera_h