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-bytes
have to be appended. For example: Input y Bytes -------> Output (y Bytes * x) + c ; where y and x are integers
and 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



_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to