FACT++  1.0
void Camera::ProcessFrame ( unsigned char *  img)
private

Definition at line 50 of file Camera.cc.

References fClient, fImg, fNumFrame, fTime, and PixClient::ProcessFrame().

Referenced by Thread().

51 {
52  gettimeofday(&fTime, NULL);
53 
54 #if 1
55  for (int y=0; y<576; y++)
56  for (int x=0; x<768; x++)
57  {
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;
60  }
61 #endif
62 
63 #if 0
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;
67 #endif
68 
70 }
struct timeval fTime
Definition: Camera.h:26
UInt_t fNumFrame
Definition: Camera.h:32
PixClient & fClient
Definition: Camera.h:28
unsigned char byte
Definition: MGImage.h:17
unsigned char fImg[cols *rows]
Definition: Camera.h:25
virtual void ProcessFrame(const unsigned long n, byte *img, struct timeval *tm)
Definition: PixClient.cc:7

+ Here is the call graph for this function:

+ Here is the caller graph for this function: