1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-18 11:09:56 +00:00

adding a pass_through for all data types

This commit is contained in:
Carles Fernandez 2015-02-04 01:11:20 +01:00
parent 25ac8088c1
commit 75ee6c1bf5
2 changed files with 9 additions and 3 deletions

View File

@ -50,6 +50,7 @@ include_directories(
${GLOG_INCLUDE_DIRS}
${GFlags_INCLUDE_DIRS}
${GNURADIO_RUNTIME_INCLUDE_DIRS}
${VOLK_INCLUDE_DIRS}
)
if(OPENCL_FOUND)

View File

@ -34,6 +34,7 @@
#include <iostream>
#include <complex>
#include <glog/logging.h>
#include <volk/volk.h>
#include "configuration_interface.h"
using google::LogMessage;
@ -58,15 +59,19 @@ Pass_Through::Pass_Through(ConfigurationInterface* configuration, std::string ro
}
else if(item_type_.compare("short") == 0)
{
item_size_ = sizeof(short);
item_size_ = sizeof(int16_t);
}
else if(item_type_.compare("cshort") == 0)
{
item_size_ = sizeof(lv_16sc_t);
}
else if(item_type_.compare("byte") == 0)
{
item_size_ = sizeof(char);
item_size_ = sizeof(int8_t);
}
else if(item_type_.compare("cbyte") == 0)
{
item_size_ = sizeof(std::complex<unsigned char>);
item_size_ = sizeof(lv_8sc_t);
}
else
{