image.h

00001
00002 /***************************************************************************
00003  *  image.h - Abstract class defining a camera image controller
00004  *
00005  *  Created: Wed Apr 22 11:32:56 CEST 2009
00006  *  Copyright  2009      Tobias Kellner
00007  *             2005-2009 Tim Niemueller [www.niemueller.de]
00008  *
00009  ****************************************************************************/
00010
00011 /*  This program is free software; you can redistribute it and/or modify
00012  *  it under the terms of the GNU General Public License as published by
00013  *  the Free Software Foundation; either version 2 of the License, or
00014  *  (at your option) any later version. A runtime exception applies to
00015  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00016  *
00017  *  This program is distributed in the hope that it will be useful,
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *  GNU Library General Public License for more details.
00021  *
00022  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00023  */
00024
00025 #ifndef __FIREVISION_CAMS_CONTROL_IMAGE_H_
00026 #define __FIREVISION_CAMS_CONTROL_IMAGE_H_
00027 
00028 #include <cams/control/control.h>
00029
00030 class CameraControlImage : virtual public CameraControl
00031 {
00032  public:
00033   virtual ~CameraControlImage();
00034
00035   virtual const char * format();
00036   virtual void         set_format(const char *format);
00037   virtual unsigned int width()                                         = 0;
00038   virtual unsigned int height()                                        = 0;
00039   virtual void         size(unsigned int &width, unsigned int &height);
00040   virtual void         set_size(unsigned int width,
00041                                 unsigned int height)                   = 0;
00042   virtual bool         horiz_mirror();
00043   virtual bool         vert_mirror();
00044   virtual void         mirror(bool &horiz, bool &vert);
00045   virtual void         set_horiz_mirror(bool enabled);
00046   virtual void         set_vert_mirror(bool enabled);
00047   virtual void         set_mirror(bool horiz, bool vert);
00048
00049   virtual unsigned int fps();
00050   virtual void         set_fps(unsigned int fps);
00051
00052   virtual unsigned int lens_x_corr();
00053   virtual unsigned int lens_y_corr();
00054   virtual void         lens_corr(unsigned int &x_corr, unsigned int &y_corr);
00055   virtual void         set_lens_x_corr(unsigned int x_corr);
00056   virtual void         set_lens_y_corr(unsigned int y_corr);
00057   virtual void         set_lens_corr(unsigned int x_corr, unsigned int y_corr);
00058 };
00059
00060 #endif // __FIREVISION_CAMS_CONTROL_IMAGE_H_