mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-13 02:40:32 +00:00
adding a pass_through for all data types
This commit is contained in:
parent
25ac8088c1
commit
75ee6c1bf5
@ -50,6 +50,7 @@ include_directories(
|
|||||||
${GLOG_INCLUDE_DIRS}
|
${GLOG_INCLUDE_DIRS}
|
||||||
${GFlags_INCLUDE_DIRS}
|
${GFlags_INCLUDE_DIRS}
|
||||||
${GNURADIO_RUNTIME_INCLUDE_DIRS}
|
${GNURADIO_RUNTIME_INCLUDE_DIRS}
|
||||||
|
${VOLK_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(OPENCL_FOUND)
|
if(OPENCL_FOUND)
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <complex>
|
#include <complex>
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
|
#include <volk/volk.h>
|
||||||
#include "configuration_interface.h"
|
#include "configuration_interface.h"
|
||||||
|
|
||||||
using google::LogMessage;
|
using google::LogMessage;
|
||||||
@ -58,15 +59,19 @@ Pass_Through::Pass_Through(ConfigurationInterface* configuration, std::string ro
|
|||||||
}
|
}
|
||||||
else if(item_type_.compare("short") == 0)
|
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)
|
else if(item_type_.compare("byte") == 0)
|
||||||
{
|
{
|
||||||
item_size_ = sizeof(char);
|
item_size_ = sizeof(int8_t);
|
||||||
}
|
}
|
||||||
else if(item_type_.compare("cbyte") == 0)
|
else if(item_type_.compare("cbyte") == 0)
|
||||||
{
|
{
|
||||||
item_size_ = sizeof(std::complex<unsigned char>);
|
item_size_ = sizeof(lv_8sc_t);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user