[89] | 1 | // 1394CameraControlSize.h: interface for the C1394CameraControlSize class.
|
---|
| 2 | //
|
---|
| 3 | // Version 5.2
|
---|
| 4 | //
|
---|
| 5 | // Copyright 5/2000
|
---|
| 6 | //
|
---|
| 7 | // Iwan Ulrich
|
---|
| 8 | // Robotics Institute
|
---|
| 9 | // Carnegie Mellon University
|
---|
| 10 | // Pittsburgh, PA
|
---|
| 11 | //
|
---|
| 12 | // Copyright 3/2002
|
---|
| 13 | //
|
---|
| 14 | // Christopher Baker
|
---|
| 15 | // Robotics Institute
|
---|
| 16 | // Carnegie Mellon University
|
---|
| 17 | // Pittsburgh, PA
|
---|
| 18 | //
|
---|
| 19 | // This program is free software; you can redistribute it and/or
|
---|
| 20 | // modify it under the terms of the GNU General Public License
|
---|
| 21 | // as published by the Free Software Foundation; either version 2
|
---|
| 22 | // of the License, or (at your option) any later version.
|
---|
| 23 | //
|
---|
| 24 | // This program is distributed in the hope that it will be useful,
|
---|
| 25 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 26 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 27 | // GNU General Public License for more details.
|
---|
| 28 | //
|
---|
| 29 | // You should have received a copy of the GNU General Public License
|
---|
| 30 | // along with this program; if not, write to the Free Software
|
---|
| 31 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
| 32 | //
|
---|
| 33 | //////////////////////////////////////////////////////////////////////
|
---|
| 34 |
|
---|
| 35 | #ifndef __1394CAMERACONTROLSIZE_H__
|
---|
| 36 | #define __1394CAMERACONTROLSIZE_H__
|
---|
| 37 |
|
---|
| 38 | #include "1394CameraControl.h"
|
---|
| 39 |
|
---|
| 40 | class C1394Camera;
|
---|
| 41 |
|
---|
| 42 | class CAMAPI C1394CameraControlSize
|
---|
| 43 | {
|
---|
| 44 | friend class C1394Camera;
|
---|
| 45 |
|
---|
| 46 | public:
|
---|
| 47 | bool Supported();
|
---|
| 48 | bool ModeSupported(int mode);
|
---|
| 49 | int SetColorCode(int code);
|
---|
| 50 | int SetSize(unsigned long width, unsigned long height);
|
---|
| 51 | int SetPosition(unsigned long left, unsigned long top);
|
---|
| 52 | int SetBytesPerPacket(int bytes);
|
---|
| 53 | int Status();
|
---|
| 54 | int Inquire();
|
---|
| 55 | C1394CameraControlSize();
|
---|
| 56 | virtual ~C1394CameraControlSize();
|
---|
| 57 |
|
---|
| 58 | unsigned long m_maxH;
|
---|
| 59 | unsigned long m_maxV;
|
---|
| 60 | unsigned long m_unitH;
|
---|
| 61 | unsigned long m_unitV;
|
---|
| 62 | unsigned long m_unitHpos;
|
---|
| 63 | unsigned long m_unitVpos;
|
---|
| 64 | unsigned long m_top;
|
---|
| 65 | unsigned long m_left;
|
---|
| 66 | unsigned long m_width;
|
---|
| 67 | unsigned long m_height;
|
---|
| 68 | unsigned long m_colorCode;
|
---|
| 69 | unsigned long m_pixelsFrame;
|
---|
| 70 | unsigned long m_bytesFrameHigh;
|
---|
| 71 | unsigned long m_bytesFrameLow;
|
---|
| 72 | unsigned long m_bytesPacketMin;
|
---|
| 73 | unsigned long m_bytesPacketMax;
|
---|
| 74 | unsigned long m_bytesPacket;
|
---|
| 75 | unsigned long m_packetsFrame;
|
---|
| 76 | bool m_colorCodes[7];
|
---|
| 77 | bool m_bError1,m_bError2;
|
---|
| 78 |
|
---|
| 79 | C1394Camera* m_pCamera;
|
---|
| 80 |
|
---|
| 81 | private:
|
---|
| 82 | int Update();
|
---|
| 83 | unsigned long m_offset;
|
---|
| 84 | bool m_bValueSetting;
|
---|
| 85 | };
|
---|
| 86 |
|
---|
| 87 | #endif // __1394CAMERACONTROLSIZE_H__
|
---|