Lines Matching refs:v4l2object
60 gst_v4l2_get_capabilities (GstV4l2Object * v4l2object) in gst_v4l2_get_capabilities() argument
64 e = v4l2object->element; in gst_v4l2_get_capabilities()
68 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_get_capabilities()
71 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERYCAP, in gst_v4l2_get_capabilities()
72 &v4l2object->vcap) < 0) in gst_v4l2_get_capabilities()
75 if (v4l2object->vcap.capabilities & V4L2_CAP_DEVICE_CAPS) in gst_v4l2_get_capabilities()
76 v4l2object->device_caps = v4l2object->vcap.device_caps; in gst_v4l2_get_capabilities()
78 v4l2object->device_caps = v4l2object->vcap.capabilities; in gst_v4l2_get_capabilities()
80 GST_LOG_OBJECT (e, "driver: '%s'", v4l2object->vcap.driver); in gst_v4l2_get_capabilities()
81 GST_LOG_OBJECT (e, "card: '%s'", v4l2object->vcap.card); in gst_v4l2_get_capabilities()
82 GST_LOG_OBJECT (e, "bus_info: '%s'", v4l2object->vcap.bus_info); in gst_v4l2_get_capabilities()
83 GST_LOG_OBJECT (e, "version: %08x", v4l2object->vcap.version); in gst_v4l2_get_capabilities()
84 GST_LOG_OBJECT (e, "capabilities: %08x", v4l2object->device_caps); in gst_v4l2_get_capabilities()
91 GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2_get_capabilities()
94 v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2_get_capabilities()
129 gst_v4l2_fill_lists (GstV4l2Object * v4l2object) in gst_v4l2_fill_lists() argument
136 e = v4l2object->element; in gst_v4l2_fill_lists()
139 GST_V4L2_CHECK_OPEN (v4l2object); in gst_v4l2_fill_lists()
151 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_ENUMINPUT, &input) < 0) { in gst_v4l2_fill_lists()
157 n, v4l2object->videodev), in gst_v4l2_fill_lists()
159 n, v4l2object->videodev, errno, strerror (errno))); in gst_v4l2_fill_lists()
185 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_TUNER, &vtun) < 0) { in gst_v4l2_fill_lists()
188 input.tuner, v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2_fill_lists()
208 v4l2object->channels = in gst_v4l2_fill_lists()
209 g_list_prepend (v4l2object->channels, (gpointer) channel); in gst_v4l2_fill_lists()
211 v4l2object->channels = g_list_reverse (v4l2object->channels); in gst_v4l2_fill_lists()
226 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_ENUMSTD, &standard) < 0) { in gst_v4l2_fill_lists()
236 v4l2object->videodev), in gst_v4l2_fill_lists()
238 n, v4l2object->videodev, errno, strerror (errno))); in gst_v4l2_fill_lists()
254 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "index=%08x, label=%s", in gst_v4l2_fill_lists()
257 v4l2object->norms = g_list_prepend (v4l2object->norms, (gpointer) norm); in gst_v4l2_fill_lists()
259 v4l2object->norms = g_list_reverse (v4l2object->norms); in gst_v4l2_fill_lists()
284 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERYCTRL, in gst_v4l2_fill_lists()
309 "(%d - %s)", n, v4l2object->videodev, errno, strerror (errno)); in gst_v4l2_fill_lists()
337 g_datalist_id_set_data (&v4l2object->controls, in gst_v4l2_fill_lists()
383 v4l2object->has_alpha_component = TRUE; in gst_v4l2_fill_lists()
411 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERYMENU, in gst_v4l2_fill_lists()
418 v4l2object->videodev), in gst_v4l2_fill_lists()
420 n, v4l2object->videodev, errno, strerror (errno))); in gst_v4l2_fill_lists()
429 v4l2object->menus = g_list_append (v4l2object->menus, menus); in gst_v4l2_fill_lists()
452 v4l2object->colors = in gst_v4l2_fill_lists()
453 g_list_prepend (v4l2object->colors, (gpointer) channel); in gst_v4l2_fill_lists()
455 v4l2object->colors = g_list_reverse (v4l2object->colors); in gst_v4l2_fill_lists()
463 gst_v4l2_empty_lists (GstV4l2Object * v4l2object) in gst_v4l2_empty_lists() argument
465 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "deleting enumerations"); in gst_v4l2_empty_lists()
467 g_list_foreach (v4l2object->channels, (GFunc) g_object_unref, NULL); in gst_v4l2_empty_lists()
468 g_list_free (v4l2object->channels); in gst_v4l2_empty_lists()
469 v4l2object->channels = NULL; in gst_v4l2_empty_lists()
471 g_list_foreach (v4l2object->norms, (GFunc) g_object_unref, NULL); in gst_v4l2_empty_lists()
472 g_list_free (v4l2object->norms); in gst_v4l2_empty_lists()
473 v4l2object->norms = NULL; in gst_v4l2_empty_lists()
475 g_list_foreach (v4l2object->colors, (GFunc) g_object_unref, NULL); in gst_v4l2_empty_lists()
476 g_list_free (v4l2object->colors); in gst_v4l2_empty_lists()
477 v4l2object->colors = NULL; in gst_v4l2_empty_lists()
479 g_datalist_clear (&v4l2object->controls); in gst_v4l2_empty_lists()
483 gst_v4l2_adjust_buf_type (GstV4l2Object * v4l2object) in gst_v4l2_adjust_buf_type() argument
493 switch (v4l2object->type) { in gst_v4l2_adjust_buf_type()
495 if (v4l2object->device_caps & in gst_v4l2_adjust_buf_type()
498 v4l2object->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in gst_v4l2_adjust_buf_type()
502 if (v4l2object->device_caps & in gst_v4l2_adjust_buf_type()
505 v4l2object->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in gst_v4l2_adjust_buf_type()
519 gst_v4l2_open (GstV4l2Object * v4l2object, GstV4l2Error * error) in gst_v4l2_open() argument
524 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "Trying to open device %s", in gst_v4l2_open()
525 v4l2object->videodev); in gst_v4l2_open()
527 GST_V4L2_CHECK_NOT_OPEN (v4l2object); in gst_v4l2_open()
528 GST_V4L2_CHECK_NOT_ACTIVE (v4l2object); in gst_v4l2_open()
531 if (!v4l2object->videodev) in gst_v4l2_open()
532 v4l2object->videodev = g_strdup ("/dev/video"); in gst_v4l2_open()
535 if (stat (v4l2object->videodev, &st) == -1) in gst_v4l2_open()
542 v4l2object->video_fd = in gst_v4l2_open()
543 open (v4l2object->videodev, O_RDWR /* | O_NONBLOCK */ ); in gst_v4l2_open()
545 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_open()
549 if (v4l2object->fd_open) in gst_v4l2_open()
550 libv4l2_fd = v4l2object->fd_open (v4l2object->video_fd, in gst_v4l2_open()
561 v4l2object->video_fd = libv4l2_fd; in gst_v4l2_open()
564 if (!gst_v4l2_get_capabilities (v4l2object)) in gst_v4l2_open()
568 if (GST_IS_V4L2SRC (v4l2object->element) && in gst_v4l2_open()
569 !(v4l2object->device_caps & (V4L2_CAP_VIDEO_CAPTURE | in gst_v4l2_open()
573 if (GST_IS_V4L2SINK (v4l2object->element) && in gst_v4l2_open()
574 !(v4l2object->device_caps & (V4L2_CAP_VIDEO_OUTPUT | in gst_v4l2_open()
578 if (GST_IS_V4L2_VIDEO_DEC (v4l2object->element) && in gst_v4l2_open()
579 !GST_V4L2_IS_M2M (v4l2object->device_caps)) in gst_v4l2_open()
582 gst_v4l2_adjust_buf_type (v4l2object); in gst_v4l2_open()
585 if (!gst_v4l2_fill_lists (v4l2object)) in gst_v4l2_open()
588 GST_INFO_OBJECT (v4l2object->dbg_obj, in gst_v4l2_open()
590 v4l2object->vcap.card, v4l2object->videodev); in gst_v4l2_open()
592 if (v4l2object->extra_controls) in gst_v4l2_open()
593 gst_v4l2_set_controls (v4l2object, v4l2object->extra_controls); in gst_v4l2_open()
598 if (!strcmp ((char *) v4l2object->vcap.driver, "uvcusb") || in gst_v4l2_open()
599 !strcmp ((char *) v4l2object->vcap.driver, "uvcvideo")) { in gst_v4l2_open()
600 v4l2object->never_interlaced = TRUE; in gst_v4l2_open()
609 (_("Cannot identify device '%s'."), v4l2object->videodev), in gst_v4l2_open()
616 (_("This isn't a device '%s'."), v4l2object->videodev), in gst_v4l2_open()
624 v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2_open()
630 (_("Device '%s' is not a capture device."), v4l2object->videodev), in gst_v4l2_open()
631 ("Capabilities: 0x%x", v4l2object->device_caps)); in gst_v4l2_open()
637 (_("Device '%s' is not a output device."), v4l2object->videodev), in gst_v4l2_open()
638 ("Capabilities: 0x%x", v4l2object->device_caps)); in gst_v4l2_open()
644 (_("Device '%s' is not a M2M device."), v4l2object->videodev), in gst_v4l2_open()
645 ("Capabilities: 0x%x", v4l2object->device_caps)); in gst_v4l2_open()
650 if (GST_V4L2_IS_OPEN (v4l2object)) { in gst_v4l2_open()
652 v4l2object->close (v4l2object->video_fd); in gst_v4l2_open()
653 v4l2object->video_fd = -1; in gst_v4l2_open()
656 gst_v4l2_empty_lists (v4l2object); in gst_v4l2_open()
663 gst_v4l2_dup (GstV4l2Object * v4l2object, GstV4l2Object * other) in gst_v4l2_dup() argument
665 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "Trying to dup device %s", in gst_v4l2_dup()
669 GST_V4L2_CHECK_NOT_OPEN (v4l2object); in gst_v4l2_dup()
671 GST_V4L2_CHECK_NOT_ACTIVE (v4l2object); in gst_v4l2_dup()
673 v4l2object->vcap = other->vcap; in gst_v4l2_dup()
674 v4l2object->device_caps = other->device_caps; in gst_v4l2_dup()
675 gst_v4l2_adjust_buf_type (v4l2object); in gst_v4l2_dup()
677 v4l2object->video_fd = v4l2object->dup (other->video_fd); in gst_v4l2_dup()
678 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_dup()
681 g_free (v4l2object->videodev); in gst_v4l2_dup()
682 v4l2object->videodev = g_strdup (other->videodev); in gst_v4l2_dup()
684 GST_INFO_OBJECT (v4l2object->dbg_obj, in gst_v4l2_dup()
686 v4l2object->vcap.card, v4l2object->videodev); in gst_v4l2_dup()
688 v4l2object->never_interlaced = other->never_interlaced; in gst_v4l2_dup()
689 v4l2object->no_initial_format = other->no_initial_format; in gst_v4l2_dup()
695 GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, OPEN_READ_WRITE, in gst_v4l2_dup()
697 v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2_dup()
710 gst_v4l2_close (GstV4l2Object * v4l2object) in gst_v4l2_close() argument
712 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "Trying to close %s", in gst_v4l2_close()
713 v4l2object->videodev); in gst_v4l2_close()
715 GST_V4L2_CHECK_OPEN (v4l2object); in gst_v4l2_close()
716 GST_V4L2_CHECK_NOT_ACTIVE (v4l2object); in gst_v4l2_close()
719 v4l2object->close (v4l2object->video_fd); in gst_v4l2_close()
720 v4l2object->video_fd = -1; in gst_v4l2_close()
723 gst_v4l2_empty_lists (v4l2object); in gst_v4l2_close()
735 gst_v4l2_get_norm (GstV4l2Object * v4l2object, v4l2_std_id * norm) in gst_v4l2_get_norm() argument
737 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "getting norm"); in gst_v4l2_get_norm()
739 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_get_norm()
742 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_STD, norm) < 0) in gst_v4l2_get_norm()
751 v4l2object->videodev); in gst_v4l2_get_norm()
763 gst_v4l2_set_norm (GstV4l2Object * v4l2object, v4l2_std_id norm) in gst_v4l2_set_norm() argument
765 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "trying to set norm to " in gst_v4l2_set_norm()
768 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_set_norm()
771 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_S_STD, &norm) < 0) in gst_v4l2_set_norm()
779 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2_set_norm()
781 v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2_set_norm()
792 gst_v4l2_get_frequency (GstV4l2Object * v4l2object, in gst_v4l2_get_frequency() argument
799 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "getting current tuner frequency"); in gst_v4l2_get_frequency()
801 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_get_frequency()
804 channel = gst_tuner_get_channel (GST_TUNER (v4l2object->element)); in gst_v4l2_get_frequency()
807 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_FREQUENCY, &freq) < 0) in gst_v4l2_get_frequency()
817 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2_get_frequency()
819 v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2_get_frequency()
831 gst_v4l2_set_frequency (GstV4l2Object * v4l2object, in gst_v4l2_set_frequency() argument
838 GST_DEBUG_OBJECT (v4l2object->dbg_obj, in gst_v4l2_set_frequency()
841 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_set_frequency()
844 channel = gst_tuner_get_channel (GST_TUNER (v4l2object->element)); in gst_v4l2_set_frequency()
848 (void) v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_FREQUENCY, &freq); in gst_v4l2_set_frequency()
851 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_S_FREQUENCY, &freq) < 0) in gst_v4l2_set_frequency()
859 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2_set_frequency()
861 v4l2object->videodev, frequency), GST_ERROR_SYSTEM); in gst_v4l2_set_frequency()
872 gst_v4l2_signal_strength (GstV4l2Object * v4l2object, in gst_v4l2_signal_strength() argument
877 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "trying to get signal strength"); in gst_v4l2_signal_strength()
879 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_signal_strength()
883 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_TUNER, &tuner) < 0) in gst_v4l2_signal_strength()
893 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2_signal_strength()
895 v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2_signal_strength()
906 gst_v4l2_get_attribute (GstV4l2Object * v4l2object, in gst_v4l2_get_attribute() argument
911 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "getting value of attribute %d", in gst_v4l2_get_attribute()
914 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_get_attribute()
919 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_CTRL, &control) < 0) in gst_v4l2_get_attribute()
929 GST_WARNING_OBJECT (v4l2object->dbg_obj, in gst_v4l2_get_attribute()
931 attribute_num, v4l2object->videodev); in gst_v4l2_get_attribute()
943 gst_v4l2_set_attribute (GstV4l2Object * v4l2object, in gst_v4l2_set_attribute() argument
948 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "setting value of attribute %d to %d", in gst_v4l2_set_attribute()
951 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_set_attribute()
956 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_S_CTRL, &control) < 0) in gst_v4l2_set_attribute()
964 GST_WARNING_OBJECT (v4l2object, in gst_v4l2_set_attribute()
966 value, attribute_num, v4l2object->videodev); in gst_v4l2_set_attribute()
977 gst_v4l2_set_string_attribute (GstV4l2Object * v4l2object, in gst_v4l2_set_string_attribute() argument
984 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_set_string_attribute()
988 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERYCTRL, &control) < 0) { in gst_v4l2_set_string_attribute()
989 GST_WARNING_OBJECT (v4l2object, in gst_v4l2_set_string_attribute()
991 attribute_num, v4l2object->videodev); in gst_v4l2_set_string_attribute()
996 GST_WARNING_OBJECT (v4l2object, in gst_v4l2_set_string_attribute()
998 attribute_num, v4l2object->videodev); in gst_v4l2_set_string_attribute()
1011 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "setting value of attribute %d to %s", in gst_v4l2_set_string_attribute()
1014 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_S_EXT_CTRLS, &ctrls) < 0) in gst_v4l2_set_string_attribute()
1024 GST_WARNING_OBJECT (v4l2object, in gst_v4l2_set_string_attribute()
1026 value, attribute_num, v4l2object->videodev); in gst_v4l2_set_string_attribute()
1035 GstV4l2Object *v4l2object = user_data; in set_control() local
1057 d = g_datalist_id_get_data (&v4l2object->controls, field_id); in set_control()
1059 GST_WARNING_OBJECT (v4l2object, in set_control()
1065 gst_v4l2_set_attribute (v4l2object, GPOINTER_TO_INT (d), in set_control()
1068 gst_v4l2_set_attribute (v4l2object, GPOINTER_TO_INT (d), in set_control()
1071 gst_v4l2_set_string_attribute (v4l2object, GPOINTER_TO_INT (d), in set_control()
1074 GST_WARNING_OBJECT (v4l2object, in set_control()
1083 gst_v4l2_set_controls (GstV4l2Object * v4l2object, GstStructure * controls) in gst_v4l2_set_controls() argument
1085 return gst_structure_foreach (controls, set_control, v4l2object); in gst_v4l2_set_controls()
1089 gst_v4l2_get_input (GstV4l2Object * v4l2object, guint32 * input) in gst_v4l2_get_input() argument
1093 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "trying to get input"); in gst_v4l2_get_input()
1095 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_get_input()
1098 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_INPUT, &n) < 0) in gst_v4l2_get_input()
1103 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "input: %u", n); in gst_v4l2_get_input()
1109 if (v4l2object->device_caps & V4L2_CAP_TUNER) { in gst_v4l2_get_input()
1113 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2_get_input()
1114 …(_("Failed to get current input on device '%s'. May be it is a radio device"), v4l2object->videode… in gst_v4l2_get_input()
1120 gst_v4l2_set_input (GstV4l2Object * v4l2object, guint32 input) in gst_v4l2_set_input() argument
1122 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "trying to set input to %u", input); in gst_v4l2_set_input()
1124 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_set_input()
1127 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_S_INPUT, &input) < 0) in gst_v4l2_set_input()
1134 if (v4l2object->device_caps & V4L2_CAP_TUNER) { in gst_v4l2_set_input()
1138 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2_set_input()
1140 input, v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2_set_input()
1161 gst_v4l2_get_output (GstV4l2Object * v4l2object, guint32 * output) in gst_v4l2_get_output() argument
1165 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "trying to get output"); in gst_v4l2_get_output()
1167 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_get_output()
1170 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_OUTPUT, &n) < 0) in gst_v4l2_get_output()
1175 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "output: %u", n); in gst_v4l2_get_output()
1181 if (v4l2object->device_caps & V4L2_CAP_TUNER) { in gst_v4l2_get_output()
1185 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2_get_output()
1186 …(_("Failed to get current output on device '%s'. May be it is a radio device"), v4l2object->videod… in gst_v4l2_get_output()
1192 gst_v4l2_set_output (GstV4l2Object * v4l2object, guint32 output) in gst_v4l2_set_output() argument
1194 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "trying to set output to %u", output); in gst_v4l2_set_output()
1196 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_set_output()
1199 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_S_OUTPUT, &output) < 0) in gst_v4l2_set_output()
1206 if (v4l2object->device_caps & V4L2_CAP_TUNER) { in gst_v4l2_set_output()
1210 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2_set_output()
1212 output, v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2_set_output()
1243 gst_v4l2_subscribe_event (GstV4l2Object * v4l2object, guint32 event, guint32 id) in gst_v4l2_subscribe_event() argument
1248 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "Subscribing to '%s' event", in gst_v4l2_subscribe_event()
1251 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_subscribe_event()
1254 ret = v4l2object->ioctl (v4l2object->video_fd, VIDIOC_SUBSCRIBE_EVENT, &sub); in gst_v4l2_subscribe_event()
1264 GST_DEBUG_OBJECT (v4l2object->dbg_obj, in gst_v4l2_subscribe_event()
1268 GST_ERROR_OBJECT (v4l2object->dbg_obj, in gst_v4l2_subscribe_event()
1277 gst_v4l2_dequeue_event (GstV4l2Object * v4l2object, struct v4l2_event * event) in gst_v4l2_dequeue_event() argument
1281 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_dequeue_event()
1284 ret = v4l2object->ioctl (v4l2object->video_fd, VIDIOC_DQEVENT, event); in gst_v4l2_dequeue_event()
1287 GST_ERROR_OBJECT (v4l2object->dbg_obj, "DQEVENT failed: %s", in gst_v4l2_dequeue_event()
1292 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "Dequeued a '%s' event.", in gst_v4l2_dequeue_event()
1299 gst_v4l2_set_dv_timings (GstV4l2Object * v4l2object, in gst_v4l2_set_dv_timings() argument
1304 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_set_dv_timings()
1307 ret = v4l2object->ioctl (v4l2object->video_fd, VIDIOC_S_DV_TIMINGS, timings); in gst_v4l2_set_dv_timings()
1310 GST_ERROR_OBJECT (v4l2object->dbg_obj, "S_DV_TIMINGS failed: %s (%i)", in gst_v4l2_set_dv_timings()
1319 gst_v4l2_query_dv_timings (GstV4l2Object * v4l2object, in gst_v4l2_query_dv_timings() argument
1324 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2_query_dv_timings()
1327 ret = v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERY_DV_TIMINGS, in gst_v4l2_query_dv_timings()
1333 GST_DEBUG_OBJECT (v4l2object->dbg_obj, in gst_v4l2_query_dv_timings()
1337 GST_DEBUG_OBJECT (v4l2object->dbg_obj, in gst_v4l2_query_dv_timings()
1341 GST_INFO_OBJECT (v4l2object->dbg_obj, in gst_v4l2_query_dv_timings()
1345 GST_INFO_OBJECT (v4l2object->dbg_obj, in gst_v4l2_query_dv_timings()
1349 GST_ERROR_OBJECT (v4l2object->dbg_obj, in gst_v4l2_query_dv_timings()
1358 GST_FIXME_OBJECT (v4l2object->dbg_obj, "Unsupported DV Timings type (%i)", in gst_v4l2_query_dv_timings()
1363 GST_DEBUG_OBJECT (v4l2object->dbg_obj, "Detected DV Timings (%i x %i)", in gst_v4l2_query_dv_timings()