avi_mapDecode.cpp File Reference

Go to the source code of this file.

Defines

#define _WIN32_DCOM
#define SAFE_RELEASE(x)   { if (x) x->Release(); x = NULL; }
#define JIF(x)
#define DEFAULT_VIDEO_WIDTH   320
#define DEFAULT_VIDEO_HEIGHT   240
#define APPLICATIONNAME   TEXT("AVI GET FRAME \0")
#define CLASSNAME   TEXT("OFX:AVI_READER\0")
#define WM_GRAPHNOTIFY   WM_APP+1
#define BFT_BITMAP   0x4d42

Functions

struct __declspec (uuid("{1125E600-3F8F-4856-9491-34B1443B0E60}")) CLSID_TransSmpte
HRESULT GetInterfaces (void)
HRESULT CaptureVideo ()
HRESULT SetupVideoWindow (void)
HRESULT HandleGraphEvent (void)
void Msg (TCHAR *szFormat,...)
void CloseInterfaces (void)
void ResizeVideoWindow (void)
LRESULT CALLBACK WndMainProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
int AviDecoderEntry (HINSTANCE hInstance, char *movie_name, long frame)
void WriteBitmap (long nx, long ny, unsigned char *S, long f)

Variables

char bmproot [255] = "c:\\rsfz"
HWND ghApp = 0
BOOL bDir = TRUE
long framecount = 0
BOOL b32 = FALSE
char MediaFile [255]
IVideoWindow * g_pVW = NULL
IMediaControl * g_pMC = NULL
IMediaEventEx * g_pME = NULL
IMediaFilter * g_pMF = NULL
IGraphBuilder * g_pGraph = NULL
ICaptureGraphBuilder2 * g_pCapture = NULL
IBaseFilter * g_pMux = NULL
IBaseFilter * g_pTee = NULL
IBaseFilter * pSmpte = NULL


Define Documentation

#define _WIN32_DCOM

Definition at line 11 of file avi_mapDecode.cpp.

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

Definition at line 49 of file avi_mapDecode.cpp.

Referenced by CloseInterfaces(), and CreateCompressionFilter().

#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 51 of file avi_mapDecode.cpp.

#define DEFAULT_VIDEO_WIDTH   320

Definition at line 54 of file avi_mapDecode.cpp.

Referenced by AVIEntryPoint().

#define DEFAULT_VIDEO_HEIGHT   240

Definition at line 55 of file avi_mapDecode.cpp.

Referenced by AVIEntryPoint().

#define APPLICATIONNAME   TEXT("AVI GET FRAME \0")

Definition at line 57 of file avi_mapDecode.cpp.

Referenced by AVIEntryPoint().

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

Definition at line 58 of file avi_mapDecode.cpp.

Referenced by AVIEntryPoint().

#define WM_GRAPHNOTIFY   WM_APP+1

Definition at line 61 of file avi_mapDecode.cpp.

Referenced by CloseInterfaces(), GetInterfaces(), and WndMainProc().

#define BFT_BITMAP   0x4d42

Definition at line 411 of file avi_mapDecode.cpp.

Referenced by _PutExternalImage().


Function Documentation

struct __declspec ( uuid("{1125E600-3F8F-4856-9491-34B1443B0E60}")   )  [read]

HRESULT GetInterfaces ( void   ) 

Definition at line 168 of file avi_mapDecode.cpp.

Referenced by BuildFilterGraph().

HRESULT CaptureVideo (  ) 

Definition at line 80 of file avi_mapDecode.cpp.

HRESULT SetupVideoWindow ( void   ) 

Definition at line 211 of file avi_mapDecode.cpp.

HRESULT HandleGraphEvent ( void   ) 

Definition at line 243 of file avi_mapDecode.cpp.

Referenced by WndMainProc().

void Msg ( TCHAR *  szFormat,
  ... 
)

Definition at line 231 of file avi_mapDecode.cpp.

void CloseInterfaces ( void   ) 

Definition at line 192 of file avi_mapDecode.cpp.

Referenced by AVIEntryPoint(), and WndMainProc().

void ResizeVideoWindow ( void   ) 

Definition at line 223 of file avi_mapDecode.cpp.

Referenced by SetupVideoWindow(), and WndMainProc().

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

Definition at line 261 of file avi_mapDecode.cpp.

Referenced by AVIEntryPoint().

int AviDecoderEntry ( HINSTANCE  hInstance,
char *  movie_name,
long  frame 
)

Definition at line 282 of file avi_mapDecode.cpp.

void WriteBitmap ( long  nx,
long  ny,
unsigned char *  S,
long  f 
)

Definition at line 413 of file avi_mapDecode.cpp.


Variable Documentation

char bmproot[255] = "c:\\rsfz"

Definition at line 63 of file avi_mapDecode.cpp.

HWND ghApp = 0

BOOL bDir = TRUE

Definition at line 65 of file avi_mapDecode.cpp.

long framecount = 0

Definition at line 66 of file avi_mapDecode.cpp.

BOOL b32 = FALSE

Definition at line 67 of file avi_mapDecode.cpp.

char MediaFile[255]

Definition at line 68 of file avi_mapDecode.cpp.

IVideoWindow* g_pVW = NULL

IMediaControl* g_pMC = NULL

IMediaEventEx* g_pME = NULL

Definition at line 72 of file avi_mapDecode.cpp.

Referenced by CloseInterfaces(), GetInterfaces(), and HandleGraphEvent().

IMediaFilter* g_pMF = NULL

Definition at line 73 of file avi_mapDecode.cpp.

IGraphBuilder* g_pGraph = NULL

Definition at line 74 of file avi_mapDecode.cpp.

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

ICaptureGraphBuilder2* g_pCapture = NULL

Definition at line 75 of file avi_mapDecode.cpp.

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

IBaseFilter* g_pMux = NULL

Definition at line 76 of file avi_mapDecode.cpp.

Referenced by BuildFilterGraph(), and CloseInterfaces().

IBaseFilter* g_pTee = NULL

Definition at line 77 of file avi_mapDecode.cpp.

IBaseFilter* pSmpte = NULL

Definition at line 78 of file avi_mapDecode.cpp.


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