• Home
  • Raw
  • Download

Lines Matching refs:v4l2object

78   GstV4l2Object *v4l2object;  in gst_v4l2radio_fill_channel_list()  local
81 v4l2object = radio->v4l2object; in gst_v4l2radio_fill_channel_list()
84 GST_V4L2_CHECK_OPEN (v4l2object); in gst_v4l2radio_fill_channel_list()
90 res = v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERYCAP, &vc); in gst_v4l2radio_fill_channel_list()
95 v4l2object->device_caps = vc.device_caps; in gst_v4l2radio_fill_channel_list()
97 v4l2object->device_caps = vc.capabilities; in gst_v4l2radio_fill_channel_list()
99 if (!(v4l2object->device_caps & V4L2_CAP_TUNER)) in gst_v4l2radio_fill_channel_list()
106 res = v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_TUNER, &vtun); in gst_v4l2radio_fill_channel_list()
132 v4l2object->channels = in gst_v4l2radio_fill_channel_list()
133 g_list_prepend (v4l2object->channels, (gpointer) channel); in gst_v4l2radio_fill_channel_list()
135 v4l2object->channels = g_list_reverse (v4l2object->channels); in gst_v4l2radio_fill_channel_list()
145 vtun.index, v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2radio_fill_channel_list()
152 v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2radio_fill_channel_list()
159 v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2radio_fill_channel_list()
165 gst_v4l2radio_get_input (GstV4l2Object * v4l2object, guint32 * input) in gst_v4l2radio_get_input() argument
167 GST_DEBUG_OBJECT (v4l2object->element, "trying to get radio input"); in gst_v4l2radio_get_input()
169 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2radio_get_input()
172 if (!v4l2object->channels) in gst_v4l2radio_get_input()
177 GST_DEBUG_OBJECT (v4l2object->element, "input: %d", 0); in gst_v4l2radio_get_input()
184 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2radio_get_input()
186 v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2radio_get_input()
192 gst_v4l2radio_set_input (GstV4l2Object * v4l2object, guint32 input) in gst_v4l2radio_set_input() argument
194 GST_DEBUG_OBJECT (v4l2object->element, "trying to set input to %d", input); in gst_v4l2radio_set_input()
196 if (!GST_V4L2_IS_OPEN (v4l2object)) in gst_v4l2radio_set_input()
199 if (!v4l2object->channels) in gst_v4l2radio_set_input()
207 GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS, in gst_v4l2radio_set_input()
209 input, v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2radio_set_input()
222 if (!GST_V4L2_IS_OPEN (radio->v4l2object)) in gst_v4l2radio_set_mute_on()
229 GST_DEBUG_OBJECT (radio, "radio fd: %d", radio->v4l2object->video_fd); in gst_v4l2radio_set_mute_on()
231 res = ioctl (radio->v4l2object->video_fd, VIDIOC_S_CTRL, &vctrl); in gst_v4l2radio_set_mute_on()
243 radio->v4l2object->videodev), GST_ERROR_SYSTEM); in gst_v4l2radio_set_mute_on()
331 filter->v4l2object = gst_v4l2_object_new (GST_ELEMENT (filter), in gst_v4l2radio_init()
335 filter->v4l2object->frequency = DEFAULT_FREQUENCY; in gst_v4l2radio_init()
336 g_free (filter->v4l2object->videodev); in gst_v4l2radio_init()
337 filter->v4l2object->videodev = g_strdup (DEFAULT_PROP_DEVICE); in gst_v4l2radio_init()
344 gst_v4l2_close (radio->v4l2object); in gst_v4l2radio_dispose()
351 gst_v4l2_object_destroy (radio->v4l2object); in gst_v4l2radio_finalize()
358 GstV4l2Object *v4l2object; in gst_v4l2radio_open() local
360 v4l2object = radio->v4l2object; in gst_v4l2radio_open()
361 if (gst_v4l2_open (v4l2object, error)) in gst_v4l2radio_open()
370 GstV4l2Object *v4l2object; in gst_v4l2radio_set_defaults() local
374 v4l2object = radio->v4l2object; in gst_v4l2radio_set_defaults()
376 if (!GST_IS_TUNER (v4l2object->element)) in gst_v4l2radio_set_defaults()
379 tuner = GST_TUNER (v4l2object->element); in gst_v4l2radio_set_defaults()
381 if (v4l2object->channel) in gst_v4l2radio_set_defaults()
382 channel = gst_tuner_find_channel_by_name (tuner, v4l2object->channel); in gst_v4l2radio_set_defaults()
388 (v4l2object->element))); in gst_v4l2radio_set_defaults()
390 g_free (v4l2object->channel); in gst_v4l2radio_set_defaults()
391 v4l2object->channel = g_strdup (channel->label); in gst_v4l2radio_set_defaults()
398 if (v4l2object->frequency != 0) { in gst_v4l2radio_set_defaults()
399 gst_tuner_set_frequency (tuner, channel, v4l2object->frequency); in gst_v4l2radio_set_defaults()
401 v4l2object->frequency = gst_tuner_get_frequency (tuner, channel); in gst_v4l2radio_set_defaults()
402 if (v4l2object->frequency == 0) { in gst_v4l2radio_set_defaults()
425 if (!gst_v4l2_object_close (radio->v4l2object)) in gst_v4l2radio_stop()
476 g_free (radio->v4l2object->videodev); in gst_v4l2radio_set_property()
477 radio->v4l2object->videodev = in gst_v4l2radio_set_property()
483 radio->v4l2object->frequency = frequency; in gst_v4l2radio_set_property()
484 gst_v4l2_set_frequency (radio->v4l2object, 0, in gst_v4l2radio_set_property()
485 radio->v4l2object->frequency); in gst_v4l2radio_set_property()
502 g_value_set_string (value, radio->v4l2object->videodev); in gst_v4l2radio_get_property()
505 if (gst_v4l2_get_frequency (radio->v4l2object, in gst_v4l2radio_get_property()
506 0, &(radio->v4l2object->frequency))) in gst_v4l2radio_get_property()
507 g_value_set_int (value, radio->v4l2object->frequency); in gst_v4l2radio_get_property()
535 if (radio->v4l2object->videodev != NULL) { in gst_v4l2radio_uri_get_uri()
536 if (gst_v4l2_get_frequency (radio->v4l2object, in gst_v4l2radio_uri_get_uri()
537 0, &(radio->v4l2object->frequency))) { in gst_v4l2radio_uri_get_uri()
539 radio->v4l2object->frequency / 1e6); in gst_v4l2radio_uri_get_uri()