Package sparked :: Package hardware :: Module video :: Class V4LDevice
[hide private]
[frames] | no frames]

Class V4LDevice

source code

object --+
         |
        V4LDevice

Represents a V4L video input device.

Instance Methods [hide private]
 
__init__(self, device, v4l2version=2)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_probe(self)
Find out the resolutions of the device
source code
 
setDevice(self, device, v4l2version=2)
Set the device
source code
 
getHighestResolution(self, mime=None)
Optionally given a mime, get the highest possible resolution, without taking framerate into account.
source code
 
getFastestResolution(self, mime=None)
Optionally given a mime, get the fastest possible resolution, without taking resolution into account.
source code
 
getBestMime(self)
Return the best supported video mime type.
source code
 
getResolution(self, resolution, mime=None) source code
 
getPipeline(self, outputMime=None, resolution='auto')
Construct a string which is parsable as the "input" part of the pipeline for a gstreamer camera.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  resolutions

Inherited from object: __class__

Method Details [hide private]

__init__(self, device, v4l2version=2)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

getHighestResolution(self, mime=None)

source code 

Optionally given a mime, get the highest possible resolution, without taking framerate into account. Returns a resolution dict.

getFastestResolution(self, mime=None)

source code 

Optionally given a mime, get the fastest possible resolution, without taking resolution into account. Returns a resolution dict.


Property Details [hide private]

resolutions

Get Method:
unreachable.resolutions(self)