SoapySDR 0.8.1-ARCH
Vendor and platform neutral SDR interface library
Loading...
Searching...
No Matches
Converters.h
Go to the documentation of this file.
1
10
11#pragma once
12#include <SoapySDR/Config.h>
13#include <SoapySDR/Errors.h>
14#include <SoapySDR/Types.h>
15#include <SoapySDR/Constants.h>
16
23typedef void (*SoapySDRConverterFunction)(const void *, void *, const size_t, const double);
24
39
40#ifdef __cplusplus
41extern "C"
42{
43#endif
44
51SOAPY_SDR_API char **SoapySDRConverter_listTargetFormats(const char *sourceFormat, size_t *length);
52
59SOAPY_SDR_API char **SoapySDRConverter_listSourceFormats(const char *targetFormat, size_t *length);
60
68SOAPY_SDR_API SoapySDRConverterFunctionPriority *SoapySDRConverter_listPriorities(const char *sourceFormat, const char *targetFormat, size_t *length);
69
76SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunction(const char *sourceFormat, const char *targetFormat);
77
85
92
93#ifdef __cplusplus
94}
95#endif
#define SOAPY_SDR_API
Definition Config.h:41
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunction(const char *sourceFormat, const char *targetFormat)
SoapySDRConverterFunctionPriority
Definition Converters.h:29
@ SOAPY_SDR_CONVERTER_CUSTOM
Custom user re-implementation. Max priority.
Definition Converters.h:37
@ SOAPY_SDR_CONVERTER_GENERIC
Usual C for-loops, shifts, multiplies, etc. Min priority.
Definition Converters.h:31
@ SOAPY_SDR_CONVERTER_VECTORIZED
Vectorized configurations such as SIMD.
Definition Converters.h:34
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunctionWithPriority(const char *sourceFormat, const char *targetFormat, const SoapySDRConverterFunctionPriority priority)
void(* SoapySDRConverterFunction)(const void *, void *, const size_t, const double)
Definition Converters.h:23
SOAPY_SDR_API char ** SoapySDRConverter_listTargetFormats(const char *sourceFormat, size_t *length)
SOAPY_SDR_API char ** SoapySDRConverter_listAvailableSourceFormats(size_t *length)
SOAPY_SDR_API SoapySDRConverterFunctionPriority * SoapySDRConverter_listPriorities(const char *sourceFormat, const char *targetFormat, size_t *length)
SOAPY_SDR_API char ** SoapySDRConverter_listSourceFormats(const char *targetFormat, size_t *length)