Martin Vignali
07e427aa56
avcodec/texturedsp : add rgtc1u gray decoding
...
decode rgtc1 block in gray8 picture
7 years ago
Martin Vignali
92500c7bc5
libavcodec/texturedsp : indent after add rgtc1u_alpha func
...
Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
7 years ago
Martin Vignali
d4d4629dfe
libavcodec/texturedsp : add rgtc1u_alpha decoding func
...
this func decode an rgtc1 texture and overwrite only the alpha channel
of the dest RGBA picture
Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
7 years ago
Michael Niedermayer
f225003d17
avcodec/texturedsp: Fix runtime error: left shift of 255 by 24 places cannot be represented in type 'int'
...
Fixes: 1505/clusterfuzz-testcase-minimized-4561688818876416
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
2bd8eb05d2
avcodec/texturedsp: Fix runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
...
Fixes: 1428/clusterfuzz-testcase-minimized-5263281793007616
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
e92fb2bea1
avcodec/texturedsp: Fix multiple runtime error: left shift of 255 by 24 places cannot be represented in type 'int'
...
Fixes: 1386/clusterfuzz-testcase-minimized-5323086394032128
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Ganesh Ajjanagadde
e09edc62cd
lavc/texturedsp: replace rint by lrint
...
avoids float to int cast.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
9 years ago
Vittorio Giovara
fdd5c48ebd
texturedsp: Explicitly cast RGBA parameters to unsigned
...
Silences warnings when using -Wshift-overflow (GCC 6+).
Found-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
ec7f04c13a
avcodec/texturedsp: fix undefined shift
...
Silences warnings when using -Wshift-overflow (GCC 6+)
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
7a4b8817fe
avcodec/texturedsp: Add protective () to RGBA() macro
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Vittorio Giovara
8337e0c573
Introduce a TextureDSP module
...
This module implements generic texture decompression from different
families (DXTC, RGTC, BCn) and texture compression DXTC 1, 3, and 5.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago