Old fashion design for PC-104
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: VideoCaptureDevice.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of VideoCaptureDevice.h
//----------------------------------------------------------------------------
#ifndef __VIDEO__CAPTURE__DEVICE__H__INCLUDED__
#define __VIDEO__CAPTURE__DEVICE__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "VideoDevice.h"
#include "VideoCaptureSource.h"
#include "VideoCamera.h"
class CVideoCaptureDevice : public CVideoDevice{public: CVideoCaptureDevice(); virtual ~CVideoCaptureDevice();
public: virtual void SetIOCount( int nInput, int nOutput ); virtual void Destroy();
public: int GetVideoDeviceID() { return m_nVideoDeviceID; } void SetVideoDeviceID( INT nID ) { m_nVideoDeviceID = nID; } void SetVideoStandard( INT nStandard ) { m_nVideoStandard = nStandard; } INT GetVideoStandard() { return m_nVideoStandard; }
public: BOOL AssignVideoCamera( int nIndex, CVideoCamera *pVideoCamera ); BOOL AssignCaptureSource( int nInput, CVideoCaptureSource *pVideoCaptureSource ); BOOL Capture( int nInput, LPBITMAPINFO *pBitmapInfo, LPBYTE *ppBytes, HBITMAP *pBitmap, DWORD dwPreviewTime = 0 ); int GetAvailiblePin( CVideoPin *pOutputPin, int nSearchFrom = -1 ); CVideoCaptureSource *GetCaptureSource( int nInput ) { return nInput < GetInputCount() ? m_ppVideoCaptureSource[nInput] : NULL; }
protected: CVideoCaptureSource **m_ppVideoCaptureSource;
private: INT m_nVideoDeviceID;
private: INT m_nVideoStandard;};
#endif
|