gnuradio.gr: Slicing and Dicing Streams

gnuradio.gr.deinterleave(size_t itemsize) → gr_deinterleave_sptr

deinterleave a single input into N outputs

gnuradio.gr.head(size_t sizeof_stream_item, unsigned long long nitems) → gr_head_sptr

copies the first N items to the output then signals done

Useful for building test cases

gr_head_sptr.reset(self)
gnuradio.gr.interleave(size_t itemsize) → gr_interleave_sptr

interleave N inputs to a single output

gnuradio.gr.keep_one_in_n(size_t itemsize, int n) → gr_keep_one_in_n_sptr

decimate a stream, keeping one item out of every n.

gr_keep_one_in_n_sptr.set_n(self, int n)
gnuradio.gr.skiphead(size_t itemsize, uint64_t nitems_to_skip) → gr_skiphead_sptr

skips the first N items, from then on copies items to the output

Useful for building test cases and sources which have metadata or junk at the start

gnuradio.gr.stream_to_streams(size_t itemsize, size_t nstreams) → gr_stream_to_streams_sptr

convert a stream of items into a N streams of items

Converts a stream of N items into N streams of 1 item. Repeat ad infinitum.

gnuradio.gr.stream_to_vector(size_t itemsize, size_t nitems_per_block) → gr_stream_to_vector_sptr

convert a stream of items into a stream of blocks containing nitems_per_block

gnuradio.gr.streams_to_stream(size_t itemsize, size_t nstreams) → gr_streams_to_stream_sptr

Convert N streams of 1 item into a 1 stream of N items

Convert N streams of 1 item into 1 stream of N items. Repeat ad infinitum.

gnuradio.gr.streams_to_vector(size_t itemsize, size_t nstreams) → gr_streams_to_vector_sptr

convert N streams of items to 1 stream of vector length N

gnuradio.gr.vector_to_stream(size_t itemsize, size_t nitems_per_block) → gr_vector_to_stream_sptr

convert a stream of blocks of nitems_per_block items into a stream of items

gnuradio.gr.vector_to_streams(size_t itemsize, size_t nstreams) → gr_vector_to_streams_sptr

Convert 1 stream of vectors of length N to N streams of items.

Previous topic

gnuradio.gr: Signal Sinks

Next topic

gnuradio.gr: Signal Sources

This Page