spectrogram: convert int16 to unsigned for correct range
authorMaxime Even <maximeeven@proton.me>
Mon, 8 Jul 2024 15:41:39 +0000 (17:41 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 21 Jan 2025 18:02:47 +0000 (19:02 +0100)
commit99b9a3f422b7f4a8f8373eb01ecb3d237f07c679
tree8d78f529a01a8323842d47b2666dc9e9a19ff7df
parent31a1180ecfdb0878c34b893b39d36f555be92b3f
spectrogram: convert int16 to unsigned for correct range

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
modules/visualization/glspectrum.c
modules/visualization/visual/effects.c