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, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
commit74896b25efb6190a4d69a3fffc4e13e49f7b74d7
treef3a467e007fa703cce6789350c6cec162094df38
parentdae21e0709731ffc1723d11ff2963acbe2b2e8ad
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