⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1394cameracontrolsize.h

📁 IEEE-1394 Digital Camera Windows Driver
💻 H
字号:
//  1394CameraControlSize.h: interface for the C1394CameraControlSize class.
//
//	Version 5.2
//
//	Copyright 5/2000
// 
//	Iwan Ulrich
//	Robotics Institute
//	Carnegie Mellon University
//	Pittsburgh, PA
//
//  Copyright 3/2002
//
//  Christopher Baker
//  Robotics Institute
//  Carnegie Mellon University
//  Pittsburgh, PA
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//  
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//  
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
//////////////////////////////////////////////////////////////////////

#ifndef __1394CAMERACONTROLSIZE_H__
#define __1394CAMERACONTROLSIZE_H__

class C1394Camera;

class CAMAPI C1394CameraControlSize  
{
friend C1394Camera;

public:
	bool Supported();
	bool ModeSupported(int mode);
	void SetColorCode(int code);
	void SetSize(int width, int height);
	void SetPosition(int left, int top);
	void Status();
	C1394CameraControlSize();
	virtual ~C1394CameraControlSize();

	int m_maxH;
	int m_maxV;
	int m_unitH;
	int m_unitV;
	int m_top;
	int m_left;
	int m_width;
	int m_height;
	int m_colorCode;
	bool m_colorCodes[7];


private:
	void SetBytesPerPacket(int bytes);
	unsigned long ReadQuadlet(unsigned long offset);
	void WriteQuadlet(unsigned long offset, unsigned long data);
	void Update();

	C1394Camera* m_pCamera;
	ASYNC_READ m_asyncRead;
	ASYNC_WRITE m_asyncWrite;
	int m_pixelsFrame;
	int m_bytesFrameHigh;
	int m_bytesFrameLow;
	int m_bytesPacketMin;
	int m_bytesPacketMax;
	int m_bytesPacket;
	int m_offset;
};

#endif // __1394CAMERACONTROLSIZE_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -