Loading...
Searching...
No Matches
Converters.h
Go to the documentation of this file.
#pragma once
#include <SoapySDR/Config.h>
#include <SoapySDR/Errors.h>
#include <SoapySDR/Types.h>
#include <SoapySDR/Constants.h>
typedef void (*SoapySDRConverterFunction)(const void *, void *, const size_t, const double);
typedef enum
{
SOAPY_SDR_CONVERTER_GENERIC = 0,
SOAPY_SDR_CONVERTER_VECTORIZED = 3,
SOAPY_SDR_CONVERTER_CUSTOM = 5
} SoapySDRConverterFunctionPriority;
#ifdef __cplusplus
extern "C"
{
#endif
SOAPY_SDR_API char **SoapySDRConverter_listTargetFormats(const char *sourceFormat, size_t *length);
SOAPY_SDR_API char **SoapySDRConverter_listSourceFormats(const char *targetFormat, size_t *length);
SOAPY_SDR_API SoapySDRConverterFunctionPriority *SoapySDRConverter_listPriorities(const char *sourceFormat, const char *targetFormat, size_t *length);
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunction(const char *sourceFormat, const char *targetFormat);
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunctionWithPriority(const char *sourceFormat, const char *targetFormat, const SoapySDRConverterFunctionPriority priority);
SOAPY_SDR_API char **SoapySDRConverter_listAvailableSourceFormats(size_t *length);
#ifdef __cplusplus
}
#endif
Config.h
SOAPY_SDR_API
#define SOAPY_SDR_API
Definition Config.h:41
Constants.h
SoapySDRConverter_getFunction
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunction(const char *sourceFormat, const char *targetFormat)
SoapySDRConverterFunctionPriority
SoapySDRConverterFunctionPriority
Definition Converters.h:29
SOAPY_SDR_CONVERTER_CUSTOM
@ SOAPY_SDR_CONVERTER_CUSTOM
Custom user re-implementation. Max priority.
Definition Converters.h:37
SOAPY_SDR_CONVERTER_GENERIC
@ SOAPY_SDR_CONVERTER_GENERIC
Usual C for-loops, shifts, multiplies, etc. Min priority.
Definition Converters.h:31
SOAPY_SDR_CONVERTER_VECTORIZED
@ SOAPY_SDR_CONVERTER_VECTORIZED
Vectorized configurations such as SIMD.
Definition Converters.h:34
SoapySDRConverter_getFunctionWithPriority
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunctionWithPriority(const char *sourceFormat, const char *targetFormat, const SoapySDRConverterFunctionPriority priority)
SoapySDRConverterFunction
void(* SoapySDRConverterFunction)(const void *, void *, const size_t, const double)
Definition Converters.h:23
SoapySDRConverter_listTargetFormats
SOAPY_SDR_API char ** SoapySDRConverter_listTargetFormats(const char *sourceFormat, size_t *length)
SoapySDRConverter_listAvailableSourceFormats
SOAPY_SDR_API char ** SoapySDRConverter_listAvailableSourceFormats(size_t *length)
SoapySDRConverter_listPriorities
SOAPY_SDR_API SoapySDRConverterFunctionPriority * SoapySDRConverter_listPriorities(const char *sourceFormat, const char *targetFormat, size_t *length)
SoapySDRConverter_listSourceFormats
SOAPY_SDR_API char ** SoapySDRConverter_listSourceFormats(const char *targetFormat, size_t *length)
Errors.h
Types.h