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.
 
 
 
 
 

61 lines
1.7 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: DirectShowVideo.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of DirectShowVideo.h
//----------------------------------------------------------------------------
#ifndef __DIRECT__SHOW__VIDEO__H__INCLUDED__
#define __DIRECT__SHOW__VIDEO__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "..\LgImageDIB.h"
#include "..\Templ.h"
#include "..\LgLink.h"
class CDirectShowStream;
class CDirectShowVideo :
public CLgLinkSP<CDirectShowVideo,CDirectShowStream>
{
public:
CDirectShowVideo();
virtual ~CDirectShowVideo();
public:
CLgImageDIB& GetDirectShowDIB() { return m_DirectShowDIB; }
public:
void UpdateVideo( LPBITMAPINFOHEADER pBitmapInfoHeader, PBYTE pBytes, double SampleTime );
protected:
virtual void OnVideoSample( double SampleTime ) = 0;
public:
virtual BOOL Unlink( CLgLink<CDirectShowStream,CDirectShowVideo> *pLink = NULL );
public:
void SetVideoStandard( long nVideoStandard ) { m_nVideoStandard = nVideoStandard; }
long GetVideoStandard() { return m_nVideoStandard; }
void SetVideoInput( INT nVideoInput ) { m_nVideoInput = nVideoInput; }
INT GetVideoInput() { return m_nVideoInput; }
void ShowVideo( BOOL bShow ) { m_bShowVideo = bShow; }
BOOL IsVideoShow() { return m_bShowVideo; }
private:
CLgImageDIB m_DirectShowDIB;
BOOL m_bShowVideo;
INT m_nVideoInput;
long m_nVideoStandard;
};
#endif