\section{CVFWCapture Class Reference}
\label{classCVFWCapture}\index{CVFWCapture@{CVFWCapture}}
{\tt \#include $<$VFWCapture.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf CVFWCapture} ()
\item 
virtual {\bf $\sim$CVFWCapture} ()
\item 
{\bf CVFWCapture} (const {\bf CVFWCapture} \&Copy\-From)
\item 
{\bf CVFWCapture} \& {\bf operator=} (const {\bf CVFWCapture} \&Copy\-From)
\item 
BOOL {\bf Initialize} (SHORT Driver\-Index=0)
\item 
VOID {\bf Destroy} ()
\item 
BOOL {\bf Set\-Driver} (SHORT Driver\-Index)
\item 
HWND {\bf Get\-Cap\-Window} ()
\item 
BOOL {\bf Capture\-DIB} (PBITMAPINFO $\ast$Bitmap, ULONG Bitmap\-Length, ULONG $\ast$Ret\-Bitmap\-Length)
\item 
BOOL {\bf Enable\-Preview\-Video} (HWND Parent, INT x, INT y, INT Preview\-Rate=30)
\item 
BOOL {\bf Enable\-Preview\-Video} (HWND Parent, INT x, INT y, INT Width, INT Height, INT Preview\-Rate=30)
\item 
BOOL {\bf Disable\-Preview\-Video} ()
\item 
BOOL {\bf Driver\-Get\-Caps} (CAPDRIVERCAPS $\ast$Caps)
\item 
VOID {\bf Cancel\-Capture} ()
\item 
BOOL {\bf Alloc\-DIBImage} (PBITMAPINFO $\ast$pp\-Image\-Data, ULONG $\ast$Allocated\-Size)
\item 
BITMAPINFOHEADER {\bf Get\-Bitmap\-Info\-Header} ()
\item 
VOID {\bf Get\-Previous\-Error} (INT $\ast$Error\-ID, char $\ast$Error\-String, BOOL Reset\-Error=FALSE)
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static ULONG {\bf Calc\-Bitmap\-Size} (const BITMAPINFOHEADER \&bmi\-Header)
\item 
static ULONG {\bf Calc\-Bitmap\-Info\-Size} (const BITMAPINFOHEADER \&bmi\-Header)
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
LRESULT CALLBACK {\bf Error\-Callback\-Proc} (HWND h\-Wnd, int n\-Err\-ID, LPSTR lp\-Error\-Text)
\item 
LRESULT CALLBACK {\bf Status\-Callback\-Proc} (HWND h\-Wnd, int n\-ID, LPCSTR lpsz)
\item 
LRESULT CALLBACK {\bf Frame\-Callback\-Proc} (HWND h\-Wnd, LPVIDEOHDR lp\-VHdr)
\end{CompactItemize}


\subsection{Detailed Description}




Definition at line 14 of file VFWCapture.h.

\subsection{Constructor \& Destructor Documentation}
\index{CVFWCapture@{CVFWCapture}!CVFWCapture@{CVFWCapture}}
\index{CVFWCapture@{CVFWCapture}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}CVFWCapture::CVFWCapture ()}\label{classCVFWCapture_47c750894f4ae6fc7fcf545e993d14b7}




Definition at line 41 of file VFWCapture.cpp.\index{CVFWCapture@{CVFWCapture}!~CVFWCapture@{$\sim$CVFWCapture}}
\index{~CVFWCapture@{$\sim$CVFWCapture}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}CVFWCapture::$\sim$CVFWCapture ()\hspace{0.3cm}{\tt  [virtual]}}\label{classCVFWCapture_58b0ace0b8b2c686926b7c440580c6a5}




Definition at line 53 of file VFWCapture.cpp.

References Destroy().\index{CVFWCapture@{CVFWCapture}!CVFWCapture@{CVFWCapture}}
\index{CVFWCapture@{CVFWCapture}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}CVFWCapture::CVFWCapture (const {\bf CVFWCapture} \& {\em Copy\-From})}\label{classCVFWCapture_8c4c11cd83bc528fb465e6836a49cbab}




Definition at line 143 of file VFWCapture.cpp.

\subsection{Member Function Documentation}
\index{CVFWCapture@{CVFWCapture}!AllocDIBImage@{AllocDIBImage}}
\index{AllocDIBImage@{AllocDIBImage}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}BOOL CVFWCapture::Alloc\-DIBImage (PBITMAPINFO $\ast$ {\em pp\-Image\-Data}, ULONG $\ast$ {\em Allocated\-Size})}\label{classCVFWCapture_66a789df20ab0e7ad942597effbaeac6}




Definition at line 491 of file VFWCapture.cpp.

References Calc\-Bitmap\-Info\-Size(), Calc\-Bitmap\-Size(), and Get\-Previous\-Error().

Referenced by Capture\-DIB().\index{CVFWCapture@{CVFWCapture}!CalcBitmapInfoSize@{CalcBitmapInfoSize}}
\index{CalcBitmapInfoSize@{CalcBitmapInfoSize}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ULONG CVFWCapture::Calc\-Bitmap\-Info\-Size (const BITMAPINFOHEADER \& {\em bmi\-Header})\hspace{0.3cm}{\tt  [static]}}\label{classCVFWCapture_e3ddcfe6b5d22b9f68484474eb6346c0}




Definition at line 576 of file VFWCapture.cpp.

Referenced by Alloc\-DIBImage(), and CVFWImage::Capture().\index{CVFWCapture@{CVFWCapture}!CalcBitmapSize@{CalcBitmapSize}}
\index{CalcBitmapSize@{CalcBitmapSize}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ULONG CVFWCapture::Calc\-Bitmap\-Size (const BITMAPINFOHEADER \& {\em bmi\-Header})\hspace{0.3cm}{\tt  [static]}}\label{classCVFWCapture_cb887009fa01d0dc8d3b090acc8b0150}




Definition at line 546 of file VFWCapture.cpp.

Referenced by Alloc\-DIBImage().\index{CVFWCapture@{CVFWCapture}!CancelCapture@{CancelCapture}}
\index{CancelCapture@{CancelCapture}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}VOID CVFWCapture::Cancel\-Capture ()}\label{classCVFWCapture_d212a60b70da8805e12d327bd1920d7b}




Definition at line 475 of file VFWCapture.cpp.\index{CVFWCapture@{CVFWCapture}!CaptureDIB@{CaptureDIB}}
\index{CaptureDIB@{CaptureDIB}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}BOOL CVFWCapture::Capture\-DIB (PBITMAPINFO $\ast$ {\em Bitmap}, ULONG {\em Bitmap\-Length}, ULONG $\ast$ {\em Ret\-Bitmap\-Length})}\label{classCVFWCapture_a06224e54eee6dc9243acf231640e7f7}




Definition at line 209 of file VFWCapture.cpp.

References Alloc\-DIBImage(), and Get\-Previous\-Error().

Referenced by CVFWImage::Capture().\index{CVFWCapture@{CVFWCapture}!Destroy@{Destroy}}
\index{Destroy@{Destroy}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}VOID CVFWCapture::Destroy ()}\label{classCVFWCapture_366d38de866936c272bc3e081ac1a913}




Definition at line 171 of file VFWCapture.cpp.

References Disable\-Preview\-Video(), and Get\-Previous\-Error().

Referenced by Initialize(), and $\sim$CVFWCapture().\index{CVFWCapture@{CVFWCapture}!DisablePreviewVideo@{DisablePreviewVideo}}
\index{DisablePreviewVideo@{DisablePreviewVideo}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}BOOL CVFWCapture::Disable\-Preview\-Video ()}\label{classCVFWCapture_83af9f372fc8d63d4bb6497346a3cf98}




Definition at line 438 of file VFWCapture.cpp.

References Get\-Previous\-Error().

Referenced by Destroy(), and Set\-Driver().\index{CVFWCapture@{CVFWCapture}!DriverGetCaps@{DriverGetCaps}}
\index{DriverGetCaps@{DriverGetCaps}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}BOOL CVFWCapture::Driver\-Get\-Caps (CAPDRIVERCAPS $\ast$ {\em Caps})}\label{classCVFWCapture_35fa93524b9b7f35d90b6654643ea923}




Definition at line 459 of file VFWCapture.cpp.

References Get\-Previous\-Error().\index{CVFWCapture@{CVFWCapture}!EnablePreviewVideo@{EnablePreviewVideo}}
\index{EnablePreviewVideo@{EnablePreviewVideo}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}BOOL CVFWCapture::Enable\-Preview\-Video (HWND {\em Parent}, INT {\em x}, INT {\em y}, INT {\em Width}, INT {\em Height}, INT {\em Preview\-Rate} = {\tt 30})}\label{classCVFWCapture_995bc3c9a4002e35a114cfe0e63ef0ac}




Definition at line 411 of file VFWCapture.cpp.

References Get\-Previous\-Error().\index{CVFWCapture@{CVFWCapture}!EnablePreviewVideo@{EnablePreviewVideo}}
\index{EnablePreviewVideo@{EnablePreviewVideo}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}BOOL CVFWCapture::Enable\-Preview\-Video (HWND {\em Parent}, INT {\em x}, INT {\em y}, INT {\em Preview\-Rate} = {\tt 30})}\label{classCVFWCapture_8642bc2319ff3eb05cddcaa36544691b}




Definition at line 389 of file VFWCapture.cpp.\index{CVFWCapture@{CVFWCapture}!GetBitmapInfoHeader@{GetBitmapInfoHeader}}
\index{GetBitmapInfoHeader@{GetBitmapInfoHeader}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}BITMAPINFOHEADER CVFWCapture::Get\-Bitmap\-Info\-Header ()}\label{classCVFWCapture_1707bd8ac2eefd442a70ae5af25740d5}




Definition at line 531 of file VFWCapture.cpp.\index{CVFWCapture@{CVFWCapture}!GetCapWindow@{GetCapWindow}}
\index{GetCapWindow@{GetCapWindow}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}HWND CVFWCapture::Get\-Cap\-Window ()}\label{classCVFWCapture_5bb64388678391c2b7b2f5ebf4b70fe3}




Definition at line 135 of file VFWCapture.cpp.\index{CVFWCapture@{CVFWCapture}!GetPreviousError@{GetPreviousError}}
\index{GetPreviousError@{GetPreviousError}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}VOID CVFWCapture::Get\-Previous\-Error (INT $\ast$ {\em Error\-ID}, char $\ast$ {\em Error\-String}, BOOL {\em Reset\-Error} = {\tt FALSE})}\label{classCVFWCapture_eb6d9c42497c774af8c33f3b2f0b4db9}




Referenced by Alloc\-DIBImage(), Capture\-DIB(), Destroy(), Disable\-Preview\-Video(), Driver\-Get\-Caps(), Enable\-Preview\-Video(), Initialize(), and Set\-Driver().\index{CVFWCapture@{CVFWCapture}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}BOOL CVFWCapture::Initialize (SHORT {\em Driver\-Index} = {\tt 0})}\label{classCVFWCapture_389f1d72a1318ea48e4a80b06b232476}




Definition at line 65 of file VFWCapture.cpp.

References Destroy(), Error\-Callback\-Proc, Frame\-Callback\-Proc, Get\-Previous\-Error(), MAX\_\-VFW\_\-DEVICES, Set\-Driver(), and Status\-Callback\-Proc.

Referenced by CVFWImage::Capture().\index{CVFWCapture@{CVFWCapture}!operator=@{operator=}}
\index{operator=@{operator=}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf CVFWCapture} \& CVFWCapture::operator= (const {\bf CVFWCapture} \& {\em Copy\-From})}\label{classCVFWCapture_12d5242932edc4e6f31cc6d2be04ee6c}




Definition at line 159 of file VFWCapture.cpp.\index{CVFWCapture@{CVFWCapture}!SetDriver@{SetDriver}}
\index{SetDriver@{SetDriver}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}BOOL CVFWCapture::Set\-Driver (SHORT {\em Driver\-Index})}\label{classCVFWCapture_5a94d71119600969cf3e84083a2d406c}




Definition at line 306 of file VFWCapture.cpp.

References Disable\-Preview\-Video(), and Get\-Previous\-Error().

Referenced by Initialize().

\subsection{Friends And Related Function Documentation}
\index{CVFWCapture@{CVFWCapture}!ErrorCallbackProc@{ErrorCallbackProc}}
\index{ErrorCallbackProc@{ErrorCallbackProc}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LRESULT CALLBACK Error\-Callback\-Proc (HWND {\em h\-Wnd}, int {\em n\-Err\-ID}, LPSTR {\em lp\-Error\-Text})\hspace{0.3cm}{\tt  [friend]}}\label{classCVFWCapture_12f6904d4d04345c969675cdcf13384b}




Definition at line 587 of file VFWCapture.cpp.

Referenced by Initialize().\index{CVFWCapture@{CVFWCapture}!FrameCallbackProc@{FrameCallbackProc}}
\index{FrameCallbackProc@{FrameCallbackProc}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LRESULT CALLBACK Frame\-Callback\-Proc (HWND {\em h\-Wnd}, LPVIDEOHDR {\em lp\-VHdr})\hspace{0.3cm}{\tt  [friend]}}\label{classCVFWCapture_64dc82814c3c69dd26528c8a8aaf246b}




Definition at line 619 of file VFWCapture.cpp.

Referenced by Initialize().\index{CVFWCapture@{CVFWCapture}!StatusCallbackProc@{StatusCallbackProc}}
\index{StatusCallbackProc@{StatusCallbackProc}!CVFWCapture@{CVFWCapture}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LRESULT CALLBACK Status\-Callback\-Proc (HWND {\em h\-Wnd}, int {\em n\-ID}, LPCSTR {\em lpsz})\hspace{0.3cm}{\tt  [friend]}}\label{classCVFWCapture_412a88be785d2975fced1c875d35028d}




Definition at line 601 of file VFWCapture.cpp.

Referenced by Initialize().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
{\bf VFWCapture.h}\item 
{\bf VFWCapture.cpp}\end{CompactItemize}
