Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PVideoInputDevice_VideoForWindows::Stop (  ) [virtual]

Stop the video device I/O capture.

Implements PVideoDevice.

Definition at line 700 of file vfw.cxx.

References PVideoDevice::GetLastError(), IsCapturing(), IsOpen(), and PSemaphore::Wait().

Referenced by Close(), SetColourFormat(), SetFrameRate(), SetFrameSize(), and TestAllFormats().

  if (!IsCapturing())
    return FALSE;
  isCapturingNow = FALSE;
  return IsOpen() && frameAvailable.Wait(1000);
  if (capCaptureStop(hCaptureWindow))
    return TRUE;

  lastError = ::GetLastError();
  PTRACE(1, "PVidInp\tcapCaptureStop: failed - " << lastError);
  return FALSE;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index