FACT++  1.0
Bool_t MVideo::EnumerateControls ( UInt_t  id)
private

Definition at line 197 of file MVideo.cc.

References fControls, id, and Ioctl().

198 {
199  struct v4l2_queryctrl qctrl;
200  memset(&qctrl, 0, sizeof(qctrl));
201  qctrl.id = id;
202 
203  while (1)
204  {
205  if (Ioctl(VIDIOC_QUERYCTRL, &qctrl, true, true)==-1)
206  break;
207 
208  if (qctrl.maximum<=qctrl.minimum)
209  continue;
210 
211  fControls.Add(new MVideoCtrl(qctrl));
212 
213  qctrl.id++;
214  }
215 
216  return kTRUE;
217 }
int Ioctl(int req, void *opt, bool allowirq=true, bool force=false) const
Definition: MVideo.cc:108
char id[4]
Definition: FITS.h:71
TList fControls
Definition: MVideo.h:71

+ Here is the call graph for this function: