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

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.

widthNew width of frame
heightNew height of frame

Reimplemented from PVideoDevice.

Reimplemented in PVideoOutputDevice_Window.

Definition at line 1073 of file videoio.cxx.

References PVideoDevice::SetFrameSize().

Referenced by PVideoOutputDevice_Window::SetFrameSize().

  PWaitAndSignal m(mutex);

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

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

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