|
From: | Ron Economos |
Subject: | Re: [Discuss-gnuradio] Maximum input items consumed on each input stream |
Date: | Fri, 30 Aug 2019 18:52:47 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
If you use set_output_multiple(), you don't have to check the input buffer. The block will only execute if there are a multiple of the value used in set_output_multiple() items available. For example, if set_output_multiple() is set to 256, the block will only execute if noutput_items is at least 256, but it could also be 512, 768, 1024, 1280, 1536, etc. Since forecast() sets ninput_items_required to noutput_items, the
same number of items appears on the input buffer. Here's a dummy block that just copies input to output to show the
structure. The loop in general_work() allows for any value of
CHUNK_SIZE to work properly. With a size of 8900, the loop will
typically only execute once. #ifdef HAVE_CONFIG_H Ron On 8/30/19 15:58, Laura Arjona wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |