cutcutcodec.core.classes.stream.Stream
- class cutcutcodec.core.classes.stream.Stream(node)[source]
A General multimedia stream.
Attributes
- beginningFraction
The stream beginning instant in second (readonly).
- durationFraction or inf
The duration of the flow in seconds, it can be infinite (readonly). This value needs to be accurate.
- indexint
The absolute stream index from the parent node (0 to n-1) (readonly).
- is_time_continuousboolean
True if the data is continuous in the time domain, False if it is discrete (readonly).
- nodecutcutcodec.core.classes.node.Node
The node where this stream comes from (readonly). Allows back propagation in the assembly graph.
- node_maincutcutcodec.core.classes.node.Node
The node used for the compilation. This node has the same output_streams as
nodebut not nescessary the same input_streams and te same properties. It can be used for factorisation (read and write).
Initialise and create the class.
Parameters
- nodecutcutcodec.core.classes.node.Node
The node where this stream comes from. The audit must be conducted in the children’s classes. It is not done here in order to avoid cyclic imports.
- node_maincutcutcodec.core.classes.node.Node
In the case this streams comes from
cutcutcodec.core.filter.meta_filter.MetaFilter, node_main is the meta filter while node is the subgraph of the meta-filter.
- abstract property duration: Fraction | float
Return the duration of the flow in seconds, positive fraction or infinite.
- abstract property is_time_continuous: bool
Return True if the data is continuous in the time domain, False if it is discrete.
- property node
Return the node where this stream comes from.
- property node_main
Return the global node, can be an alias to the classic node.