Lines Matching full:devicehandle
312 int deviceHandle;
394 int deviceHandle;
403 deviceHandle = open(deviceName, O_RDONLY);
404 if (deviceHandle != -1) {
410 if (deviceHandle != -1)
411 close(deviceHandle);
433 capture->deviceHandle = v4l1_open(deviceName, O_RDWR);
436 if (capture->deviceHandle == 0)
446 if (v4l1_ioctl(capture->deviceHandle, VIDIOCGCAP, &capture->capability) < 0)
475 capture->deviceHandle = v4l2_open (deviceName, O_RDWR /* required */ | O_NONBLOCK, 0);
479 if (capture->deviceHandle == 0)
489 if (-1 == xioctl (capture->deviceHandle, VIDIOC_QUERYCAP, &capture->cap))
501 if (-1 != xioctl (capture->deviceHandle, VIDIOC_G_INPUT, &capture->capability.channels))
586 if(0 == v4l2_ioctl (capture->deviceHandle, VIDIOC_QUERYCTRL, &capture->queryctrl)) {
598 if(v4l2_ioctl(capture->deviceHandle, VIDIOC_G_CTRL, &c) == 0) {
602 } while(0 == v4l2_ioctl (capture->deviceHandle, VIDIOC_QUERYCTRL, &capture->queryctrl));
609 if(v4l2_ioctl(capture->deviceHandle, VIDIOC_QUERYCTRL, &capture->queryctrl) == 0) {
620 if(v4l2_ioctl(capture->deviceHandle, VIDIOC_G_CTRL, &c) == 0) {
629 if(v4l2_ioctl(capture->deviceHandle, VIDIOC_QUERYCTRL, &capture->queryctrl) == 0) {
643 if(v4l2_ioctl(capture->deviceHandle, VIDIOC_G_CTRL, &c) == 0) {
706 if (-1 == xioctl (capture->deviceHandle, VIDIOC_ENUMINPUT, &capture->inp))
718 if (-1 == xioctl (capture->deviceHandle, VIDIOC_G_FMT, &capture->form)) {
748 if (-1 == xioctl (capture->deviceHandle, VIDIOC_S_FMT, &capture->form)) {
783 if (-1 == xioctl (capture->deviceHandle, VIDIOC_REQBUFS, &capture->req))
823 if (-1 == xioctl (capture->deviceHandle, VIDIOC_QUERYBUF, &buf)) {
837 capture->deviceHandle, buf.m.offset);
921 if (v4l1_ioctl(capture->deviceHandle, VIDIOCGCHAN , &selectedChannel) != -1) {
924 if (v4l1_ioctl(capture->deviceHandle, VIDIOCSCHAN , &selectedChannel) == -1) {
935 if(v4l1_ioctl(capture->deviceHandle, VIDIOCGWIN, &capture->captureWindow) == -1) {
945 deviceHandle, VIDIOCGPICT, &capture->imageProperties) < 0) {
969 if (v4l1_ioctl(capture->deviceHandle, VIDIOCSPICT, &capture->imageProperties) < 0) {
974 if (v4l1_ioctl(capture->deviceHandle, VIDIOCGPICT, &capture->imageProperties) < 0) {
989 v4l1_ioctl(capture->deviceHandle, VIDIOCGMBUF, &capture->memoryBuffer);
994 capture->deviceHandle,
1103 if (-1 == xioctl (capture->deviceHandle, VIDIOC_DQBUF, &buf)) {
1133 if (-1 == xioctl (capture->deviceHandle, VIDIOC_QBUF, &buf))
1156 FD_SET (capture->deviceHandle, &fds);
1162 r = select (capture->deviceHandle+1, &fds, NULL, NULL, &tv);
1208 if (-1 == xioctl (capture->deviceHandle, VIDIOC_QBUF, &buf)) {
1216 if (-1 == xioctl (capture->deviceHandle, VIDIOC_STREAMON,
1234 if (v4l1_ioctl(capture->deviceHandle, VIDIOCMCAPTURE, &capture->mmaps[capture->bufferIndex]) == -1) {
1259 if (v4l1_ioctl (capture->deviceHandle, VIDIOCMCAPTURE,
1281 if (v4l1_ioctl(capture->deviceHandle, VIDIOCSYNC, &capture->mmaps[capture->bufferIndex].frame) == -1) {
1366 if (-1 == xioctl (capture->deviceHandle, VIDIOC_G_FMT, &capture->form)) {
1369 if (v4l1_ioctl (capture->deviceHandle, VIDIOCGWIN, &capture->captureWindow) < 0) {
1397 if (xioctl (capture->deviceHandle, VIDIOC_G_PARM, &sp) < 0){
1441 if(v4l2_ioctl(capture->deviceHandle, VIDIOC_G_CTRL, &capture->control) == 0) {
1530 xioctl (capture->deviceHandle, VIDIOC_S_CROP, &capture->crop);
1536 xioctl (capture->deviceHandle, VIDIOC_G_FMT, &capture->form);
1551 xioctl (capture->deviceHandle, VIDIOC_S_FMT, &capture->form);
1562 xioctl (capture->deviceHandle, VIDIOC_S_PARM, &setfps);
1570 if (-1 == xioctl (capture->deviceHandle, VIDIOC_G_FMT, &capture->form))
1595 if (ioctl(capture->deviceHandle, VIDIOCSWIN, &capture->captureWindow) < 0) {
1600 if (ioctl(capture->deviceHandle, VIDIOCGWIN, &capture->captureWindow) < 0) {
1666 if(v4l2_ioctl(capture->deviceHandle, VIDIOC_G_CTRL, &capture->control) == 0) {
1687 if (v4l2_ioctl(capture->deviceHandle, VIDIOC_S_CTRL, &c) != 0) {
1729 if (v4l1_ioctl(capture->deviceHandle, VIDIOCSPICT, &capture->imageProperties) < 0){
1795 if (xioctl (capture->deviceHandle, VIDIOC_S_PARM, &setfps) < 0){
1819 if (capture->deviceHandle != -1) {
1820 v4l1_close(capture->deviceHandle);
1824 if (xioctl(capture->deviceHandle, VIDIOC_STREAMOFF, &capture->type) < 0) {
1833 if (capture->deviceHandle != -1) {
1834 v4l2_close(capture->deviceHandle);