|
From: | Martin Dvh |
Subject: | Re: [Discuss-gnuradio] Different input/output rate |
Date: | Thu, 25 Aug 2005 17:49:15 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030823 |
Hi Holger,
The input of my signal block is a bytestream b. The output should also be a bytestream, but with a different number of outgoing items(not a multiple of b). In other words, after the transformation of the inputstream some extra-byteshave to be appended. For example: Input y Bytes -------> Output (y Bytes * x) + c ; where y and x are integersand c Overhead-Bytes: independent from input items The number of input items is not fixed. Is this possible or must the number of output items always be a multiple of the number of input items?
Yes, this is possible. You have to extend from gr_block in stead of gr_sync_block. You have to implement your own forecast block and call consume_all yourself. Look at the gr_simple_framer block. It does just this. (src/lib/general/gr_simple_framer.[cc,h,i)] Greetings, Martin
[Prev in Thread] | Current Thread | [Next in Thread] |