ClutterGst.CameraDevice

g ClutterGst.CameraDevice ClutterGst.CameraDevice GObject.Object GObject.Object GObject.Object->ClutterGst.CameraDevice

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_capture_resolution ()

get_name ()

get_node ()

get_supported_resolutions ()

set_capture_resolution (width, height)

Virtual Methods

Inherited:

GObject.Object (7)

do_capture_resolution_changed (width, height)

Properties

Name

Type

Flags

Short Description

element-factory

Gst.ElementFactory

r/w/co

The Gst.ElementFactory for this device

name

str

r/w/co

The device name

node

str

r/w/co

The device node

Signals

Inherited:

GObject.Object (1)

Name

Short Description

capture-resolution-changed

The ::capture-resolution-changed signal is emitted whenever the value of ClutterGst.CameraDevice.get_capture_resolution changes.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class ClutterGst.CameraDevice(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

ClutterGst.CameraDeviceClass

GObject.Object representing a camera device using GStreamer.

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

get_capture_resolution()
Returns:

width:

Pointer to store the current capture resolution width

height:

Pointer to store the current capture resolution height

Return type:

(width: int, height: int)

Retrieve the current capture resolution being used by self.

get_name()
Returns:

the device name.

Return type:

str

Retrieve the name of the self.

get_node()
Returns:

the device node.

Return type:

str

Retrieve the node (location) of the self.

get_supported_resolutions()
Returns:

an array of ClutterGst.VideoResolution with the supported resolutions.

Return type:

[ClutterGst.VideoResolution]

Retrieve the supported resolutions of the self.

set_capture_resolution(width, height)
Parameters:
  • width (int) – The new capture resolution width to use

  • height (int) – The new capture resolution height to use

Set the capture resolution to be used by self.

do_capture_resolution_changed(width, height) virtual
Parameters:
  • width (int) –

  • height (int) –

Signal Details

ClutterGst.CameraDevice.signals.capture_resolution_changed(camera_device, width, height)
Signal Name:

capture-resolution-changed

Flags:

RUN_LAST

Parameters:

The ::capture-resolution-changed signal is emitted whenever the value of ClutterGst.CameraDevice.get_capture_resolution changes.

Property Details

ClutterGst.CameraDevice.props.element_factory
Name:

element-factory

Type:

Gst.ElementFactory

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Gst.ElementFactory for this device.

ClutterGst.CameraDevice.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The device name.

ClutterGst.CameraDevice.props.node
Name:

node

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The device node.