text: #include <Capture.h>
  #include <Capture.h>
  Collaboration diagram for CCapture:
  This class manages a single VFW capture device.
  Adds information chunk to AVI file at current position.
  [inline]
  Aborts the current capture.
  Starts streaming video capture to a file.
  Starts streaming video capture without writing to file.
  Appends a single frame of video to the capture file.
  Closes the capture file for single frame capture.
  Opens the capture file for single frame capture.
  Stops current video capture.
  Starts capture of data to file.
  Connects to the specified device driver.
  Copies the current video frame and palette to the clipboard.
  NULL
  WS_VISIBLE|WS_OVERLAPPEDWINDOW
  10
  320
  240
  0
  Creates a capture window.
  Enables frame callbacks.
  Enables / disables video overlay mode.
  Pre allocates disk space for video capture.
  Gets the audio format information.
  Copies the currently set capture filename to the specified buffer.
  Retrieves capture setup data to m_cp.
  Retrieves information about the current capture device.
  Retrieves information about the specified capture device.
  Returns the name of the current MCI device being used for capture.
  Loads a color palette from the clipboard.
  Returns the associated four byte value with the current capture window.
  Returns information about the current video format.
  Grabs a single frame of video from the current video device.
  Grabs a single frame of video from the current video device without stopping the capture.
  Converts the current frame to HBITMAP.
  Loads information about drivers into m_cdi.
  Loads a color palette from a file.
  Locks the DC.
  Use this function to coordinate multi thread access to video frames. If this function returns zero, do not attempt to access the video buffers.
  [protected, virtual]
  Resolved video frame callback.
  typedef struct
  {
  LPSTR lpData; // address of video buffer
  DWORD dwBufferLength; // size, in bytes, of the
  // data buffer
  DWORD dwBytesUsed; // see below
  DWORD dwTimeCaptured; // see below
  DWORD dwUser; // user-specific data
  DWORD dwFlags; // see below
  DWORD dwReserved[4]; // reserved; do not use
  } VIDEOHDR;
  dwBytesUsed: Number of bytes used in the data buffer.
  dwTimeCaptured: Time, in milliseconds, when the frame was captured relative to the first frame in the stream. Synchronization of audio and video in the resulting AVI file depends solely on this parameter, which should be derived directly from a counter (VSYNC_Count) incremented by a vertical sync interrupt. When using NTSC frame rates and frame-based interrupts, the returned value would be:
  dwTimeCaptured = VSYNC_Count * 1/29.97.
  The capture driver must maintain VSYNC_Count accurately by allowing recursive entry into the interrupt service routine (if only for the purpose of incrementing VSYNC_Count) and by not disabling interrupts for long periods of time.
  dwFlags: Flags giving information about the data buffer. The following flags are defined for this field: VHDR_DONE Set by the device driver to indicate it is finished with the data buffer and it is returning the buffer to the application.
  VHDR_PREPARED Set by the system to indicate the data buffer has been prepared with videoStreamPrepareHeader. VHDR_INQUEUE Set by the system to indicate the data buffer is queued for playback. VHDR_KEYFRAME Set by the device driver to indicate a key frame.
  Requests the capture driver automatically create new palettes for video frames.
  Requests the capture driver manually sample video frames.
  Enables / disables preview mode.
  Enables / disables stretching of the preview video.
  Attempts reconnect of current capture device.
  Copies the contents of the capture file to another.
  Saves the current frame of video as a DIB file.
  Saves the color palette to a file.
  Sets the audio format of the capture device.
  Sets the capture filename.
  Sets capture setup data in m_cp to the device.
  Sets the Z-Order, position and size of the capture window.
  Sets the window handle and message id for video event callbacks.
  Specifies the name of the MCI video device to use for capture.
  Sets the offset of the capture window with respect to it's parent window.
  30
  Sets the frame rate for preview mode.
  Sets the offset of the upper left corner of the video capture window.
  Sets the size of the capture window.
  Associates a four byte value with the current capture window.
  Sets the current video format.
  Displays the specified dialog box.
  Displays the video compression dialog box.
  Displays the video display dialog box.
  Displays the video format dialog box.
  Displays the video source dialog box.
  SW_SHOWNORMAL
  Sets the capture windows show state.
  Unlocks the DC.
  Use this function to coordinate multi thread access to video frames
  3000
  Waits for a grab operation to complete.