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

void CVideoDevice::EnableYUV ( bool  isOn  ) 

Enable/disable retrieval of YUV image(s).

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

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

Definition at line 687 of file VideoDevice.cc.

Referenced by CDeltaPanel::CDeltaPanel(), and CImagePanelYUV::hideEvent().

{
qDebug("EnableYUV: %c", isOn ? '+' : '-');
   if (isOn)
     PalYUV++;
   else
     PalYUV--;
     
   if (PalYUV < 0)
     printf("Warning: VideoDevice PalYUV is negative?\n");
   if (PalYUV == 0)
     ResetImagesYUV();
   SetPalette();
   if (isOn && PalYUV == 1)
     CreateImagesYUV();
   if (isOn)
     StartCapture();
   else
     StopCapture();
}


Generated by  Doxygen 1.6.0   Back to index