[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] "Variable" bit rate output block
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] "Variable" bit rate output block |
Date: |
Tue, 6 Jun 2006 22:58:00 -0700 |
User-agent: |
Mutt/1.5.9i |
On Tue, Jun 06, 2006 at 10:10:40PM -0700, Johnathan Corgan wrote:
> Johnathan Corgan wrote:
>
> > What I have in mind is something like gr.simple_squelch_cc, but instead
> > of outputting zeros when the average power is below the threshold,
> > doesn't output anything at all.
>
> After further reading, it seems like the strategy here would be to have
> the general_work() method the block:
>
> 1) Only copy data from input to output when the power threshold is met.
>
> 2) When the power threshold is not met, skip over the input items but
> don't advance the output index.
>
> 2) Call consume() for the entire input buffer.
>
> 3) Return from general_work() with the actual number of items copied,
> which will always be equal or less than the input buffer size.
>
> Would this work?
In general, yes.
Eric