ClutterGstCameraDevice

ClutterGstCameraDevice — GObject representing a camera device using GStreamer.

Synopsis

struct              ClutterGstCameraDevice;
struct              ClutterGstCameraDeviceClass;
void                clutter_gst_camera_device_get_capture_resolution
                                                        (ClutterGstCameraDevice *device,
                                                         gint *width,
                                                         gint *height);
const gchar *       clutter_gst_camera_device_get_name  (ClutterGstCameraDevice *device);
const gchar *       clutter_gst_camera_device_get_node  (ClutterGstCameraDevice *device);
const GPtrArray *   clutter_gst_camera_device_get_supported_resolutions
                                                        (ClutterGstCameraDevice *device);
void                clutter_gst_camera_device_set_capture_resolution
                                                        (ClutterGstCameraDevice *device,
                                                         gint width,
                                                         gint height);

Object Hierarchy

  GObject
   +----ClutterGstCameraDevice

Properties

  "element-factory"          GstElementFactory*    : Read / Write / Construct Only
  "name"                     gchar*                : Read / Write / Construct Only
  "node"                     gchar*                : Read / Write / Construct Only

Signals

  "capture-resolution-changed"                     : Run Last

Description

ClutterGstCameraDevice is a GObject representing a camera device using GStreamer.

Details

struct ClutterGstCameraDevice

struct ClutterGstCameraDevice;

GObject representing a camera device using GStreamer.

The ClutterGstCameraDevice structure contains only private data and should not be accessed directly.


struct ClutterGstCameraDeviceClass

struct ClutterGstCameraDeviceClass {
};

Base class for ClutterGstCameraDevice.


clutter_gst_camera_device_get_capture_resolution ()

void                clutter_gst_camera_device_get_capture_resolution
                                                        (ClutterGstCameraDevice *device,
                                                         gint *width,
                                                         gint *height);

Retrieve the current capture resolution being used by device.

device :

a ClutterGstCameraDevice

width :

Pointer to store the current capture resolution width

height :

Pointer to store the current capture resolution height

clutter_gst_camera_device_get_name ()

const gchar *       clutter_gst_camera_device_get_name  (ClutterGstCameraDevice *device);

Retrieve the name of the device.

device :

a ClutterGstCameraDevice

Returns :

the device name. [transfer none]

clutter_gst_camera_device_get_node ()

const gchar *       clutter_gst_camera_device_get_node  (ClutterGstCameraDevice *device);

Retrieve the node (location) of the device.

device :

a ClutterGstCameraDevice

Returns :

the device node. [transfer none]

clutter_gst_camera_device_get_supported_resolutions ()

const GPtrArray *   clutter_gst_camera_device_get_supported_resolutions
                                                        (ClutterGstCameraDevice *device);

Retrieve the supported resolutions of the device.

device :

a ClutterGstCameraDevice

Returns :

an array of ClutterGstVideoResolution with the supported resolutions. [transfer none][element-type ClutterGst.VideoResolution]

clutter_gst_camera_device_set_capture_resolution ()

void                clutter_gst_camera_device_set_capture_resolution
                                                        (ClutterGstCameraDevice *device,
                                                         gint width,
                                                         gint height);

Set the capture resolution to be used by device.

device :

a ClutterGstCameraDevice

width :

The new capture resolution width to use

height :

The new capture resolution height to use

Property Details

The "element-factory" property

  "element-factory"          GstElementFactory*    : Read / Write / Construct Only

The GstElementFactory for this device.


The "name" property

  "name"                     gchar*                : Read / Write / Construct Only

The device name.

Default value: NULL


The "node" property

  "node"                     gchar*                : Read / Write / Construct Only

The device node.

Default value: NULL

Signal Details

The "capture-resolution-changed" signal

void                user_function                      (ClutterGstCameraDevice *device,
                                                        gint                    width,
                                                        gint                    height,
                                                        gpointer                user_data)      : Run Last

The ::capture-resolution-changed signal is emitted whenever the value of clutter_gst_camera_device_get_capture_resolution changes.

device :

the device which received the signal

width :

The new width

height :

The new height

user_data :

user data set when the signal handler was connected.