[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 04/10: Bring fix from other pfb_arb_resampl
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 04/10: Bring fix from other pfb_arb_resampler_* variants |
Date: |
Fri, 28 Aug 2015 19:19:49 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 9a1dcdc75aa7827f3a997c5c31deb2f877d53d5b
Author: Doug Geiger <address@hidden>
Date: Thu Aug 27 11:17:30 2015 -0400
Bring fix from other pfb_arb_resampler_* variants
For some reason the _fff version of pfb_arb_resampler didn't have this
fix applied before.
---
gr-filter/lib/pfb_arb_resampler_fff_impl.cc | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/gr-filter/lib/pfb_arb_resampler_fff_impl.cc
b/gr-filter/lib/pfb_arb_resampler_fff_impl.cc
index e82ef31..8602a2f 100644
--- a/gr-filter/lib/pfb_arb_resampler_fff_impl.cc
+++ b/gr-filter/lib/pfb_arb_resampler_fff_impl.cc
@@ -33,20 +33,19 @@ namespace gr {
pfb_arb_resampler_fff::sptr
pfb_arb_resampler_fff::make(float rate,
- const std::vector<float> &taps,
- unsigned int filter_size)
+ const std::vector<float> &taps,
+ unsigned int filter_size)
{
- return gnuradio::get_initial_sptr
- (new pfb_arb_resampler_fff_impl(rate, taps, filter_size));
+ return gnuradio::get_initial_sptr(new pfb_arb_resampler_fff_impl(rate,
taps, filter_size));
}
pfb_arb_resampler_fff_impl::pfb_arb_resampler_fff_impl(float rate,
- const
std::vector<float> &taps,
- unsigned int
filter_size)
- : block("pfb_arb_resampler_fff",
- io_signature::make(1, 1, sizeof(float)),
- io_signature::make(1, 1, sizeof(float)))
+ const
std::vector<float> &taps,
+ unsigned int
filter_size)
+ : block("pfb_arb_resampler_fff",
+ io_signature::make(1, 1, sizeof(float)),
+ io_signature::make(1, 1, sizeof(float)))
{
d_updated = false;
@@ -68,7 +67,7 @@ namespace gr {
unsigned ninputs = ninput_items_required.size();
if(noutput_items / relative_rate() < 1) {
for(unsigned i = 0; i < ninputs; i++)
- ninput_items_required[i] = max_output_buffer(i)-1;
+ ninput_items_required[i] = relative_rate() + history() - 1;
}
else {
for(unsigned i = 0; i < ninputs; i++)
@@ -158,9 +157,9 @@ namespace gr {
int
pfb_arb_resampler_fff_impl::general_work(int noutput_items,
- gr_vector_int &ninput_items,
- gr_vector_const_void_star
&input_items,
- gr_vector_void_star &output_items)
+ gr_vector_int &ninput_items,
+ gr_vector_const_void_star
&input_items,
+ gr_vector_void_star &output_items)
{
gr::thread::scoped_lock guard(d_mutex);
@@ -168,8 +167,8 @@ namespace gr {
float *out = (float*)output_items[0];
if(d_updated) {
- d_updated = false;
- return 0; // history requirements may have changed.
+ d_updated = false;
+ return 0; // history requirements may have changed.
}
int nitems_read;
- [Commit-gnuradio] [gnuradio] branch maint updated (22e2f1a -> d063b05), git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 07/10: Merge remote-tracking branch 'geiger/fix_pfb_arb_resampler_fff' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 02/10: grc: fix for reverted commit f184ccf 'better Popen argument handling...', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 04/10: Bring fix from other pfb_arb_resampler_* variants,
git <=
- [Commit-gnuradio] [gnuradio] 05/10: cmake: Fix warning related to GrSetupQt4 in modern CMake, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 03/10: grc: fix printing empty traceback when a block is missing, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 09/10: Fixes Coverity Defect 1229872: Memory leak in `atsci_equalizer_lms2` DTOR, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 01/10: gr-zeromq: fix python examples, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 08/10: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 10/10: Merge remote-tracking branch 'bhilburn/cov1229872' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 06/10: grc/blocks: Fix XML RPC server to allow proper flowgraph termination, git, 2015/08/28