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.
47 lines
1.3 KiB
47 lines
1.3 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: VideoCaptureSource.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of VideoCaptureSource.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __VIDEO__CAPTURE__SOURCE__H__INCLUDED__
|
|
#define __VIDEO__CAPTURE__SOURCE__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
class CVideoCamera;
|
|
|
|
class CVideoCaptureSource
|
|
{
|
|
public:
|
|
CVideoCaptureSource();
|
|
virtual ~CVideoCaptureSource();
|
|
|
|
public:
|
|
virtual BOOL AssignVideoCamera( CVideoCamera *pVideoCamera );
|
|
CVideoCamera *GetVideoCamera() { return m_pVideoCamera; }
|
|
|
|
public:
|
|
void UpdateMaxPreviewImageCount( INT nImageCount ) { if( nImageCount > m_nPreviewMaxImageCount ) m_nPreviewMaxImageCount = nImageCount; }
|
|
INT GetMaxPreviewImageCount() { return m_nPreviewMaxImageCount; }
|
|
|
|
public:
|
|
virtual BOOL Capture( LPBITMAPINFO *pBitmapInfo, LPBYTE *ppBytes, HBITMAP *pBitmap, DWORD dwPreviewTime = 0 ) = 0;
|
|
|
|
protected:
|
|
CVideoCamera *m_pVideoCamera;
|
|
|
|
protected:
|
|
INT m_nPreviewMaxImageCount;
|
|
};
|
|
|
|
#endif
|