Spinnaker SDK C++
4.1.0.338
 
 

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

Macros

#define SAFE_RELEASE(x)
 
#define JIF(x)
 
#define DEFAULT_VIDEO_WIDTH   320
 
#define DEFAULT_VIDEO_HEIGHT   320
 
#define APPLICATIONNAME   TEXT("SpinSimpleGUI_DirectShow\0")
 
#define CLASSNAME   TEXT("SpinSimpleGUI_DirectShow\0")
 
#define WM_GRAPHNOTIFY   WM_APP + 1
 

Enumerations

enum  PLAYSTATE { Stopped , Paused , Running , Init }
 

Functions

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

Macro Definition Documentation

◆ APPLICATIONNAME

#define APPLICATIONNAME   TEXT("SpinSimpleGUI_DirectShow\0")

◆ CLASSNAME

#define CLASSNAME   TEXT("SpinSimpleGUI_DirectShow\0")

◆ DEFAULT_VIDEO_HEIGHT

#define DEFAULT_VIDEO_HEIGHT   320

◆ DEFAULT_VIDEO_WIDTH

#define DEFAULT_VIDEO_WIDTH   320

◆ JIF

#define JIF (   x)
Value:
if (FAILED(hr = (x))) \
{ \
Msg(TEXT("FAILED(hr=0x%x) in ") TEXT(#x) TEXT("\n\0"), hr); \
return hr; \
}

◆ SAFE_RELEASE

#define SAFE_RELEASE (   x)
Value:
{ \
if (x) \
x->Release(); \
x = NULL; \
}
Examples
SpinSimpleGUI_DirectShow.cpp.

◆ WM_GRAPHNOTIFY

#define WM_GRAPHNOTIFY   WM_APP + 1

Enumeration Type Documentation

◆ PLAYSTATE

enum PLAYSTATE
Enumerator
Stopped 
Paused 
Running 
Init 

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 
)