discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] work function - how it fits in the big picture


From: Charles Swiger
Subject: [Discuss-gnuradio] work function - how it fits in the big picture
Date: Wed, 19 Apr 2006 16:04:27 -0400

I'm stuck on how to loop over the data in calling a primitive 
that "does 12 segments at a time".  What is it that calls the
work function and what sets the value of noutput_items?



If I completely ignore noutput_items and shovel in the code
from 0.9 :

  for (int i = 0; i < atsci_trellis_encoder::NCODERS; i +=
atsci_trellis_encoder::NCODERS){
    d_trellis_encoder.encode(&out[i], &in[i]);

it compiles and runs but every NCODERS blocks there a bunch
of missing or corrupted data.


Anything else, like

  for (int i = 0; i < noutput_items; i +=
atsci_trellis_encoder::NCODERS){
    d_trellis_encoder.encode(&out[i], &in[i]);


just segfaults ;)     I think it needs to relate noutput_items
to NCODERS somehow that I don't understand.

Or, what code in gnuradio-core might shed some light on the
plumbing?

--Chuck






reply via email to

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