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.
 
 
 
 
 

89 lines
2.5 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 31/10/2001
// PROJECT:
// SUBSYSTEM:
// FILE: DSVideoProcessor.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of DSVideoProcessor.h
//----------------------------------------------------------------------------
#ifndef __VIDEO__PROCESSOR__H__INCLUDED__
#define __VIDEO__PROCESSOR__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include <dshow.h>
#include <Qedit.h>
#include "DSSampleGrabberCB.h"
#include "DDVideoWnd.h"
#include "SymbolData.h"
#include "..\..\LgLib\Thread.h"
#include <afxmt.h>
class CDSVideoProcessor : public CThread
{
friend class CDSConfiguration;
friend class CDSVideoWnd;
friend class CDDVideoWnd;
friend class CDSSampleGrabberCB;
public:
CDSVideoProcessor();
virtual ~CDSVideoProcessor();
public:
BOOL Create( CDSConfiguration* pDirectShow );
void Destroy();
public:
BOOL Capture( LPBITMAPINFO pBitmapInfo, LPBYTE pBytes );
BOOL SetVideoStandart( long VideoStandard );
HBITMAP CaptureDIB();
BOOL SwitchVideo( int nInputPin );
BOOL GetDirectInput( PLONG pInput );
BOOL SetDirectOutput( LONG nIndex, BOOL bOn );
void ActivateWnd( LONG nIndex );
protected:
void FindMembers( IBaseFilter* );
BOOL InitSwitch();
BOOL ConnectVideoWnd( IVideoWindow** ppVideoWindow );
BOOL ConnectVideoWnd( CDDVideoWnd *pVideoWnd, int nInput = -1 );
// BOOL DrawText( LPCTSTR pText, LPBITMAPINFO pBitmapInfo, LPBYTE pBytes, COLORREF dwColor );
protected:
void OnVideoSample();
virtual DWORD ThreadProc();
protected:
void ProcessVideoSample();
IVideoWindow *m_pVideoWindow;
IAMCrossbar *m_pAMCrossbar;
IAMVideoProcAmp *m_pAMVideoProcAmp;
IAMAnalogVideoDecoder *m_pAMAnalogVideoDecoder;
ISampleGrabber *m_pSampleGrabber;
CDSSampleGrabberCB *m_pSampleGrabberCB;
VIDEOINFOHEADER *m_pVideoHeader;
LONG *m_pInputPin;
LONG m_nInputPinCount;
LONG m_nOutputPin;
enum { VT_NONE_VIDEO, VT_LIVE_VIDEO, VT_MULTIPLEX_VIDEO } m_nVideoType;
CDDVideoWnd **m_ppPseudoVideoWnd;
BOOL *m_pbPseudoVideoWnd;
LONG m_nPseudoVideoWnd;
LONG m_nPseudoCaptureLoop;
LONG m_nPseudoLastInput;
DWORD m_dwPseudoLastTime;
CCriticalSection m_CriticalSection;
HANDLE m_hEventVideoSample;
};
#endif