Package flumotion :: Package component :: Package effects :: Package colorbalance :: Module colorbalance :: Class Colorbalance
[hide private]

Class Colorbalance

source code

extern.log.log.Loggable --+    
                          |    
       feedcomponent.Effect --+
                              |
                             Colorbalance

Instance Methods [hide private]
 
__init__(self, name, element, hue, saturation, brightness, contrast, pipeline=None) source code
 
setUIState(self, state)
Set the given UI state on the effect.
source code
 
_bus_message_received_cb(self, bus, message, hue, saturation, brightness, contrast) source code
 
effect_setColorBalanceProperty(self, which, value)
Set a color balance property.
source code
 
_setInitialColorBalance(self, hue, saturation, brightness, contrast) source code

Inherited from feedcomponent.Effect: getComponent, setComponent

Inherited from extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  logCategory = 'colorbalance'
Implementors can provide a category to log their messages under.

Inherited from extern.log.log.Loggable: __implemented__, __provides__

Instance Variables [hide private]

Inherited from feedcomponent.Effect: component, name

Method Details [hide private]

__init__(self, name, element, hue, saturation, brightness, contrast, pipeline=None)
(Constructor)

source code 
Parameters:
  • element - the GStreamer element supporting the colorbalance interface
  • hue (float) - the colorbalance hue, as a percentage
  • saturation (float) - the colorbalance saturation, as a percentage
  • brightness (float) - the colorbalance brightness, as a percentage
  • contrast (float) - the colorbalance contrast, as a percentage
  • pipeline (gst.Pipeline) - the pipeline
Overrides: feedcomponent.Effect.__init__

setUIState(self, state)

source code 

Set the given UI state on the effect. This method is ideal for adding keys to the UI state.

Parameters:
  • state - the UI state for the component to use.
Overrides: feedcomponent.Effect.setUIState
(inherited documentation)

_bus_message_received_cb(self, bus, message, hue, saturation, brightness, contrast)

source code 
Parameters:
  • bus - the message bus sending the message
  • message - the message received

effect_setColorBalanceProperty(self, which, value)

source code 

Set a color balance property.

Parameters:
  • which - which property to change
  • value - what value to set it to (float between 0.0 and 100.0)

    Returns: the actual percentage it was set to