/third_party/gstreamer/gstplugins_good/sys/v4l2/ |
D | gstv4l2.c | 67 gst_v4l2_probe_template_caps (const gchar * device, gint video_fd, in gst_v4l2_probe_template_caps() argument 85 if (ioctl (video_fd, VIDIOC_ENUM_FMT, &format) < 0) in gst_v4l2_probe_template_caps() 126 gint video_fd = -1; in gst_v4l2_probe_and_register() local 140 if (video_fd >= 0) in gst_v4l2_probe_and_register() 141 close (video_fd); in gst_v4l2_probe_and_register() 143 video_fd = open (it->device_path, O_RDWR | O_CLOEXEC); in gst_v4l2_probe_and_register() 145 if (video_fd == -1) { in gst_v4l2_probe_and_register() 152 if (ioctl (video_fd, VIDIOC_QUERYCAP, &vcap) < 0) { in gst_v4l2_probe_and_register() 171 video_fd, V4L2_BUF_TYPE_VIDEO_OUTPUT), in gst_v4l2_probe_and_register() 172 gst_v4l2_probe_template_caps (it->device_path, video_fd, in gst_v4l2_probe_and_register() [all …]
|
D | v4l2_calls.c | 71 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERYCAP, in gst_v4l2_get_capabilities() 151 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_ENUMINPUT, &input) < 0) { in gst_v4l2_fill_lists() 185 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_TUNER, &vtun) < 0) { in gst_v4l2_fill_lists() 226 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_ENUMSTD, &standard) < 0) { in gst_v4l2_fill_lists() 284 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERYCTRL, in gst_v4l2_fill_lists() 411 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERYMENU, in gst_v4l2_fill_lists() 542 v4l2object->video_fd = 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() 652 v4l2object->close (v4l2object->video_fd); in gst_v4l2_open() [all …]
|
D | gstv4l2codec.c | 38 gst_v4l2_codec_probe_profiles (const GstV4l2Codec * codec, gint video_fd, in gst_v4l2_codec_probe_profiles() argument 47 if (ioctl (video_fd, VIDIOC_QUERYCTRL, &query_ctrl) == 0) { in gst_v4l2_codec_probe_profiles() 60 if (ioctl (video_fd, VIDIOC_QUERYMENU, &query_menu) >= 0) { in gst_v4l2_codec_probe_profiles() 82 gst_v4l2_codec_probe_levels (const GstV4l2Codec * codec, gint video_fd, in gst_v4l2_codec_probe_levels() argument 91 if (ioctl (video_fd, VIDIOC_QUERYCTRL, &query_ctrl) == 0) { in gst_v4l2_codec_probe_levels() 102 if (ioctl (video_fd, VIDIOC_QUERYMENU, &query_menu) >= 0) { in gst_v4l2_codec_probe_levels()
|
D | gstv4l2codec.h | 43 gboolean gst_v4l2_codec_probe_profiles(const GstV4l2Codec * codec, gint video_fd, 45 gboolean gst_v4l2_codec_probe_levels(const GstV4l2Codec * codec, gint video_fd,
|
D | gstv4l2h265enc.c | 115 const gchar * device_path, gint video_fd, GstCaps * sink_caps, in gst_v4l2_h265_enc_register() argument 120 "h265", basename, device_path, codec, video_fd, sink_caps, in gst_v4l2_h265_enc_register()
|
D | gstv4l2vp8enc.c | 115 const gchar * device_path, gint video_fd, GstCaps * sink_caps, in gst_v4l2_vp8_enc_register() argument 120 "vp8", basename, device_path, codec, video_fd, sink_caps, in gst_v4l2_vp8_enc_register()
|
D | gstv4l2h264enc.c | 136 const gchar * device_path, gint video_fd, GstCaps * sink_caps, in gst_v4l2_h264_enc_register() argument 141 "h264", basename, device_path, codec, video_fd, sink_caps, in gst_v4l2_h264_enc_register()
|
D | gstv4l2vp9enc.c | 114 const gchar * device_path, gint video_fd, GstCaps * sink_caps, in gst_v4l2_vp9_enc_register() argument 119 "vp9", basename, device_path, codec, video_fd, sink_caps, in gst_v4l2_vp9_enc_register()
|
D | gstv4l2mpeg4enc.c | 114 const gchar * device_path, gint video_fd, GstCaps * sink_caps, in gst_v4l2_mpeg4_enc_register() argument 119 "mpeg4", basename, device_path, codec, video_fd, sink_caps, in gst_v4l2_mpeg4_enc_register()
|
D | gstv4l2sink.c | 260 if (obj->ioctl (obj->video_fd, VIDIOC_G_FMT, &format) < 0) { in gst_v4l2sink_sync_overlay_fields() 280 if (obj->ioctl (obj->video_fd, VIDIOC_S_FMT, &format) < 0) { in gst_v4l2sink_sync_overlay_fields() 304 if (obj->ioctl (obj->video_fd, VIDIOC_G_CROP, &crop) < 0) { in gst_v4l2sink_sync_crop_fields() 324 if (obj->ioctl (obj->video_fd, VIDIOC_S_CROP, &crop) < 0) { in gst_v4l2sink_sync_crop_fields() 329 if (obj->ioctl (obj->video_fd, VIDIOC_G_CROP, &crop) < 0) { in gst_v4l2sink_sync_crop_fields()
|
D | gstv4l2allocator.c | 264 if (obj->ioctl (obj->video_fd, VIDIOC_QUERYBUF, &group->buffer) < 0) in gst_v4l2_memory_group_new() 494 if (obj->ioctl (obj->video_fd, VIDIOC_REQBUFS, &breq) == 0) { in gst_v4l2_allocator_probe() 502 if ((obj->ioctl (obj->video_fd, VIDIOC_CREATE_BUFS, &bcreate) == 0)) in gst_v4l2_allocator_probe() 534 if (obj->ioctl (obj->video_fd, VIDIOC_CREATE_BUFS, &bcreate) < 0) in gst_v4l2_allocator_create_buf() 685 if (obj->ioctl (obj->video_fd, VIDIOC_REQBUFS, &breq) < 0) in gst_v4l2_allocator_start() 790 if (obj->ioctl (obj->video_fd, VIDIOC_REQBUFS, &breq) < 0) in gst_v4l2_allocator_stop() 818 if (obj->ioctl (obj->video_fd, VIDIOC_REQBUFS, &breq) < 0) { in gst_v4l2_allocator_orphan() 845 MAP_SHARED, obj->video_fd, group->planes[i].m.mem_offset); in gst_v4l2_allocator_alloc_mmap() 909 if (obj->ioctl (obj->video_fd, VIDIOC_EXPBUF, &expbuf) < 0) in gst_v4l2_allocator_alloc_dmabuf() 1271 if (obj->ioctl (obj->video_fd, VIDIOC_QBUF, &group->buffer) < 0) { in gst_v4l2_allocator_qbuf() [all …]
|
D | gstv4l2videoenc.c | 244 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_ENCODER_CMD, &ecmd) < 0) in gst_v4l2_encoder_cmd() 448 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_S_CTRL, &control) < 0) { in negotiate_profile_and_level() 490 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_S_CTRL, &control) < 0) { in negotiate_profile_and_level() 567 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_CTRL, &control) < 0) in gst_v4l2_video_enc_negotiate() 578 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_CTRL, &control) < 0) in gst_v4l2_video_enc_negotiate() 1204 const GstV4l2Codec * codec, gint video_fd, GstCaps * sink_caps, in gst_v4l2_video_enc_register() argument 1217 if (codec != NULL && video_fd != -1) { in gst_v4l2_video_enc_register() 1218 if (gst_v4l2_codec_probe_levels (codec, video_fd, &value)) { in gst_v4l2_video_enc_register() 1223 if (gst_v4l2_codec_probe_profiles (codec, video_fd, &value)) { in gst_v4l2_video_enc_register()
|
D | gstv4l2radio.c | 90 res = v4l2object->ioctl (v4l2object->video_fd, VIDIOC_QUERYCAP, &vc); in gst_v4l2radio_fill_channel_list() 106 res = v4l2object->ioctl (v4l2object->video_fd, VIDIOC_G_TUNER, &vtun); in gst_v4l2radio_fill_channel_list() 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()
|
D | gstv4l2vp9enc.h | 57 const gchar * device_path, gint video_fd, GstCaps * sink_caps, GstCaps * src_caps);
|
D | gstv4l2vp8enc.h | 57 const gchar * device_path, gint video_fd, GstCaps * sink_caps, GstCaps * src_caps);
|
D | gstv4l2mpeg4enc.h | 57 const gchar * device_path, gint video_fd, GstCaps * sink_caps, GstCaps * src_caps);
|
D | gstv4l2h265enc.h | 57 const gchar * device_path, gint video_fd, GstCaps * sink_caps, GstCaps * src_caps);
|
D | gstv4l2h264enc.h | 57 const gchar * device_path, gint video_fd, GstCaps * sink_caps, GstCaps * src_caps);
|
D | gstv4l2videodec.h | 79 const gchar *device_path, gint video_fd,
|
D | gstv4l2videoenc.h | 88 const GstV4l2Codec * codec, gint video_fd,
|
D | gstv4l2bufferpool.h | 66 gint video_fd; /* a dup(2) of the v4l2object's video_fd */ member
|
D | gstv4l2object.h | 90 #define GST_V4L2_IS_OPEN(o) ((o)->video_fd > 0) 135 gint video_fd; member
|
D | gstv4l2bufferpool.c | 691 if (obj->ioctl (pool->video_fd, VIDIOC_STREAMON, &obj->type) < 0) in gst_v4l2_buffer_pool_streamon() 729 if (obj->ioctl (pool->video_fd, VIDIOC_STREAMOFF, &obj->type) < 0) in gst_v4l2_buffer_pool_streamoff() 814 obj->read (obj->video_fd, NULL, 0); in gst_v4l2_buffer_pool_start() 1740 if (pool->video_fd >= 0) in gst_v4l2_buffer_pool_finalize() 1741 pool->obj->close (pool->video_fd); in gst_v4l2_buffer_pool_finalize() 1808 fd = obj->dup (obj->video_fd); in gst_v4l2_buffer_pool_new() 1832 pool->video_fd = fd; in gst_v4l2_buffer_pool_new() 1883 amount = obj->read (obj->video_fd, map.data, toread); in gst_v4l2_do_read()
|
/third_party/ffmpeg/libavdevice/ |
D | bktr.c | 56 int video_fd; member 99 int format, int *video_fd, int *tuner_fd, int idev, double frequency) in bktr_init() argument 146 *video_fd = avpriv_open(video_device, O_RDONLY); in bktr_init() 147 if (*video_fd < 0) { in bktr_init() 172 if (ioctl(*video_fd, METEORSETGEO, &geo) < 0) { in bktr_init() 179 if (ioctl(*video_fd, BT848SFMT, &c) < 0) { in bktr_init() 187 if (ioctl(*video_fd, METEORSINPUT, &c) < 0) { in bktr_init() 197 PROT_READ, MAP_SHARED, *video_fd, (off_t)0); in bktr_init() 216 ioctl(*video_fd, METEORCAPTUR, &c); in bktr_init() 219 ioctl(*video_fd, METEORSSIGNAL, &c); in bktr_init() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/v4l2codecs/ |
D | gstv4l2decoder.c | 77 gint video_fd; member 176 self->video_fd = open (self->video_device, O_NONBLOCK); in gst_v4l2_decoder_open() 177 if (self->video_fd < 0) { in gst_v4l2_decoder_open() 183 ret = ioctl (self->video_fd, VIDIOC_QUERYCAP, &querycap); in gst_v4l2_decoder_open() 229 if (self->video_fd) in gst_v4l2_decoder_close() 230 close (self->video_fd); in gst_v4l2_decoder_close() 233 self->video_fd = 0; in gst_v4l2_decoder_close() 245 ret = ioctl (self->video_fd, VIDIOC_STREAMON, &type); in gst_v4l2_decoder_streamon() 272 ret = ioctl (self->video_fd, VIDIOC_STREAMOFF, &type); in gst_v4l2_decoder_streamoff() 302 ret = ioctl (self->video_fd, VIDIOC_ENUM_FMT, &fmtdesc); in gst_v4l2_decoder_enum_sink_fmt() [all …]
|