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.
56 lines
1.4 KiB
56 lines
1.4 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: DirectShowStream.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of DirectShowStream.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __DIRECT__SHOW__STREAM__H__INCLUDED__
|
|
#define __DIRECT__SHOW__STREAM__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\Thread.h"
|
|
#include "..\Templ.h"
|
|
#include "..\LgLink.h"
|
|
|
|
class CDirectShowSampleGrabberCB;
|
|
class CDirectShowVideo;
|
|
|
|
class CDirectShowStream :
|
|
public CLgLinkP<CDirectShowStream,CDirectShowVideo>,
|
|
public CLgLinkSP<CDirectShowStream,CDirectShowSampleGrabberCB>
|
|
{
|
|
protected:
|
|
CDirectShowStream();
|
|
virtual ~CDirectShowStream();
|
|
|
|
protected:
|
|
BOOL Create( ISampleGrabber *pSampleGrabber );
|
|
void Destroy();
|
|
|
|
protected:
|
|
friend class CDirectShowSampleGrabberCB;
|
|
virtual void OnVideoSample( double SampleTime, BYTE *pBuffer, long BufferLen ) = 0;
|
|
|
|
public:
|
|
BOOL Link( CDirectShowVideo *pDirectShowVideo, INT nSource );
|
|
|
|
protected:
|
|
BOOL InitCapturer();
|
|
|
|
protected:
|
|
ISampleGrabber *m_pSampleGrabber;
|
|
CDirectShowSampleGrabberCB *m_pDirectShowSampleGrabberCB;
|
|
BITMAPINFOHEADER *m_pBitmapInfoHeader;
|
|
};
|
|
|
|
#endif
|