discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] splitting bits


From: Steven Clark
Subject: Re: [Discuss-gnuradio] splitting bits
Date: Thu, 10 Jan 2008 17:48:10 -0500

> You might be able to run unpacked_to_packed followed by
> packed_to_unpacked to get what you want.  It's ugly, but you don't
> have to write any code ;)
>
>   pack = gr.unpacked_to_packed_ss(2, gr.GR_MSB_FIRST)
>   unpack = gr.packed_to_unpacked_ss(1, gr.GR_MSB_FIRST)
>
> Eric
>

Aha! Shame on me for not thinking of that. If the number of input
shorts is not a multiple of 8, some will be lost from the end, but I
can live with that.

Thanks Eric.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]