diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-17 19:49:29 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-20 00:09:05 +0100 |
commit | 42f6dfc42e81725f466001b64f0536622a6682ed (patch) | |
tree | 7cdd44a0c66e0f132a34b46daf9d793d70ebbaee /libavdevice/pulse_audio_enc.c | |
parent | 271d6709cf123b6fed53138d02ffdbab8bf50833 (diff) | |
download | ffmpeg-42f6dfc42e81725f466001b64f0536622a6682ed.tar.gz |
avcodec/jpeg2000: Simplify exp2fi for numbers used here
The call to ff_exp2fi() here always uses arguments in the normal
range, so that the branches in ff_exp2fi() are unnecessary.
This is so because JPEG2000 itself only supports up to
128 bits per component per pixel (we only support far less);
furthermore, expn is always 0..31 for the decoder and also
sane for the encoder, so that the difference between these
two values is always in the normal range of -126..128.
Reviewed-by: Tomas Härdin <git@haerdin.se>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/pulse_audio_enc.c')
0 files changed, 0 insertions, 0 deletions