236
246
if (-1 == xioctl(h->fd, VIDIOC_ENUMINPUT, &h->inp[h->ninputs], EINVAL))
239
251
for (h->nstds = 0; h->nstds < MAX_NORM; h->nstds++) {
240
252
h->std[h->nstds].index = h->nstds;
241
253
if (-1 == xioctl(h->fd, VIDIOC_ENUMSTD, &h->std[h->nstds], EINVAL))
244
257
for (h->nfmts = 0; h->nfmts < MAX_FORMAT; h->nfmts++) {
245
258
h->fmt[h->nfmts].index = h->nfmts;
246
259
h->fmt[h->nfmts].type = V4L2_BUF_TYPE_VIDEO_CAPTURE;