source: eviacam/trunk/fuentes/creavision/crvcamera_wdm.h @ 567

Last change on this file since 567 was 567, checked in by mabarracus, 4 years ago

updated sources to version 2.0.3

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1/////////////////////////////////////////////////////////////////////////////
2// Name:        crvcamera_wdm.h
3// Purpose: 
4// Author:      Cesar Mauri Loba (cesar at crea-si dot com)
5// Modified by:
6// Created:     30/01/2009
7// Copyright:   (C) 2009 Cesar Mauri Loba - CREA Software Systems
8//
9//  This program is free software: you can redistribute it and/or modify
10//  it under the terms of the GNU General Public License as published by
11//  the Free Software Foundation, either version 3 of the License, or
12//  (at your option) any later version.
13//
14//  This program is distributed in the hope that it will be useful,
15//  but WITHOUT ANY WARRANTY; without even the implied warranty of
16//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17//  GNU General Public License for more details.
18//
19//  You should have received a copy of the GNU General Public License
20//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
21/////////////////////////////////////////////////////////////////////////////
22#ifndef CRVCAMERA_WDM_H_
23#define CRVCAMERA_WDM_H_
24
25#include "crvcamera.h"
26#include "crvimage.h"
27class videoInput;
28
29class CCameraWDM : public CCamera
30{
31public:
32        CCameraWDM(int cameraId= -1, unsigned int width= 320, 
33                unsigned int height= 240, float fr= 30.0f) throw(camera_exception);
34        virtual ~CCameraWDM (void);
35
36        static int GetNumDevices();
37        static const char* GetDeviceName (unsigned int id);
38
39        virtual bool DoOpen();
40        virtual void DoClose(); 
41        virtual IplImage *DoQueryFrame();
42        virtual bool DoQueryFrame(CIplImage& image);
43
44        virtual bool HasSettingsDialog() { return true; }
45        virtual void ShowSettingsDialog ();
46
47private:
48        enum { MAX_CAM_DEVICES= 10, CAM_DEVICE_NAME_LENGHT= 50 };
49        static int g_numDevices;
50        static char g_deviceNames[MAX_CAM_DEVICES][CAM_DEVICE_NAME_LENGHT];
51
52        int m_Id;
53        unsigned int m_Width, m_Height;
54        float m_FrameRate;
55        videoInput* m_VI;
56        CIplImage m_Image;
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.