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

void CVideoDevice::EnableRGB ( bool  isOn  ) 

Enable/disable retrieval of RGB image(s).

This tells the object if RGB images are desired. This will help in selecting the proper PALETTE for the device. Both RGB and YUV images may be enabled. See also EnableYUV.

Multiple calls to EnableRGB(TRUE) will require the same amount of calls to EnableRGB(FALSE) to turn RGB retrieval completely off.

Definition at line 656 of file VideoDevice.cc.

Referenced by CImagePanelRGB::hideEvent().

{
qDebug("EnableRGB: %c", isOn ? '+' : '-');
   if (isOn) 
     PalRGB++;
   else
     PalRGB--;
   if (PalRGB < 0)
     qWarning("Warning: VideoDevice PalRGB is negative?\n");
   if (PalRGB == 0)
     ResetImagesRGB();
   SetPalette();
   if (isOn && PalRGB == 1)
     CreateImagesRGB();
   if (isOn)
     StartCapture();
   else
     StopCapture();
}


Generated by  Doxygen 1.6.0   Back to index