GstV4l2CamSrc

GstV4l2CamSrc

Synopsis

#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;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstBaseSrc
                     +----GstPushSrc
                           +----GstV4l2CamSrc

Implemented Interfaces

GstV4l2CamSrc implements GstImplementsInterface, GstPhotography, GstColorBalance and GstVideoOrientation.

Properties

  "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

Description

A longer description goes here.

Details

GST_V4L2CAMSRC_MAX_BUFFERS

#define GST_V4L2CAMSRC_MAX_BUFFERS 16

GST_V4L2CAMSRC_MIN_BUFFERS

#define GST_V4L2CAMSRC_MIN_BUFFERS 1

GST_V4L2CAMSRC_MAX_SIZE

#define GST_V4L2CAMSRC_MAX_SIZE (1<<15) /* 2^15 == 32768 */

GST_TYPE_V4L2CAMSRC_CAPTURE_MODE

#define GST_TYPE_V4L2CAMSRC_CAPTURE_MODE (gst_v4l2camsrc_capture_mode_get_type())

enum GstV4L2CamSrcCaptureMode

typedef enum {
  GST_V4L2CAMSRC_CAPTURE_MODE_VIEWFINDER,
  GST_V4L2CAMSRC_CAPTURE_MODE_STILL,
  GST_V4L2CAMSRC_CAPTURE_MODE_VIDEO
} GstV4L2CamSrcCaptureMode;

GstV4l2BufferPool

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;

GstV4l2CamSrc

typedef struct _GstV4l2CamSrc GstV4l2CamSrc;

Opaque object.

Property Details

The "always-copy" property

  "always-copy"              gboolean              : Read / Write

If the buffer will or not be used directly from mmap.

Default value: FALSE


The "capture-mode" property

  "capture-mode"             GstV4L2CamSrcCaptureMode  : Read / Write

Defines what kind of capturing mode to be used.

Default value: Viewfinder mode


The "device" property

  "device"                   gchar*                : Read / Write

Device location.

Default value: "/dev/video0"


The "device-fd" property

  "device-fd"                gint                  : Read

File descriptor of the device.

Allowed values: >= -1

Default value: -1


The "device-name" property

  "device-name"              gchar*                : Read

Name of the device.

Default value: NULL


The "driver-name" property

  "driver-name"              gchar*                : Read / Write

Name of the camera device driver to be loaded dynamically.

Default value: NULL


The "queue-size" property

  "queue-size"               guint                 : Read / Write

Number of buffers to be enqueud in the driver.

Allowed values: [1,16]

Default value: 4