![]() |
![]() |
![]() |
gst-plugins-camera Reference Manual | ![]() |
---|---|---|---|---|
#define GST_V4L2CAMSRC_MAX_BUFFERS #define GST_V4L2CAMSRC_MIN_BUFFERS #define GST_V4L2CAMSRC_MAX_SIZE #define GST_TYPE_V4L2CAMSRC_CAPTURE_MODE enum GstV4L2CamSrcCaptureMode; GstV4l2BufferPool; GstV4l2CamSrc;
GObject +----GstObject +----GstElement +----GstBaseSrc +----GstPushSrc +----GstV4l2CamSrc
GstV4l2CamSrc implements GstImplementsInterface, GstPhotography, GstColorBalance and GstVideoOrientation.
"always-copy" gboolean : Read / Write "capture-mode" GstV4L2CamSrcCaptureMode : Read / Write "device" gchar* : Read / Write "device-fd" gint : Read "device-name" gchar* : Read "driver-name" gchar* : Read / Write "queue-size" guint : Read / Write
#define GST_TYPE_V4L2CAMSRC_CAPTURE_MODE (gst_v4l2camsrc_capture_mode_get_type())
typedef enum { GST_V4L2CAMSRC_CAPTURE_MODE_VIEWFINDER, GST_V4L2CAMSRC_CAPTURE_MODE_STILL, GST_V4L2CAMSRC_CAPTURE_MODE_VIDEO } GstV4L2CamSrcCaptureMode;
typedef struct { GstMiniObject parent; GMutex *lock; gboolean running; /* with lock */ gint num_live_buffers; /* with lock */ gint video_fd; /* a dup(2) of the v4l2object's video_fd */ guint buffer_count; GstBuffer **buffers; /* with lock; buffers[n] is NULL that buffer has been * dequeued and pushed out */ struct v4l2_buffer *vbuffers; guint *queued; } GstV4l2BufferPool;
"always-copy"
property"always-copy" gboolean : Read / Write
If the buffer will or not be used directly from mmap.
Default value: FALSE
"capture-mode"
property"capture-mode" GstV4L2CamSrcCaptureMode : Read / Write
Defines what kind of capturing mode to be used.
Default value: Viewfinder mode
"device-fd"
property"device-fd" gint : Read
File descriptor of the device.
Allowed values: >= -1
Default value: -1
"driver-name"
property"driver-name" gchar* : Read / Write
Name of the camera device driver to be loaded dynamically.
Default value: NULL