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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 24/03/2000
// Last modification: 08/10/2003
// Project Intruder Position Indicator
// SUBSYSTEM: Video Camera Showing Window
// FILE: VideoDirectShowWnd.h
// AUTHOR: Chizhevskiy Sergey
// OVERVIEW
// ~~~~~~~~
// Header file for class CVideoDirectShowWnd
//----------------------------------------------------------------------------
#ifndef __VIDEO__DIRECT__SHOW__WND__H__INCLUDED__
#define __VIDEO__DIRECT__SHOW__WND__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "VideoWnd.h"
#include "..\lglib\video\DirectShowBase.h"
#include "..\lglib\video\DirectShowVideo.h"
#include "..\lglib\DirectDraw\LgDirectDrawVideo.h"
#define WM_VIDEO_SAMPLE (WM_USER + 1)
class CVideoDirectShowWnd : public CVideoWnd, public CDirectShowVideo, public CLgDirectDrawVideo{public: CVideoDirectShowWnd(); virtual ~CVideoDirectShowWnd();
public: virtual BOOL Create( BOOL bStretchVideo, HWND hParentWnd, INT x, INT y, INT cx, INT cy, CProfile *pProfile );
protected: virtual HBITMAP StoreImage( HANDLE, LPCTSTR, INT nWidth, INT nHeight, INT nBitCount ); virtual HBITMAP StoreImage( LPBYTE, LPCTSTR, INT nWidth, INT nHeight, INT nBitCount ); virtual HBITMAP GetSnapshot();
protected: virtual void OnVideoSample( double SampleTime );
protected: virtual CLgImageDIB& GetDirectDrawVideoDIB() { return GetDirectShowDIB(); }
private: virtual LRESULT OnDestroy( WPARAM wParam, LPARAM lParam ); virtual LRESULT OnSize( WPARAM wParam, LPARAM lParam ); virtual LRESULT WindowProc( UINT, WPARAM, LPARAM ); virtual LRESULT OnShowWindow( WPARAM, LPARAM ); virtual void OnPaint( HDC hDC ); LRESULT OnVideoSample( WPARAM, LPARAM );
protected: DWORD m_dwTime; INT m_nCount; INT m_nLastCount;
private: CLgImageDIB m_StoreDIB;};
#endif
|