I see the following format is used for the rangeProcHWA:
#define DPC_OBJDET_QFORMAT_RANGE_FFT 17
Can you tell me more about this format? What range of values can it represent?
----------------------------------------------------------------------------------------------------------------------------------
Context:
I'd like to implement a flattop window in mathutils.c as follows:
else if(winType == MATHUTILS_WIN_FLATTOP)
{
//Flat-top window
float a0 = 0.21557895;
float a1 = 0.41663158;
float a2 = 0.277263158;
float a3 = 0.083578947;
float a4 = 0.006947368;
*pWinBuf = (uint32_t) ((oneQFormat * (a0 - a1*cos(phi * winIndx) +
a2*cos(2 * phi * winIndx) - a3*cos(3 * phi * winIndx) + a4*cos(4 * phi * winIndx)) ) + 0.5);
if(*pWinBuf >= oneQFormat)
{
*pWinBuf = oneQFormat - 1;
}
}
But the result is in Q17 format -- so will this work?
----------------------------------------------------------------------------------------------------------------------------------
Thanks!