Spinnaker SDK C++
4.1.0.338
 
 

 
Loading...
Searching...
No Matches
SpinSimpleGUI_DirectShow.cpp File Reference

Macros

#define _WIN32_WINNT   0x0501
 

Functions

HRESULT CaptureVideo ()
 
HRESULT FindCaptureDevice (IBaseFilter **ppSrcFilter)
 
HRESULT GetInterfaces (void)
 
void CloseInterfaces (void)
 
HRESULT SetupCamera (IBaseFilter *pSrcFilter)
 
HRESULT SetupVideoWindow (void)
 
void ResizeVideoWindow (void)
 
HRESULT ChangePreviewState (int nShow)
 
void MsgError (TCHAR *szFormat,...)
 
void MsgInfo (TCHAR *szFormat,...)
 
HRESULT HandleGraphEvent (void)
 
LRESULT CALLBACK WndMainProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
 
int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hInstP, LPSTR lpCmdLine, int nCmdShow)
 

Variables

HWND ghApp = 0
 
DWORD g_dwGraphRegister = 0
 
IVideoWindow * g_pVW = nullptr
 
IMediaControl * g_pMC = nullptr
 
IMediaEventEx * g_pME = nullptr
 
IGraphBuilder * g_pGraph = nullptr
 
ICaptureGraphBuilder2 * g_pCapture = nullptr
 
PLAYSTATE g_psCurrent = Stopped
 

Macro Definition Documentation

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x0501

Function Documentation

◆ CaptureVideo()

HRESULT CaptureVideo ( )

◆ ChangePreviewState()

HRESULT ChangePreviewState ( int  nShow)

◆ CloseInterfaces()

void CloseInterfaces ( void  )

◆ FindCaptureDevice()

HRESULT FindCaptureDevice ( IBaseFilter **  ppSrcFilter)

◆ GetInterfaces()

HRESULT GetInterfaces ( void  )

◆ HandleGraphEvent()

HRESULT HandleGraphEvent ( void  )

◆ MsgError()

void MsgError ( TCHAR *  szFormat,
  ... 
)

◆ MsgInfo()

void MsgInfo ( TCHAR *  szFormat,
  ... 
)

◆ ResizeVideoWindow()

void ResizeVideoWindow ( void  )

◆ SetupCamera()

HRESULT SetupCamera ( IBaseFilter *  pSrcFilter)

◆ SetupVideoWindow()

HRESULT SetupVideoWindow ( void  )

◆ WinMain()

int PASCAL WinMain ( HINSTANCE  hInstance,
HINSTANCE  hInstP,
LPSTR  lpCmdLine,
int  nCmdShow 
)

◆ WndMainProc()

LRESULT CALLBACK WndMainProc ( HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Variable Documentation

◆ g_dwGraphRegister

DWORD g_dwGraphRegister = 0

◆ g_pCapture

ICaptureGraphBuilder2* g_pCapture = nullptr

◆ g_pGraph

IGraphBuilder* g_pGraph = nullptr

◆ g_pMC

IMediaControl* g_pMC = nullptr

◆ g_pME

IMediaEventEx* g_pME = nullptr

◆ g_psCurrent

◆ g_pVW

IVideoWindow* g_pVW = nullptr

◆ ghApp

HWND ghApp = 0