Package flumotion :: Package component :: Package producers :: Package playlist :: Module smartscale :: Class SmartVideoScale
[hide private]

Class SmartVideoScale

source code

       object --+                
  gobject.GObject --+            
           gst.Object --+        
              gst.Element --+    
           object --+       |    
                    |       |    
   gobject.GInterface --+   |    
                        |   |    
??.__main__.GstChildProxy --+    
                      gst.Bin --+

Element to do proper videoscale. Keeps Display Aspect Ratio. Adds black borders if needed.

Instance Methods [hide private]
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
set_caps(self, caps)
set the outgoing caps, because gst.BaseTransform is full of CRACK !
source code
_sinkSetCaps(self, unused_pad, caps) source code
_srcSetCaps(self, unused_pad, caps) source code
_sinkPadCapsNotifyCb(self, pad, unused_prop) source code
_srcPadCapsNotifyCb(self, pad, unused_prop) source code
_getValuesFromCaps(self, caps, force=False)
returns (width, height, par, dar) from given caps.
source code
Calculate the new values to set on capsfilter and videobox.
source code

Inherited from gst.Bin: __iter__, add, add_many, do_add_element, do_handle_message, do_remove_element, elements, find_unconnected_pad, get_by_interface, get_by_name, iterate_all_by_interface, iterate_sources, recurse, remove, remove_many, sinks, sorted

Inherited from gst.Element: abort_state, add_pad, change_state, continue_state, create_all_pads, do_change_state, do_get_index, do_provide_clock, do_query, do_release_pad, do_request_new_pad, do_send_event, do_set_bus, do_set_clock, do_set_index, flags, found_tags, found_tags_for_pad, get_base_time, get_bus, get_clock, get_compatible_pad, get_compatible_pad_template, get_factory, get_index, get_pad, get_pad_template, get_pad_template_list, get_query_types, get_request_pad, get_state, get_static_pad, implements_interface, is_indexable, is_locked_state, link, link_filtered, link_pads, link_pads_filtered, lost_state, no_more_pads, pads, post_message, provide_clock, provides_clock, query, query_convert, query_duration, query_position, release_request_pad, remove_pad, requires_clock, seek, seek_simple, send_event, set_base_time, set_bus, set_clock, set_index, set_locked_state, set_state, sink_pads, src_pads, sync_state_with_parent, unlink, unlink_pads

Inherited from gst.Object: __repr__, __str__, debug, default_error, error, get_name, get_name_prefix, get_parent, get_path_string, has_ancestor, info, log, set_flag, set_name, set_name_prefix, set_parent, set_property, unparent, unset_flag, warning

Inherited from gobject.GObject: __cmp__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, stop_emission, thaw_notify, weak_ref

Inherited from object: __getattribute__, __reduce__, __reduce_ex__

Class Variables [hide private]
  __gtype__ = <GType flumotion+component+producers+playlist+smar...
Properties [hide private]

Inherited from gst.Object: __gstrefcount__

Inherited from gobject.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]


source code 

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

Overrides: object.__init__
(inherited documentation)

_getValuesFromCaps(self, caps, force=False)

source code 

returns (width, height, par, dar) from given caps. If caps are None, or not negotiated, it will return (-1, -1, gst.Fraction(1,1), gst.Fraction(1,1))

Class Variable Details [hide private]


<GType flumotion+component+producers+playlist+smartscale+SmartVideoSca\
le (16420