Home | History | Annotate | Download | only in src

Lines Matching full:devicehandle

303     int deviceHandle;
372 int deviceHandle;
381 deviceHandle = open(deviceName, O_RDONLY);
382 if (deviceHandle != -1) {
388 if (deviceHandle != -1)
389 close(deviceHandle);
429 if (-1 == ioctl (capture->deviceHandle, VIDIOC_S_FMT, &capture->form))
456 capture->deviceHandle = open(deviceName, O_RDWR);
458 if (capture->deviceHandle == 0)
468 if (ioctl(capture->deviceHandle, VIDIOCGCAP, &capture->capability) < 0)
498 capture->deviceHandle = open (deviceName, O_RDWR /* required */ | O_NONBLOCK, 0);
499 if (-1 == capture->deviceHandle)
509 if (-1 == ioctl (capture->deviceHandle, VIDIOC_QUERYCAP, &capture->cap))
519 if (-1 == ioctl (capture->deviceHandle, VIDIOC_G_INPUT, &deviceIndex))
531 if (-1 == ioctl (capture->deviceHandle, VIDIOC_ENUMINPUT, &capture->inp))
614 if(ioctl(capture->deviceHandle, VIDIOCGPICT, &capture->imageProperties) < 0) {
622 if (try_palette(capture->deviceHandle, &capture->imageProperties, VIDEO_PALETTE_RGB24, 24)) {
625 else if (try_palette(capture->deviceHandle, &capture->imageProperties, VIDEO_PALETTE_YUV420P, 16)) {
628 else if (try_palette(capture->deviceHandle, &capture->imageProperties, VIDEO_PALETTE_YUV420, 16)) {
631 else if (try_palette(capture->deviceHandle, &capture->imageProperties, VIDEO_PALETTE_YUV411P, 16)) {
663 if (0 == ioctl (capture->deviceHandle, VIDIOC_QUERYCTRL,
731 if (0 == ioctl (capture->deviceHandle, VIDIOC_QUERYCTRL,
854 if (-1 == ioctl (capture->deviceHandle, VIDIOC_ENUMINPUT, &capture->inp))
866 if (-1 == ioctl (capture->deviceHandle, VIDIOC_G_FMT, &capture->form)) {
904 if (-1 == ioctl (capture->deviceHandle, VIDIOC_REQBUFS, &capture->req))
944 if (-1 == ioctl (capture->deviceHandle, VIDIOC_QUERYBUF, &buf)) {
958 capture->deviceHandle, buf.m.offset);
1040 if (ioctl(capture->deviceHandle, VIDIOCGCHAN , &selectedChannel) != -1) {
1043 if (ioctl(capture->deviceHandle, VIDIOCSCHAN , &selectedChannel) == -1) {
1054 if(ioctl(capture->deviceHandle, VIDIOCGWIN, &capture->captureWindow) == -1) {
1072 ioctl(capture->deviceHandle, VIDIOCGMBUF, &capture->memoryBuffer);
1077 capture->deviceHandle,
1183 if (-1 == ioctl (capture->deviceHandle, VIDIOC_DQBUF, &buf)) {
1191 if (ioctl(capture->deviceHandle, VIDIOC_QBUF, &buf) == -1)
1214 if (-1 == ioctl (capture->deviceHandle, VIDIOC_QBUF, &buf))
1235 FD_SET (capture->deviceHandle, &fds);
1241 r = select (capture->deviceHandle+1, &fds, NULL, NULL, &tv);
1293 if (-1 == ioctl (capture->deviceHandle, VIDIOC_QBUF, &buf)) {
1301 if (-1 == ioctl (capture->deviceHandle, VIDIOC_STREAMON,
1324 if (ioctl(capture->deviceHandle, VIDIOCMCAPTURE, &capture->mmaps[capture->bufferIndex]) == -1) {
1366 if (ioctl (capture->deviceHandle, VIDIOCMCAPTURE,
2117 if (ioctl(capture->deviceHandle, VIDIOCSYNC, &capture->mmaps[capture->bufferIndex].frame) == -1) {
2309 if (-1 == ioctl (capture->deviceHandle, VIDIOC_G_FMT, &capture->form)) {
2357 if (-1 == ioctl (capture->deviceHandle, VIDIOC_G_CTRL,
2428 if (ioctl (capture->deviceHandle,
2495 if (ioctl (capture->deviceHandle, VIDIOC_CROPCAP, &capture->cropcap) < 0) {
2504 if (ioctl (capture->deviceHandle, VIDIOC_S_CROP, &capture->crop) < 0) {
2513 ioctl (capture->deviceHandle, VIDIOC_G_FMT, &capture->form);
2528 ioctl (capture->deviceHandle, VIDIOC_S_FMT, &capture->form);
2536 ioctl (capture->deviceHandle, VIDIOC_S_PARM, &setfps);
2543 if (-1 == ioctl (capture->deviceHandle, VIDIOC_G_FMT, &capture->form))
2573 if (ioctl(capture->deviceHandle, VIDIOCSWIN, &capture->captureWindow) < 0) {
2578 if (ioctl(capture->deviceHandle, VIDIOCGWIN, &capture->captureWindow) < 0) {
2643 if (-1 == ioctl (capture->deviceHandle,
2713 if (-1 == ioctl (capture->deviceHandle,
2759 if (ioctl(capture->deviceHandle, VIDIOCSPICT, &capture->imageProperties)
2845 if (-1 == ioctl(capture->deviceHandle, VIDIOC_STREAMOFF, &capture->type)) {
2864 if (capture->deviceHandle != -1)
2865 close(capture->deviceHandle);