avi_write.cpp File Reference

Go to the source code of this file.

Defines

#define _WIN32_DCOM

Functions

BOOL DoDialog (HINSTANCE hInstance, HWND hWnd)
void CentreDialogOnScreen (HWND)
HRESULT BuildFilterGraph (HINSTANCE hInstance, char *ffn)
HRESULT GetInterfaces (void)
void CloseInterfaces (void)
HRESULT SetupVideoWindow (void)
void ResizeVideoWindow (void)
HRESULT ChangePreviewState (int nShow)
void Msg (TCHAR *szFormat,...)
HRESULT HandleGraphEvent (void)
LRESULT CALLBACK WndMainProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
void CreateCompressionFilter (IMoniker *pMoniker, BOOL dvPal)
int AVIEntryPoint (HINSTANCE hInstance, long first_file, long last_file, char *avi_outname)

Variables

HWND ghApp = 0
DWORD g_dwGraphRegister = 0
int gFirstF
int gLastF
int gCurrentF
BOOL bCompressed = TRUE
IVideoWindow * g_pVW = NULL
IMediaControl * g_pMC = NULL
IMediaEventEx * g_pME = NULL
IGraphBuilder * g_pGraph = NULL
IBaseFilter * g_pMux = NULL
IBaseFilter * g_pVComp = NULL
ICaptureGraphBuilder2 * g_pCapture = NULL
PLAYSTATE g_psCurrent = Stopped


Define Documentation

#define _WIN32_DCOM

Definition at line 4 of file avi_write.cpp.


Function Documentation

BOOL DoDialog ( HINSTANCE  hInstance,
HWND  hWnd 
)

Definition at line 144 of file avi_dialogs.cpp.

References DlgProc(), and IDD_DIALOG1.

Referenced by AVIEntryPoint().

HRESULT BuildFilterGraph ( HINSTANCE  hInstance,
char *  ffn 
)

Definition at line 280 of file avi_write.cpp.

References bCompressed, g_pCapture, g_pGraph, g_pMC, g_pMux, g_psCurrent, g_pVComp, GetInterfaces(), L, Msg(), and Running.

Referenced by AVIEntryPoint().

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.

Referenced by BuildFilterGraph().

void CloseInterfaces ( void   ) 

Definition at line 57 of file avi_write.cpp.

References g_pCapture, g_pGraph, g_pMC, g_pME, g_pMux, g_psCurrent, g_pVComp, g_pVW, SAFE_RELEASE, Stopped, and WM_GRAPHNOTIFY.

Referenced by AVIEntryPoint(), and WndMainProc().

HRESULT SetupVideoWindow ( void   ) 

Definition at line 75 of file avi_write.cpp.

References g_pVW, ghApp, and ResizeVideoWindow().

void ResizeVideoWindow ( void   ) 

Definition at line 87 of file avi_write.cpp.

References g_pVW, and ghApp.

Referenced by SetupVideoWindow(), and WndMainProc().

HRESULT ChangePreviewState ( int  nShow  ) 

Definition at line 95 of file avi_write.cpp.

References g_pMC, g_psCurrent, Running, and Stopped.

Referenced by WndMainProc().

void Msg ( TCHAR *  szFormat,
  ... 
)

Definition at line 114 of file avi_write.cpp.

HRESULT HandleGraphEvent ( void   ) 

Definition at line 127 of file avi_write.cpp.

References g_pME, and ghApp.

Referenced by WndMainProc().

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

void CreateCompressionFilter ( IMoniker *  pMoniker,
BOOL  dvPal 
)

Definition at line 198 of file avi_write.cpp.

References FALSE, g_pVComp, and SAFE_RELEASE.

Referenced by OnSelectFilter().

int AVIEntryPoint ( HINSTANCE  hInstance,
long  first_file,
long  last_file,
char *  avi_outname 
)


Variable Documentation

HWND ghApp = 0

Definition at line 18 of file avi_write.cpp.

DWORD g_dwGraphRegister = 0

Definition at line 19 of file avi_write.cpp.

int gFirstF

Definition at line 21 of file avi_write.cpp.

Referenced by AVIEntryPoint(), and CPushPinBitmapSet::CPushPinBitmapSet().

int gLastF

Definition at line 22 of file avi_write.cpp.

Referenced by AVIEntryPoint(), and CPushPinBitmapSet::CPushPinBitmapSet().

int gCurrentF

Definition at line 23 of file avi_write.cpp.

Referenced by CPushPinBitmapSet::FillBuffer().

BOOL bCompressed = TRUE

Definition at line 25 of file avi_write.cpp.

Referenced by BuildFilterGraph().

IVideoWindow* g_pVW = NULL

Definition at line 29 of file avi_write.cpp.

IMediaControl* g_pMC = NULL

Definition at line 30 of file avi_write.cpp.

IMediaEventEx* g_pME = NULL

Definition at line 31 of file avi_write.cpp.

IGraphBuilder* g_pGraph = NULL

Definition at line 32 of file avi_write.cpp.

IBaseFilter* g_pMux = NULL

Definition at line 33 of file avi_write.cpp.

IBaseFilter* g_pVComp = NULL

Definition at line 34 of file avi_write.cpp.

Referenced by BuildFilterGraph(), CloseInterfaces(), and CreateCompressionFilter().

ICaptureGraphBuilder2* g_pCapture = NULL

Definition at line 35 of file avi_write.cpp.

Definition at line 36 of file avi_write.cpp.

Referenced by BuildFilterGraph(), ChangePreviewState(), and CloseInterfaces().


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