Macros | |
| #define | _WIN32_WINNT 0x0501 |
Functions | |
| HRESULT | CaptureVideo () |
| HRESULT | FindCaptureDevice (IBaseFilter **ppSrcFilter) |
| HRESULT | GetInterfaces (void) |
| void | CloseInterfaces (void) |
| HRESULT | SetupCamera (IBaseFilter *pSrcFilter) |
| HRESULT | SetupVideoWindow (void) |
| void | ResizeVideoWindow (void) |
| HRESULT | ChangePreviewState (int nShow) |
| void | MsgError (TCHAR *szFormat,...) |
| void | MsgInfo (TCHAR *szFormat,...) |
| HRESULT | HandleGraphEvent (void) |
| LRESULT CALLBACK | WndMainProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
| int PASCAL | WinMain (HINSTANCE hInstance, HINSTANCE hInstP, LPSTR lpCmdLine, int nCmdShow) |
Variables | |
| HWND | ghApp = 0 |
| DWORD | g_dwGraphRegister = 0 |
| IVideoWindow * | g_pVW = nullptr |
| IMediaControl * | g_pMC = nullptr |
| IMediaEventEx * | g_pME = nullptr |
| IGraphBuilder * | g_pGraph = nullptr |
| ICaptureGraphBuilder2 * | g_pCapture = nullptr |
| PLAYSTATE | g_psCurrent = Stopped |
| #define _WIN32_WINNT 0x0501 |
| HRESULT CaptureVideo | ( | ) |
| HRESULT ChangePreviewState | ( | int | nShow | ) |
| void CloseInterfaces | ( | void | ) |
| HRESULT FindCaptureDevice | ( | IBaseFilter ** | ppSrcFilter | ) |
| HRESULT GetInterfaces | ( | void | ) |
| HRESULT HandleGraphEvent | ( | void | ) |
| void MsgError | ( | TCHAR * | szFormat, |
| ... | |||
| ) |
| void MsgInfo | ( | TCHAR * | szFormat, |
| ... | |||
| ) |
| void ResizeVideoWindow | ( | void | ) |
| HRESULT SetupCamera | ( | IBaseFilter * | pSrcFilter | ) |
| HRESULT SetupVideoWindow | ( | void | ) |
| int PASCAL WinMain | ( | HINSTANCE | hInstance, |
| HINSTANCE | hInstP, | ||
| LPSTR | lpCmdLine, | ||
| int | nCmdShow | ||
| ) |
| LRESULT CALLBACK WndMainProc | ( | HWND | hwnd, |
| UINT | message, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam | ||
| ) |
| DWORD g_dwGraphRegister = 0 |
| ICaptureGraphBuilder2* g_pCapture = nullptr |
| IGraphBuilder* g_pGraph = nullptr |
| IMediaControl* g_pMC = nullptr |
| IMediaEventEx* g_pME = nullptr |
| IVideoWindow* g_pVW = nullptr |
| HWND ghApp = 0 |