v4l2sink

v4l2sink

Properties

gchar * device Read / Write
gint device-fd Read
gchar * device-name Read
GstV4l2DeviceTypeFlags flags Read
guint overlay-height Read / Write
gint overlay-left Read / Write
gint overlay-top Read / Write
guint overlay-width Read / Write
guint queue-size Read / Write
gint brightness Read / Write
gint contrast Read / Write
gint hue Read / Write
gint saturation Read / Write
guint crop-height Read / Write
gint crop-left Read / Write
gint crop-top Read / Write
guint crop-width Read / Write
guint min-queued-bufs Read / Write

Types and Values

struct GstV4l2Sink

Implemented Interfaces

GstV4l2Sink implements GstImplementsInterface, GstXOverlay, GstNavigation, GstColorBalance, GstVideoOrientation and GstPropertyProbe.

Description

Functions

Types and Values

struct GstV4l2Sink

struct GstV4l2Sink {
  GstVideoSink videosink;
};

Property Details

The “device” property

  “device”                   gchar *

Device location.

Flags: Read / Write

Default value: "/dev/video1"


The “device-fd” property

  “device-fd”                gint

File descriptor of the device.

Flags: Read

Allowed values: >= -1

Default value: -1


The “device-name” property

  “device-name”              gchar *

Name of the device.

Flags: Read

Default value: NULL


The “flags” property

  “flags”                    GstV4l2DeviceTypeFlags

Device type flags.

Flags: Read


The “overlay-height” property

  “overlay-height”           guint

The height of the video overlay; default is equal to negotiated image height.

Flags: Read / Write

Default value: 0


The “overlay-left” property

  “overlay-left”             gint

The leftmost (x) coordinate of the video overlay; top left corner of screen is 0,0.

Flags: Read / Write

Default value: 0


The “overlay-top” property

  “overlay-top”              gint

The topmost (y) coordinate of the video overlay; top left corner of screen is 0,0.

Flags: Read / Write

Default value: 0


The “overlay-width” property

  “overlay-width”            guint

The width of the video overlay; default is equal to negotiated image width.

Flags: Read / Write

Default value: 0


The “queue-size” property

  “queue-size”               guint

Number of buffers to be enqueud in the driver in streaming mode.

Flags: Read / Write

Allowed values: [1,16]

Default value: 12


The “brightness” property

  “brightness”               gint

Picture brightness, or more precisely, the black level.

Flags: Read / Write

Default value: 0


The “contrast” property

  “contrast”                 gint

Picture contrast or luma gain.

Flags: Read / Write

Default value: 0


The “hue” property

  “hue”                      gint

Hue or color balance.

Flags: Read / Write

Default value: 0


The “saturation” property

  “saturation”               gint

Picture color saturation or chroma gain.

Flags: Read / Write

Default value: 0


The “crop-height” property

  “crop-height”              guint

The height of the video crop; default is equal to negotiated image height.

Flags: Read / Write

Default value: 0


The “crop-left” property

  “crop-left”                gint

The leftmost (x) coordinate of the video crop; top left corner of image is 0,0.

Flags: Read / Write

Default value: 0


The “crop-top” property

  “crop-top”                 gint

The topmost (y) coordinate of the video crop; top left corner of image is 0,0.

Flags: Read / Write

Default value: 0


The “crop-width” property

  “crop-width”               guint

The width of the video crop; default is equal to negotiated image width.

Flags: Read / Write

Default value: 0


The “min-queued-bufs” property

  “min-queued-bufs”          guint

Minimum number of queued bufs; v4l2sink won't dqbuf if the driver doesn't have more than this number (which normally you shouldn't change).

Flags: Read / Write

Allowed values: <= 16

Default value: 1