Definition at line 50 of file Camera.cc.
References fClient, fImg, fNumFrame, fTime, and PixClient::ProcessFrame().
Referenced by Thread().
52 gettimeofday(&
fTime, NULL);
55 for (
int y=0; y<576; y++)
56 for (
int x=0; x<768; x++)
58 const Int_t p = (x+y*768)*4;
59 fImg[x+y*768] = ((UInt_t)img[p+1]+(UInt_t)img[p+2]+(UInt_t)img[p+3])/3;
64 unsigned char *dest =
fImg;
65 for (
const unsigned char *ptr=img; ptr<img+768*576*4; ptr+=4)
66 *dest++ = (UShort_t(ptr[1])+UShort_t(ptr[2])+UShort_t(ptr[3]))/3;
unsigned char fImg[cols *rows]
virtual void ProcessFrame(const unsigned long n, byte *img, struct timeval *tm)