Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PVideoOutputDeviceRGB::SetFrameSize ( unsigned  width,
unsigned  height 
) [virtual]

Set the frame size to be used.

Note that devices may not be able to produce the requested size, and this function will fail. See SetFrameSizeConverter().

Default behaviour sets the frameWidth and frameHeight variables and returns TRUE.

Parameters:
width  New width of frame
height  New height of frame

Reimplemented from PVideoDevice.

Reimplemented in PVideoOutputDevice_Window.

Definition at line 1073 of file videoio.cxx.

References PVideoDevice::SetFrameSize().

Referenced by PVideoOutputDeviceRGB(), and PVideoOutputDevice_Window::SetFrameSize().

{
  PWaitAndSignal m(mutex);

  if (!PVideoOutputDevice::SetFrameSize(width, height))
    return FALSE;

  scanLineWidth = ((frameWidth*bytesPerPixel+3)/4)*4;
  return frameStore.SetSize(frameHeight*scanLineWidth);
}


Generated by  Doxygen 1.6.0   Back to index