Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PVideoDevice::SetFrameRate ( unsigned  rate  )  [virtual, inherited]

Set the video frame rate to be used on the device.

Default behaviour sets the value of the frameRate variable and then returns TRUE.

rate  Frames per second

Reimplemented in PVideoInputDevice_BeOSVideo, PVideoInput1394DcDevice, PVideoInputDevice_1394AVC, PVideoInputDevice_1394DC, PVideoInputDevice_FakeVideo, and PVideoInputDevice_VideoForWindows.

Definition at line 628 of file videoio.cxx.

Referenced by PVideoDevice::OpenFull(), PVideoDevice::PVideoDevice(), PVideoInputDevice_BeOSVideo::SetFrameRate(), PVideoInputDevice_VideoForWindows::SetFrameRate(), PVideoInputDevice_FakeVideo::SetFrameRate(), PVideoInputDevice_1394DC::SetFrameRate(), and PVideoInputDevice_1394AVC::SetFrameRate().


  if (rate < 1) {
    frameRate = 0;
    return TRUE;

  frameRate = rate;
  previousFrameTime = PTime();
  msBetweenFrames = 1000/rate;
  frameTimeError  = 0;

  return TRUE;

Generated by  Doxygen 1.6.0   Back to index