avi_write.h

Go to the documentation of this file.
00001 //
00002 // Function prototypes
00003 //
00004 int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hInstP, LPSTR lpCmdLine, int nCmdShow);
00005 LRESULT CALLBACK WndMainProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
00006 
00007 HRESULT GetInterfaces(void);
00008 HRESULT CaptureVideo();
00009 HRESULT SetupVideoWindow(void);
00010 HRESULT ChangePreviewState(int nShow);
00011 HRESULT HandleGraphEvent(void);
00012 
00013 void Msg(TCHAR *szFormat, ...);
00014 void CloseInterfaces(void);
00015 void ResizeVideoWindow(void);
00016 
00017 // Remote graph viewing functions
00018 HRESULT AddGraphToRot(IUnknown *pUnkGraph, DWORD *pdwRegister);
00019 void RemoveGraphFromRot(DWORD pdwRegister);
00020 
00021 enum PLAYSTATE {Stopped, Paused, Running, Init};
00022 
00023 //
00024 // Macros
00025 //
00026 #define SAFE_RELEASE(x) { if (x) x->Release(); x = NULL; }
00027 
00028 #define JIF(x) if (FAILED(hr=(x))) \
00029     {Msg(TEXT("FAILED(hr=0x%x) in ") TEXT(#x) TEXT("\n\0"), hr); return hr;}
00030 
00031 //
00032 // Constants
00033 //
00034 #define DEFAULT_VIDEO_WIDTH     200
00035 #define DEFAULT_VIDEO_HEIGHT    100
00036 
00037 #define APPLICATIONNAME TEXT("OpenFX\0")
00038 #define CLASSNAME       TEXT("OFX:AVI_WriteWindow\0")
00039 
00040 // Application-defined message to notify app of filtergraph events
00041 #define WM_GRAPHNOTIFY  WM_APP+1
00042 
00043 //
00044 // Resource constants
00045 //
00046 #define IDI_VIDPREVIEW          100
00047 
00048 #define IDD_DIALOG1                     101
00049 #define IDC_LIST1                       1000
00050 #define IDC_STATIC                      -1
00051 

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