Matthew Jimenez
b940265816
IMAGE: Use palette class in Cinepak decoder.
...
The Cinepak decoder had an unweighted euclidean color distance calculation for palette matching. This was moved and rewritten to a color distance method on the palette class.
2025-03-05 13:37:01 +02:00
Cameron Cawley
1a3a290ce7
IMAGE: Improve default implementation of setOutputPixelFormat()
2025-03-03 07:30:22 +02:00
Cameron Cawley
4867e171bf
IMAGE: Add more validation for Codec::setOutputPixelFormat
2025-03-02 02:34:07 +02:00
Le Philousophe
532c112e4c
IMAGE: Fix undefined behaviours in Cinepak decoder
...
Left shifting a negative number is undefined (as it may eat the sign
bit).
Instead, multiply by 2 which is the same but properly defined.
Also fix the convertYUVToColor function signature as it takes int8
values.
2025-01-22 19:15:58 +01:00
Cameron Cawley
604708ad98
IMAGE: Combine lookup tables for Cinepak with VFW dithering
2024-04-22 02:07:47 +02:00
Cameron Cawley
011e468fa1
IMAGE: Handle the surface pitch in Cinepak videos
2024-04-22 02:07:47 +02:00
Cameron Cawley
2cb46c19ed
IMAGE: Split Cinepak CodebookConverterRaw into 8bpp and 24bpp versions
2024-04-22 02:07:47 +02:00
Cameron Cawley
ed59ab8a3b
IMAGE: Make use of aligned loads and stores when dithering Cinepak videos
2024-04-22 02:07:47 +02:00
Cameron Cawley
f683ecbf7b
IMAGE: Cache the dithered Cinepak codebooks when using VFW-style dithering
2024-04-22 02:07:47 +02:00
Cameron Cawley
9a6897a852
IMAGE: Allow the default pixel format to be changed for YUV codecs
2023-04-05 12:45:13 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Torbjörn Andersson
4702681be2
IMAGE: Explicitly initialize CinePak codebooks
...
Starship Titanic produces lots of "uninitialized value" warnings
at the very beginning of the game, when turning right. This is
because in the very first movie frame it uses codebooks that have
not been loaded. Explicitly set their data to 0 to guarantee
consistent behavior.
2018-04-07 10:03:50 +02:00
Adrian Frühwirth
4faa8b0439
JANITORIAL: Remove useless comment
2018-03-25 18:37:10 +02:00
Eugene Sandulenko
12f10a2264
IMAGE: Fix out of bounds access
2016-05-31 17:12:18 +02:00
Matthew Hoops
bb1ebffbea
IMAGE: Move a memcpy out of a loop it shouldn't be in
2015-06-04 20:26:29 -04:00
Matthew Hoops
1271fbde8f
IMAGE: Add support for QuickTime dithered Cinepak
2015-04-11 14:36:58 -04:00
Matthew Hoops
e5048ecffe
IMAGE: Rewrite a bunch of Cinepak using templates
2015-04-11 14:36:42 -04:00
Matthew Hoops
f342d63431
IMAGE: Allow for choosing dither type
2015-04-11 14:36:37 -04:00
Matthew Hoops
ad32fb5832
IMAGE: Add support for Cinepak VFW dithering
2015-04-11 14:36:31 -04:00
Matthew Hoops
9a5b3bfdda
IMAGE: Make Cinepak decode to 32bpp when in 8bpp screen mode
2014-08-17 12:24:23 -04:00
Matthew Hoops
08ea14a8d0
IMAGE: Make Codec take a stream reference; change function name to decodeFrame
2014-02-28 00:27:37 -05:00
Matthew Hoops
b568ac73b9
IMAGE: Move video codecs to image/
2014-02-28 00:27:36 -05:00