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

BOOL PVideoOutputDevice_Window::SetColourFormat ( const PString colourFormat ) [virtual]

Set the colour format to be used. Note that this function does not do any conversion. If it returns TRUE then the video device does the colour format in native mode.

To utilise an internal converter use the SetColourFormatConverter() function.

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

Reimplemented from PVideoOutputDeviceRGB.

Definition at line 1410 of file vfw.cxx.

References PVideoOutputDeviceRGB::SetColourFormat().

{
  PWaitAndSignal m(mutex);

  if (((colourFormat *= "BGR24") || (colourFormat *= "BGR32")) &&
                PVideoOutputDeviceRGB::SetColourFormat(colourFormat)) {
    m_bitmap.bmiHeader.biBitCount = (WORD)(bytesPerPixel*8);
    m_bitmap.bmiHeader.biSizeImage = frameStore.GetSize();
    return TRUE;
  }

  return FALSE;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index