summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/camera/camera.h
diff options
context:
space:
mode:
authorschodet2003-05-26 08:52:09 +0000
committerschodet2003-05-26 08:52:09 +0000
commitcb1085dbb78af63faae1ead1fd630d8bcaf8657b (patch)
tree9eb347cca968ad3517a0495603dbacb90f1eb9f5 /2003/i/buzz/src/camera/camera.h
parenta47797ded74f6aa8e4193eff4c05d1df415c3c6a (diff)
Modification des param├Ętres w/h/d
Diffstat (limited to '2003/i/buzz/src/camera/camera.h')
-rw-r--r--2003/i/buzz/src/camera/camera.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/2003/i/buzz/src/camera/camera.h b/2003/i/buzz/src/camera/camera.h
index 2d056c4..2ab1479 100644
--- a/2003/i/buzz/src/camera/camera.h
+++ b/2003/i/buzz/src/camera/camera.h
@@ -7,7 +7,7 @@
class Camera
{
int m_fd;
- int m_w, m_h;
+ int m_w, m_h, m_d;
int m_cut;
int m_frameSize;
public:
@@ -17,8 +17,11 @@ class Camera
~Camera ();
// Lit une image.
int read (unsigned char *image) const;
+ // Lit une image en RGB.
+ int readRGB (unsigned char *rgb) const;
// Lit la taille.
void getSize (int &w, int &h) const { w = m_w; h = m_h; }
+ void getSize (int &w, int &h, int &d) const { w = m_w; h = m_h; d = m_d; }
};
#endif // camera_h