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.
82 lines
2.2 KiB
82 lines
2.2 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 07/12/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: DirectShowStreamVideo.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of DirectShowStreamVideo.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __DIRECT__SHOW__STREAM__INCLUDED__
|
|
#define __DIRECT__SHOW__STREAM__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\thread.h"
|
|
#include "..\LgImageDIB.h"
|
|
#include "DirectShowStream.h"
|
|
#include "LgMediaServer.h"
|
|
|
|
class CDirectShowStreamVideo :
|
|
public CDirectShowStream
|
|
{
|
|
friend class CDirectShowBase;
|
|
friend class CLgDirectShowCaptureGraph;
|
|
|
|
protected:
|
|
CDirectShowStreamVideo();
|
|
virtual ~CDirectShowStreamVideo();
|
|
|
|
protected:
|
|
BOOL Create( IBaseFilter *pSourceFilter, IBaseFilter *pCaptureFilter );
|
|
void Destroy();
|
|
|
|
public:
|
|
BOOL IsSwitchable();
|
|
INT GetVideoSourceCount();
|
|
BOOL SetVideoSource( INT nSource );
|
|
BOOL SetVideoStandart( long lVideoStandard );
|
|
BOOL SetVideoSaturation( double dPercent );
|
|
BOOL SetVideoBrightness( double dPercent );
|
|
BOOL SetVideoContrast( double dPercent );
|
|
BOOL SetVideoFPS( INT nFPS );
|
|
BOOL ShowPropertyPage( HWND hParentWnd );
|
|
|
|
public:
|
|
virtual void OnVideoSample( double SampleTime, BYTE *pBuffer, long BufferLen );
|
|
|
|
private:
|
|
static PVOID FindInterface( IBaseFilter *pFilter, REFIID iid );
|
|
BOOL InitSwitcher();
|
|
|
|
private:
|
|
IVideoWindow *m_pVideoWindow;
|
|
IAMVideoProcAmp *m_pAMVideoProcAmp;
|
|
IAMAnalogVideoDecoder *m_pAMAnalogVideoDecoder;
|
|
IAMCrossbar *m_pAMCrossbar;
|
|
IBaseFilter *m_pCaptureFilter;
|
|
|
|
LONG *m_pInputPin;
|
|
LONG m_nInputPinCount;
|
|
LONG m_nOutputPin;
|
|
|
|
INT m_nDirectShowVideoSwitch;
|
|
INT m_nDirectShowVideoFrame;
|
|
INT m_nDirectShowVideoSource;
|
|
INT m_nDirectShowVideoStandard;
|
|
|
|
INT m_nVideoFPS;
|
|
|
|
//#define __INCLUDE__VIDEO__MEDIA__SERVER__
|
|
#ifdef __INCLUDE__VIDEO__MEDIA__SERVER__
|
|
CLgMediaServer m_MediaServer;
|
|
#endif //INCLUDE__VIDEO__MEDIA__SERVER__
|
|
};
|
|
|
|
#endif
|