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

BOOL PVideoInputDevice_1394AVC::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:
height  New width of frame New height of frame

Reimplemented from PVideoDevice.

Definition at line 505 of file vidinput_avc.cxx.

References PVideoDevice::CalculateFrameBytes().

Referenced by SetFrameSizeConverter().

{
  // FIXME: shouldn't it return FALSE when asked an unsupported frame size? 
  frameWidth = width;
  frameHeight = height;
  colourFormat = "RGB24";
  nativeVerticalFlip = true;
  frameBytes = PVideoDevice::CalculateFrameBytes(frameWidth,
  frameHeight, colourFormat);
  
  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index