avi_write.h File Reference

Go to the source code of this file.

Defines

#define SAFE_RELEASE(x)   { if (x) x->Release(); x = NULL; }
#define JIF(x)
#define DEFAULT_VIDEO_WIDTH   200
#define DEFAULT_VIDEO_HEIGHT   100
#define APPLICATIONNAME   TEXT("OpenFX\0")
#define CLASSNAME   TEXT("OFX:AVI_WriteWindow\0")
#define WM_GRAPHNOTIFY   WM_APP+1
#define IDI_VIDPREVIEW   100
#define IDD_DIALOG1   101
#define IDC_LIST1   1000
#define IDC_STATIC   -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 SetupVideoWindow (void)
HRESULT ChangePreviewState (int nShow)
HRESULT HandleGraphEvent (void)
void Msg (TCHAR *szFormat,...)
void CloseInterfaces (void)
void ResizeVideoWindow (void)
HRESULT AddGraphToRot (IUnknown *pUnkGraph, DWORD *pdwRegister)
void RemoveGraphFromRot (DWORD pdwRegister)


Define Documentation

#define SAFE_RELEASE ( x   )     { if (x) x->Release(); x = NULL; }

Definition at line 26 of file avi_write.h.

#define JIF ( x   ) 

Value:

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

Definition at line 28 of file avi_write.h.

#define DEFAULT_VIDEO_WIDTH   200

Definition at line 34 of file avi_write.h.

#define DEFAULT_VIDEO_HEIGHT   100

Definition at line 35 of file avi_write.h.

#define APPLICATIONNAME   TEXT("OpenFX\0")

Definition at line 37 of file avi_write.h.

#define CLASSNAME   TEXT("OFX:AVI_WriteWindow\0")

Definition at line 38 of file avi_write.h.

#define WM_GRAPHNOTIFY   WM_APP+1

Definition at line 41 of file avi_write.h.

#define IDI_VIDPREVIEW   100

Definition at line 46 of file avi_write.h.

Referenced by AVIEntryPoint().

#define IDD_DIALOG1   101

Definition at line 48 of file avi_write.h.

Referenced by _ExternalPreset(), and DoDialog().

#define IDC_LIST1   1000

Definition at line 49 of file avi_write.h.

Referenced by OnInitDialog(), and OnSelectFilter().

#define IDC_STATIC   -1

Definition at line 50 of file avi_write.h.


Enumeration Type Documentation

enum PLAYSTATE

Enumerator:
Stopped 
Paused 
Running 
Init 

Definition at line 21 of file avi_write.h.


Function Documentation

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   ) 

Definition at line 39 of file avi_write.cpp.

References g_pCapture, g_pGraph, g_pMC, g_pME, g_pVW, ghApp, and WM_GRAPHNOTIFY.

HRESULT CaptureVideo (  ) 

HRESULT SetupVideoWindow ( void   ) 

Definition at line 75 of file avi_write.cpp.

References g_pVW, ghApp, and ResizeVideoWindow().

HRESULT ChangePreviewState ( int  nShow  ) 

Definition at line 95 of file avi_write.cpp.

References g_pMC, g_psCurrent, Running, and Stopped.

Referenced by WndMainProc().

HRESULT HandleGraphEvent ( void   ) 

Definition at line 127 of file avi_write.cpp.

References g_pME, and ghApp.

void Msg ( TCHAR *  szFormat,
  ... 
)

Definition at line 114 of file avi_write.cpp.

void CloseInterfaces ( void   ) 

void ResizeVideoWindow ( void   ) 

Definition at line 87 of file avi_write.cpp.

References g_pVW, and ghApp.

HRESULT AddGraphToRot ( IUnknown *  pUnkGraph,
DWORD *  pdwRegister 
)

void RemoveGraphFromRot ( DWORD  pdwRegister  ) 


Generated on Sun Apr 27 14:20:17 2014 for OpenFX by  doxygen 1.5.6