removed short_int2float

- not used
- in documentation there was incorrectly stated that in and out can
overlap; perhaps a C&P from int2float doc because it doesn' seem to be
true - first written float overrides second read short so on
This commit is contained in:
Martin Pulec
2023-09-06 12:51:35 +02:00
parent 4732fb7724
commit fd3c7afe8f
2 changed files with 0 additions and 18 deletions

View File

@@ -496,17 +496,6 @@ void int2float(char *out, const char *in, int len)
}
}
void short_int2float(char *out, const char *in, int in_len)
{
const auto *ini = reinterpret_cast<const int16_t *>(in);
float *outf = (float *)(void *) out;
int items = in_len / sizeof(int16_t);
while(items-- > 0) {
*outf++ = (float) *ini++ / SHRT_MAX;
}
}
/**
* Converts int8_t samples to uint8_t by adding 128 (standard
* shifted zero unsigned samples).

View File

@@ -127,13 +127,6 @@ void float2int(char *out, const char *in, int len);
* @param[in] in 4-byte aligned input buffer
*/
void int2float(char *out, const char *in, int len);
/**
* This fuction converts from int16_t to normalized float
* Input and output data may overlap.
* @param[out] out 4-byte aligned output buffer
* @param[in] in 4-byte aligned input buffer
*/
void short_int2float(char *out, const char *in, int in_len);
void signed2unsigned(char *out, const char *in, int in_len);