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

BOOL PVideoInputDevice_VideoForWindows::VerifyHardwareFrameSize ( unsigned  width,
unsigned  height 
) [protected, virtual]

Check the hardware can do the asked for size.

Note that not all cameras can provide all frame sizes.

Definition at line 878 of file vfw.cxx.

Referenced by SetFrameSize().

{
  PCapStatus status(hCaptureWindow);

  if (!status.IsOK())
    return FALSE;

  if (width != status.uiImageWidth)
    return FALSE;

  if (0 > (int)height)
    height = (unsigned)-(int)height;

  if (0 > (int)status.uiImageHeight)
    status.uiImageHeight = (unsigned)-(int)status.uiImageHeight;

  return (height == status.uiImageHeight);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index