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

QImage * CVideoDevice::GetY ( int  offset = 0  )  const

Get Y (luminance) component of image.

offset Offset in circular buffer. Retrieve pointer to a Y image; note that this is a pointer, not a (shallow) copy. The QImage is an 8 bit deep image with grayscale palette.
See GetRGB about double buffering.

Definition at line 1441 of file VideoDevice.cc.

Referenced by CDeltaPanel::UpdatePanel().

   if (offset < 0 || offset >= Buffers)
     return NULL;
   if (!PalYUV)
     return pNullImage;
   return Y.at((Buffers + CurBuffer - offset) % Buffers);

Generated by  Doxygen 1.6.0   Back to index