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

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.

rateFrames per second

Reimplemented in PVideoInputDevice_BeOSVideo, PVideoInput1394DcDevice, PVideoInputDevice_1394AVC, PVideoInputDevice_BSDCAPTURE, PVideoInputDevice_1394DC, PVideoInputDevice_V4L, PVideoInputDevice_V4L2, PVideoInputDevice_FakeVideo, and PVideoInputDevice_VideoForWindows.

Definition at line 625 of file videoio.cxx.

Referenced by VidTest::Main(), PVideoInputDevice_BeOSVideo::SetFrameRate(), PVideoInputDevice_VideoForWindows::SetFrameRate(), PVideoInputDevice_V4L2::SetFrameRate(), PVideoInputDevice_V4L::SetFrameRate(), and PVideoInputDevice_BSDCAPTURE::SetFrameRate().


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

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

  return TRUE;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index