Commit Graph
202 Commits
Author SHA1 Message Date
Cameron Cawley b458cedca4 IMAGE: Speed up 16/24/32bpp BMP decoding 2023-05-14 22:53:33 +02:00
Miro Kropacek 67aea06893 IMAGE: Fix MSRLEDecoder if pitch > width
Fixes #14356.
2023-05-14 22:41:41 +02:00
Thierry Crozat d2d564125d IMAGE: Add missing override keyword for setOutputPixelFormat 2023-04-05 22:24:46 +01:00
Cameron Cawley 9a6897a852 IMAGE: Allow the default pixel format to be changed for YUV codecs 2023-04-05 12:45:13 +02:00
Cameron Cawley 78faa2ae28 IMAGE: Defer creation of surface until decodeFrame() is called in Indeo codecs 2023-04-05 12:45:13 +02:00
Cameron Cawley 71030e2840 IMAGE: Use the screen pixel format by default for the Xan decoder 2023-03-24 21:34:16 +01:00
Cameron Cawley 7a05a2d709 GRAPHICS: Add an XBM decoder 2023-03-05 21:18:36 +01:00
Cameron Cawley fe27708438 IMAGE: Add getTransparentColor() to the base ImageDecoder class 2023-03-05 21:16:43 +01:00
Eugene Sandulenko 6ee213d472 IMAGE: CODECS: Add override keyword 2023-03-03 23:23:49 +01:00
elasota 5d1a0bce78 IMAGE: Mark V-Cruise as using JPEG 2023-02-24 18:22:36 -05:00
Cameron Cawley d503d5530e IMAGE: Compile the TrueMotion codec when the Testbed engine is enabled 2023-02-23 11:57:49 +00:00
Cameron Cawley 8da9cca186 IMAGE: Add override keywords for all codecs 2023-02-23 11:23:21 +00:00
Cameron Cawley ce9d324a72 SURFACESDL: Fix crash when saving screenshots in paletted screen modes 2023-02-07 23:42:42 +01:00
Martin Gerhardy 5fc73620a4 TWINE: show dotemu splash screen 2023-01-17 06:28:45 +01:00
grisenti aa52aafe81 IMAGES: force alpha decoding for BMP images 2022-12-23 14:03:35 +01:00
Paweł Kołodziejski de03b0de95 IMAGES: Added comments describing use case for CMYK color space format 2022-12-23 14:03:34 +01:00
Paweł Kołodziejski 90e62871c2 IMAGES: W/A to allow pass JPEG with 4 components as RGBA. 2022-12-23 14:03:34 +01:00
Cameron Cawley 28d7b361ea COMMON: Move more file format code into common/formats 2022-12-11 22:33:23 +01:00
Cameron Cawley 0581301b24 COMMON: Move huffman.h back out of the compression directory 2022-12-11 22:33:23 +01:00
elasota cc11b531e3 JANITORIAL: Clean up all non-engine Visual Studio warnings. 2022-12-04 00:08:48 +01:00
Eugene Sandulenko fb7095f5a4 COMMON: Move all compression-related files to a separate directory 2022-12-01 11:53:02 +01:00
Torbjörn Andersson 1ae0fe2d1e GRAPHICS: Assume PICT are version 2 by default
The version number decides if opcodes are 1 or 2 bytes, but we don't
know for sure which it is until the first opcode has been handled. But
the way the o_versionOp1 opcode is defined, we should recognize it it
regardless, so going from assumed version 2 to confirmed version 1
should be no problem. I do not have any test case to confirm this,
though.

What I do know is that going from assumed version 1 to confirmed version
2 does not work, so we want _version to be well defined (even if wrong)
from the beginning.
2022-11-22 07:10:20 +01:00
Le Philousophe 32bd7cf446 IMAGE: Add missing initializer to HNM6 decoder
This clears static analysis error
2022-09-18 12:12:02 +02:00
Le Philousophe 5e2c6720a7 IMAGE: Cleanup HNM6 decoder 2022-09-18 12:11:44 +02:00
Le Philousophe cf61337968 CRYOMNI3D: Build fixes in HNM6 and APC decoders 2022-08-30 11:43:06 +02:00
Le Philousophe 399e02e2a5 CRYOMNI3D: Add HNM6 image and video codec
This also adds a Cryo APC decoder in shared code.
2022-08-30 11:02:32 +02:00
Cameron Cawley 47755b4b38 COMMON: Make better use of inlining in BitStream functions 2022-08-28 00:05:31 +03:00
Eugene Sandulenko e5f558f2dc IMAGE: Hid debug ouptut deeper and improve wording 2022-07-09 13:35:55 +02:00
Misty De Meo de6e966c38 GRAPHICS: IMAGE: clean up build warning 2022-07-04 21:13:54 +03:00
Pragyansh Chaturvedi 846f9e2479 GRAPHICS: IMAGE: Add version identifier for PICT, Implement o_clip function 2022-07-04 19:37:30 +02:00
Donovan Watteau 5b1ec56f96 JANITORIAL: Fix some lost or outdated URLs in comments 2022-05-19 07:57:31 +03:00
Thunderforge fd129ebc0c JANITORIAL: "Mac OS X" and "OS X" to "macOS" in comments
Apple's desktop operating system was formerly called "Mac OS X" and "OS X", but since 2016 it has been called "macOS" (starting with version 10.12).

Changing across all comments and documentation to use this current terminology, except in cases where the historical versions are explicitly referenced. No code changes are made; we should consider changing those in future PRs.
2022-01-29 14:15:05 +01:00
kevinlaurier 84a17ad9ae IMAGE: Added support for 16 bit bitmap images, and check for RGB555
format
2022-01-23 21:38:33 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Martin Gerhardy ad3aba1908 TWINE: added support for lbashow 2021-11-30 15:40:48 +01:00
Orgad Shaneh 7a4e5612de JANITORIAL: Replace new[]/memset with new[]()
Mostly done using the following Ruby script:

(Dir.glob('**/*.cpp') + Dir.glob('**/*.h')).each do |file|
  s = File.read(file, encoding: 'iso8859-1')
  t = s.gsub(/(([\w_.\[\]]+)\s*=\s*new\s+\S+?\[[^\]]+?\](?!\())([^\{\}]*?)\n\s+memset\(\s*\2\s*,\s*0\s*,[^;]*;/m, '\1()\3')
  if t != s
    File.open(file, 'w') { |io| io.write(t) }
  end
end
2021-11-10 19:53:15 +01:00
sluicebox 620dc8a1df IMAGE: Fix BitmapRawDecoder constructor regression
Fixes parameter order mismatch between definition and declaration
introduced in: 5d093e725f

Fixes flipped QFG4 intro movie, bug #13059
2021-11-04 00:46:46 -05:00
lb_ii 75b8735b57 IMAGE: Load BMPs with any v1-v5 header 2021-11-01 16:26:23 +02:00
lb_ii 236be25624 IMAGE: Parse 4bpp BMP files 2021-11-01 16:26:19 +02:00
lb_ii 5d093e725f IMAGE: Extend raw decoder to support BMP with alpha channel 2021-11-01 16:25:43 +02:00
Eugene Sandulenko 8626c39b21 IMAGE: Fix SMC decoder
It is a regression introduced in 6fb49b6595.
Because of this, we were not reading all the bytes from the source.
2021-08-10 20:51:42 +02:00
ysj1173886760 2be3f87a49 DIRECTOR: change _isQT to _flip in BimapRawDecoder 2021-08-05 19:03:58 +08:00
ysj1173886760 1b5f986df9 IMAGE: change the type of rleCode to int to prevent overflow. 2021-08-05 17:42:10 +08:00
ysj1173886760 adfa11e684 IMAGE: flip 8bpp images when we are decoding QuickTimeVideo 2021-08-05 15:06:14 +08:00
Matthew Duggan 732d05f036 IMAGE: Make JYV1 decoder a little more robust to bad data 2021-07-25 15:40:03 +09:00
Paul Gilbert 005561d305 COMMON: Increase Stream pos, seek, size from int32 to int64 2021-07-08 18:24:28 -07:00
Paul Gilbert baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
lb_ii dd75517d61 IMAGE: Use 0-bit alpha for non-transparent PNGs 2021-07-05 01:00:11 +02:00
Matthew Duggan fbc4da2d83 IMAGE: Mention usage of bmp decoder by ultima8 engine 2021-06-24 08:44:08 +09:00
Matthew Duggan c24f92cb6f IMAGE: Fix decoding bug in Crusader: No Remorse RRV videos
Previously the upscale test was changing the frame contents with incorrect data
before going back, but the algorithm relies on not changing contents for some
pixels by "skipping" them.  Duplicated a bit of code to create a
non-destructive upscale test before decoding the whole frame.
2021-05-26 12:27:44 +09:00