p_dest is used to set the height of the column, and it is used
as a variable defined from zero to 2^16 - 1. It is therefore
considered in the rest of the program as an unsigned int 16.
Moreover, the value that we put inside are a sum of two squared
real value, so they are necessarily positive.
(cherry picked from commit
94a8d152eadd53073305c95d221eca7623b4ed6c)
Gbp-Pq: Name 0016-spectrogram-convert-int16-to-unsigned-for-correct-ra.patch
float p_output[FFT_BUFFER_SIZE]; /* Raw FFT Result */
int16_t p_buffer1[FFT_BUFFER_SIZE]; /* Buffer on which we perform
the FFT (first channel) */
- int16_t p_dest[FFT_BUFFER_SIZE]; /* Adapted FFT result */
+ uint16_t p_dest[FFT_BUFFER_SIZE]; /* Adapted FFT result */
float *p_buffl = (float*)block->p_buffer; /* Original buffer */
int16_t *p_buffs; /* int16_t converted buffer */
int i , j , y , k;
int i_line;
- int16_t p_dest[FFT_BUFFER_SIZE]; /* Adapted FFT result */
+ uint16_t p_dest[FFT_BUFFER_SIZE]; /* Adapted FFT result */
int16_t p_buffer1[FFT_BUFFER_SIZE]; /* Buffer on which we perform
the FFT (first channel) */
int i , j , k;
int i_line = 0;
- int16_t p_dest[FFT_BUFFER_SIZE]; /* Adapted FFT result */
+ uint16_t p_dest[FFT_BUFFER_SIZE]; /* Adapted FFT result */
int16_t p_buffer1[FFT_BUFFER_SIZE]; /* Buffer on which we perform
the FFT (first channel) */
float *p_buffl = /* Original buffer */