gi-gst-1.0.12: GStreamer bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gst.Objects.Device

Contents

Description

Device are objects representing a device, they contain relevant metadata about the device, such as its class and the Caps representing the media types it can produce or handle.

Device are created by DeviceProvider objects which can be aggregated by DeviceMonitor objects.

Synopsis

Exported types

newtype Device Source #

Constructors

Device (ManagedPtr Device) 

Instances

GObject Device Source # 

Methods

gobjectType :: Device -> IO GType #

IsObject Device Source # 
IsObject Device Source # 
IsDevice Device Source # 
((~) * info (ResolveDeviceMethod t Device), MethodInfo * info Device p) => IsLabel t (Device -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Device -> p #

((~) * info (ResolveDeviceMethod t Device), MethodInfo * info Device p) => IsLabelProxy t (Device -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Device -> p #

HasAttributeList * Device Source # 
type AttributeList Device Source # 
type SignalList Device Source # 

Methods

createElement

deviceCreateElement Source #

Arguments

:: (HasCallStack, MonadIO m, IsDevice a) 
=> a

device: a Device

-> Maybe Text

name: name of new element, or Nothing to automatically create a unique name.

-> m Element

Returns: a new Element configured to use this device

Creates the element with all of the required parameters set to use this device.

Since: 1.4

getCaps

data DeviceGetCapsMethodInfo Source #

Instances

((~) * signature (m Caps), MonadIO m, IsDevice a) => MethodInfo * DeviceGetCapsMethodInfo a signature Source # 

deviceGetCaps Source #

Arguments

:: (HasCallStack, MonadIO m, IsDevice a) 
=> a

device: a Device

-> m Caps

Returns: The Caps supported by this device. Unref with gst_caps_unref() when done.

Getter for the Caps that this device supports.

Since: 1.4

getDeviceClass

deviceGetDeviceClass Source #

Arguments

:: (HasCallStack, MonadIO m, IsDevice a) 
=> a

device: a Device

-> m Text

Returns: The device class. Free with free after use.

Gets the "class" of a device. This is a "/" separated list of classes that represent this device. They are a subset of the classes of the DeviceProvider that produced this device.

Since: 1.4

getDisplayName

deviceGetDisplayName Source #

Arguments

:: (HasCallStack, MonadIO m, IsDevice a) 
=> a

device: a Device

-> m Text

Returns: The device name. Free with free after use.

Gets the user-friendly name of the device.

Since: 1.4

getProperties

deviceGetProperties Source #

Arguments

:: (HasCallStack, MonadIO m, IsDevice a) 
=> a

device: a Device

-> m Structure

Returns: The extra properties or Nothing when there are none. Free with structureFree after use.

Gets the extra properties of a device.

Since: 1.6

hasClasses

data DeviceHasClassesMethodInfo Source #

Instances

((~) * signature (Text -> m Bool), MonadIO m, IsDevice a) => MethodInfo * DeviceHasClassesMethodInfo a signature Source # 

deviceHasClasses Source #

Arguments

:: (HasCallStack, MonadIO m, IsDevice a) 
=> a

device: a Device

-> Text

classes: a "/"-separated list of device classes to match, only match if all classes are matched

-> m Bool

Returns: True if device matches.

Check if device matches all of the given classes

Since: 1.4

hasClassesv

data DeviceHasClassesvMethodInfo Source #

Instances

((~) * signature ([Text] -> m Bool), MonadIO m, IsDevice a) => MethodInfo * DeviceHasClassesvMethodInfo a signature Source # 

deviceHasClassesv Source #

Arguments

:: (HasCallStack, MonadIO m, IsDevice a) 
=> a

device: a Device

-> [Text]

classes: a Nothing terminated array of classes to match, only match if all classes are matched

-> m Bool

Returns: True if device matches.

Check if factory matches all of the given classes

Since: 1.4

reconfigureElement

deviceReconfigureElement Source #

Arguments

:: (HasCallStack, MonadIO m, IsDevice a, IsElement b) 
=> a

device: a Device

-> b

element: a Element

-> m Bool

Returns: True if the element could be reconfigured to use this device, False otherwise.

Tries to reconfigure an existing element to use the device. If this function fails, then one must destroy the element and create a new one using deviceCreateElement.

Note: This should only be implemented for elements can change their device in the PLAYING state.

Since: 1.4

Properties

caps

data DeviceCapsPropertyInfo Source #

Instances

AttrInfo DeviceCapsPropertyInfo Source # 
type AttrOrigin DeviceCapsPropertyInfo Source # 
type AttrLabel DeviceCapsPropertyInfo Source # 
type AttrGetType DeviceCapsPropertyInfo Source # 
type AttrBaseTypeConstraint DeviceCapsPropertyInfo Source # 
type AttrSetTypeConstraint DeviceCapsPropertyInfo Source # 
type AttrAllowedOps DeviceCapsPropertyInfo Source # 

deviceClass

data DeviceDeviceClassPropertyInfo Source #

Instances

AttrInfo DeviceDeviceClassPropertyInfo Source # 
type AttrOrigin DeviceDeviceClassPropertyInfo Source # 
type AttrLabel DeviceDeviceClassPropertyInfo Source # 
type AttrGetType DeviceDeviceClassPropertyInfo Source # 
type AttrBaseTypeConstraint DeviceDeviceClassPropertyInfo Source # 
type AttrSetTypeConstraint DeviceDeviceClassPropertyInfo Source # 
type AttrAllowedOps DeviceDeviceClassPropertyInfo Source # 

displayName

data DeviceDisplayNamePropertyInfo Source #

Instances

AttrInfo DeviceDisplayNamePropertyInfo Source # 
type AttrOrigin DeviceDisplayNamePropertyInfo Source # 
type AttrLabel DeviceDisplayNamePropertyInfo Source # 
type AttrGetType DeviceDisplayNamePropertyInfo Source # 
type AttrBaseTypeConstraint DeviceDisplayNamePropertyInfo Source # 
type AttrSetTypeConstraint DeviceDisplayNamePropertyInfo Source # 
type AttrAllowedOps DeviceDisplayNamePropertyInfo Source # 

properties

data DevicePropertiesPropertyInfo Source #

Instances

AttrInfo DevicePropertiesPropertyInfo Source # 
type AttrOrigin DevicePropertiesPropertyInfo Source # 
type AttrLabel DevicePropertiesPropertyInfo Source # 
type AttrGetType DevicePropertiesPropertyInfo Source # 
type AttrBaseTypeConstraint DevicePropertiesPropertyInfo Source # 
type AttrSetTypeConstraint DevicePropertiesPropertyInfo Source # 
type AttrAllowedOps DevicePropertiesPropertyInfo Source # 

Signals

removed

type C_DeviceRemovedCallback = Ptr () -> Ptr () -> IO () Source #