gstlal 1.13.0
Loading...
Searching...
No Matches
pipeio.py File Reference

Go to the source code of this file.

Functions

 python.pipeio.repack_complex_array_to_real (arr)
 python.pipeio.repack_real_array_to_complex (arr)
 python.pipeio.get_unit_size (caps)
 python.pipeio.numpy_dtype_from_caps (caps)
 python.pipeio.format_string_from_numpy_dtype (dtype, formats_dict={ numpy.dtype("float32"):GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.F32), numpy.dtype("float64"):GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.F64), numpy.dtype("int8"):GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.S8), numpy.dtype("uint8"):GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.U8), numpy.dtype("int16"):GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.S16), numpy.dtype("uint16"):GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.U16), numpy.dtype("int32"):GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.S32), numpy.dtype("uint32"):GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.U32), numpy.dtype("complex64") :"Z64LE", numpy.dtype("complex128") :"Z128LE" })
 python.pipeio.caps_from_array (arr, rate=None)
 python.pipeio.array_from_audio_sample (sample)
 python.pipeio.audio_buffer_from_array (arr, timestamp, offset, rate)
 python.pipeio.parse_spectrum_message (message)
 python.pipeio.parse_framesrc_tags (taglist)
 python.pipeio.format_property (prop)
 python.pipeio.to_gvalue_array (arr)
 python.pipeio.is_nested_listlike (obj)
 python.pipeio.is_listlike (obj)

Function Documentation

◆ array_from_audio_sample()

array_from_audio_sample ( sample)

Definition at line 175 of file pipeio.py.

◆ audio_buffer_from_array()

audio_buffer_from_array ( arr,
timestamp,
offset,
rate )

Definition at line 191 of file pipeio.py.

◆ caps_from_array()

caps_from_array ( arr,
rate = None )

Definition at line 171 of file pipeio.py.

◆ format_property()

format_property ( prop)
Formats a property suitable for use in a GStreamer element.
Used to convert 2-dimensional data structures to an appropriate
type as needed, since the mechanics of how they are treated differ
between versions of pygobject. Acts as a no-op depending on the
property type and version of pygobject.

Definition at line 258 of file pipeio.py.

◆ format_string_from_numpy_dtype()

format_string_from_numpy_dtype ( dtype,
formats_dict = { numpy.dtype("float32"): GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.F32), numpy.dtype("float64"): GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.F64), numpy.dtype("int8"): GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.S8), numpy.dtype("uint8"): GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.U8), numpy.dtype("int16"): GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.S16), numpy.dtype("uint16"): GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.U16), numpy.dtype("int32"): GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.S32), numpy.dtype("uint32"): GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.U32), numpy.dtype("complex64") : "Z64LE", numpy.dtype("complex128") : "Z128LE" } )

Definition at line 156 of file pipeio.py.

◆ get_unit_size()

get_unit_size ( caps)

Definition at line 108 of file pipeio.py.

◆ is_listlike()

is_listlike ( obj)
Check if object is a list-like object.

Definition at line 323 of file pipeio.py.

◆ is_nested_listlike()

is_nested_listlike ( obj)
Check if object is a nested list-like object.

Definition at line 307 of file pipeio.py.

◆ numpy_dtype_from_caps()

numpy_dtype_from_caps ( caps)

Definition at line 124 of file pipeio.py.

◆ parse_framesrc_tags()

parse_framesrc_tags ( taglist)

Definition at line 236 of file pipeio.py.

◆ parse_spectrum_message()

parse_spectrum_message ( message)
Parse a "spectrum" message from the lal_whiten element, return a
LAL REAL8FrequencySeries containing the strain spectral density.

Definition at line 209 of file pipeio.py.

◆ repack_complex_array_to_real()

repack_complex_array_to_real ( arr)
Repack a complex-valued array into a real-valued array with twice
as many columns.  Used to set complex arrays as values on elements
that expose them as real-valued array properties (gobject doesn't
understand complex numbers).  The return value is a view into the
input array.

Definition at line 68 of file pipeio.py.

◆ repack_real_array_to_complex()

repack_real_array_to_complex ( arr)
Repack a real-valued array into a complex-valued array with half as
many columns.  Used to retrieve complex arrays from elements that
expose them as real-valued array properties (gobject doesn't
understand complex numbers).  The return value is a view into the
input array.

Definition at line 84 of file pipeio.py.

◆ to_gvalue_array()

to_gvalue_array ( arr)
Converts a list-like object to a GValueArray.

Definition at line 285 of file pipeio.py.