CVFWCapture Class Reference

#include <VFWCapture.h>

List of all members.

Public Member Functions

 CVFWCapture ()
virtual ~CVFWCapture ()
 CVFWCapture (const CVFWCapture &CopyFrom)
CVFWCaptureoperator= (const CVFWCapture &CopyFrom)
BOOL Initialize (SHORT DriverIndex=0)
VOID Destroy ()
BOOL SetDriver (SHORT DriverIndex)
HWND GetCapWindow ()
BOOL CaptureDIB (PBITMAPINFO *Bitmap, ULONG BitmapLength, ULONG *RetBitmapLength)
BOOL EnablePreviewVideo (HWND Parent, INT x, INT y, INT PreviewRate=30)
BOOL EnablePreviewVideo (HWND Parent, INT x, INT y, INT Width, INT Height, INT PreviewRate=30)
BOOL DisablePreviewVideo ()
BOOL DriverGetCaps (CAPDRIVERCAPS *Caps)
VOID CancelCapture ()
BOOL AllocDIBImage (PBITMAPINFO *ppImageData, ULONG *AllocatedSize)
BITMAPINFOHEADER GetBitmapInfoHeader ()
VOID GetPreviousError (INT *ErrorID, char *ErrorString, BOOL ResetError=FALSE)

Static Public Member Functions

static ULONG CalcBitmapSize (const BITMAPINFOHEADER &bmiHeader)
static ULONG CalcBitmapInfoSize (const BITMAPINFOHEADER &bmiHeader)

Friends

LRESULT CALLBACK ErrorCallbackProc (HWND hWnd, int nErrID, LPSTR lpErrorText)
LRESULT CALLBACK StatusCallbackProc (HWND hWnd, int nID, LPCSTR lpsz)
LRESULT CALLBACK FrameCallbackProc (HWND hWnd, LPVIDEOHDR lpVHdr)


Detailed Description

Definition at line 14 of file VFWCapture.h.


Constructor & Destructor Documentation

CVFWCapture::CVFWCapture  ) 
 

Definition at line 41 of file VFWCapture.cpp.

CVFWCapture::~CVFWCapture  )  [virtual]
 

Definition at line 53 of file VFWCapture.cpp.

References Destroy().

CVFWCapture::CVFWCapture const CVFWCapture CopyFrom  ) 
 

Definition at line 143 of file VFWCapture.cpp.


Member Function Documentation

BOOL CVFWCapture::AllocDIBImage PBITMAPINFO *  ppImageData,
ULONG *  AllocatedSize
 

Definition at line 491 of file VFWCapture.cpp.

References CalcBitmapInfoSize(), CalcBitmapSize(), and GetPreviousError().

Referenced by CaptureDIB().

ULONG CVFWCapture::CalcBitmapInfoSize const BITMAPINFOHEADER &  bmiHeader  )  [static]
 

Definition at line 576 of file VFWCapture.cpp.

Referenced by AllocDIBImage(), and CVFWImage::Capture().

ULONG CVFWCapture::CalcBitmapSize const BITMAPINFOHEADER &  bmiHeader  )  [static]
 

Definition at line 546 of file VFWCapture.cpp.

Referenced by AllocDIBImage().

VOID CVFWCapture::CancelCapture  ) 
 

Definition at line 475 of file VFWCapture.cpp.

BOOL CVFWCapture::CaptureDIB PBITMAPINFO *  Bitmap,
ULONG  BitmapLength,
ULONG *  RetBitmapLength
 

Definition at line 209 of file VFWCapture.cpp.

References AllocDIBImage(), and GetPreviousError().

Referenced by CVFWImage::Capture().

VOID CVFWCapture::Destroy  ) 
 

Definition at line 171 of file VFWCapture.cpp.

References DisablePreviewVideo(), and GetPreviousError().

Referenced by Initialize(), and ~CVFWCapture().

BOOL CVFWCapture::DisablePreviewVideo  ) 
 

Definition at line 438 of file VFWCapture.cpp.

References GetPreviousError().

Referenced by Destroy(), and SetDriver().

BOOL CVFWCapture::DriverGetCaps CAPDRIVERCAPS *  Caps  ) 
 

Definition at line 459 of file VFWCapture.cpp.

References GetPreviousError().

BOOL CVFWCapture::EnablePreviewVideo HWND  Parent,
INT  x,
INT  y,
INT  Width,
INT  Height,
INT  PreviewRate = 30
 

Definition at line 411 of file VFWCapture.cpp.

References GetPreviousError().

BOOL CVFWCapture::EnablePreviewVideo HWND  Parent,
INT  x,
INT  y,
INT  PreviewRate = 30
 

Definition at line 389 of file VFWCapture.cpp.

BITMAPINFOHEADER CVFWCapture::GetBitmapInfoHeader  ) 
 

Definition at line 531 of file VFWCapture.cpp.

HWND CVFWCapture::GetCapWindow  ) 
 

Definition at line 135 of file VFWCapture.cpp.

VOID CVFWCapture::GetPreviousError INT *  ErrorID,
char *  ErrorString,
BOOL  ResetError = FALSE
 

Referenced by AllocDIBImage(), CaptureDIB(), Destroy(), DisablePreviewVideo(), DriverGetCaps(), EnablePreviewVideo(), Initialize(), and SetDriver().

BOOL CVFWCapture::Initialize SHORT  DriverIndex = 0  ) 
 

Definition at line 65 of file VFWCapture.cpp.

References Destroy(), ErrorCallbackProc, FrameCallbackProc, GetPreviousError(), MAX_VFW_DEVICES, SetDriver(), and StatusCallbackProc.

Referenced by CVFWImage::Capture().

CVFWCapture & CVFWCapture::operator= const CVFWCapture CopyFrom  ) 
 

Definition at line 159 of file VFWCapture.cpp.

BOOL CVFWCapture::SetDriver SHORT  DriverIndex  ) 
 

Definition at line 306 of file VFWCapture.cpp.

References DisablePreviewVideo(), and GetPreviousError().

Referenced by Initialize().


Friends And Related Function Documentation

LRESULT CALLBACK ErrorCallbackProc HWND  hWnd,
int  nErrID,
LPSTR  lpErrorText
[friend]
 

Definition at line 587 of file VFWCapture.cpp.

Referenced by Initialize().

LRESULT CALLBACK FrameCallbackProc HWND  hWnd,
LPVIDEOHDR  lpVHdr
[friend]
 

Definition at line 619 of file VFWCapture.cpp.

Referenced by Initialize().

LRESULT CALLBACK StatusCallbackProc HWND  hWnd,
int  nID,
LPCSTR  lpsz
[friend]
 

Definition at line 601 of file VFWCapture.cpp.

Referenced by Initialize().


The documentation for this class was generated from the following files:
Generated on Wed Nov 29 01:27:44 2006 by  doxygen 1.4.6