Package flumotion :: Package component :: Package effects :: Package videoscale :: Module videoscale :: Class Videoscale
[hide private]

Class Videoscale

source code

extern.log.log.Loggable --+        
                          |        
       feedcomponent.Effect --+    
                              |    
   feedcomponent.PostProcEffect --+
                                  |
                                 Videoscale

I am an effect that can be added to any component that has a video scaler component and a way of changing the size and PAR.

Instance Methods [hide private]
 
__init__(self, name, component, sourcePad, pipeline, width, height, is_square, add_borders=False, width_correction=8, height_correction=0) source code
 
setUIState(self, state)
Set the given UI state on the effect.
source code
 
_setHeight(self, height) source code
 
effect_setHeight(self, height) source code
 
effect_getHeight(self) source code
 
_setWidth(self, width) source code
 
effect_setWidth(self, width) source code
 
effect_getWidth(self) source code
 
effect_setIsSquare(self, is_square) source code
 
effect_getIsSquare(self) source code
 
effect_setAddBorders(self, add_borders) source code
 
effect_getAddBorders(self) source code
 
effect_setPAR(self, par) source code
 
effect_getPAR(self) source code
 
effect_apply(self) source code

Inherited from feedcomponent.PostProcEffect: plug

Inherited from feedcomponent.Effect: getComponent, setComponent

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

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

Inherited from extern.log.log.Loggable: __implemented__

Instance Variables [hide private]

Inherited from feedcomponent.PostProcEffect: component, effectBin, name, pipeline, sourcePad

Method Details [hide private]

__init__(self, name, component, sourcePad, pipeline, width, height, is_square, add_borders=False, width_correction=8, height_correction=0)
(Constructor)

source code 
Parameters:
  • element - the video source element on which the post processing effect will be added
  • pipeline - the pipeline of the element
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)