29 Commits

Author SHA1 Message Date
Filippos Karapetis 7cb70d585f VIDEO: Use C++ 11 range-based for loops 2025-03-27 13:47:57 +08:00
Matthew Jimenez cb8d5d4bd6 VIDEO: Use palette class in FLIC decoder 2025-03-10 19:03:23 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +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
Vladimir Menshakov deb959a902 VIDEO: Allow zero data words count in decodeDeltaFLC
Excerpt from specification:
The first byte of each packet is the column skip count;
the second byte is the RLE count byte.
Zero or more data words follow the RLE count byte.
2021-04-25 22:07:28 +01:00
Andrei Prykhodko 7bbb639bd7 VIDEO: add support for BLACK chunk in FLIC decoder 2020-10-04 18:27:33 +02:00
Vladimir Menshakov 9ecce37b81 VIDEO: Pad consts with spaces, not tabs, formatting fixup 2020-09-02 06:43:44 +01:00
Vladimir Menshakov 61ce70f6e8 VIDEO: skip FLC file header if present 2020-09-01 21:54:22 +01:00
Vladimir Menshakov 9be832dad7 VIDEO: Fix playback of FLC files created with non-EGI encoders (no frame1/2 pointers, no ext_flags) 2020-09-01 21:52:42 +01:00
D G Turner b7b66c5049 VIDEO: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-30 19:47:06 +00:00
whiterandrek abf17aaa59 VIDEO: fix rewinding of FLIC files 2018-06-15 00:25:57 +02:00
whiterandrek ff1b7ff89d VIDEO: FLIC: Fix decoding of BYTE_RUN/FLI_BRUN chunks
Our decoder currently only supports the standard FLC format which
does not rely on the stored packet count (which is part of the FLI
format and limited to 255 packets per line).
Instead, the image width should be used as criterion when decoding
a frame which allows for more than 255 packets per line.

See also https://www.compuphase.com/flic.htm
2018-05-17 19:45:16 +02:00
Filippos Karapetis 7331bdc6b1 VIDEO: Allow parts of the FLIC decoder to be overriden by child classes
This is needed by the specialized FLIC video decoder used in the chewy
engine
2016-10-03 00:33:49 +03:00
Joel Teichroeb 32e85a957d VIDEO: Use || instead of the currently incorrect &&
The code currenly has 4 logically dead lines. Instead of requiring
both newWidth and newHeight to be non zero, just make sure one of
them is non zero and set the other one to the current size.
2014-04-11 19:53:03 -07:00
Johannes Schickel 8f3a923686 VIDEO: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Johannes Schickel e0c9c1d261 VIDEO: Take advantage of Surface::getPixels. 2013-08-03 04:02:49 +02:00
Johannes Schickel 6fce92b0ea VIDEO: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 04:02:49 +02:00
D G Turner b65b196e56 VIDEO: Add support for missing copyFrame type in FLIC decoder.
Thanks to Tomaz^ for this patch.
2012-12-26 02:41:31 +00:00
Matthew Hoops c7222ed5a4 VIDEO: Remove obsolete FIXME in the FLIC code 2012-08-25 12:30:28 -04:00
Matthew Hoops 5db42076b8 VIDEO: Convert FlicDecoder to the new AdvancedVideoDecoder API
The video no longer automatically loops (unused in-tree) and must have rewind() called manually
2012-08-12 08:43:32 -04:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Johannes Schickel 71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion 9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel 5e279996eb VIDEO: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Certain codecs seem to use a Surface with Bpp 2, but do not have any proper
format description. Whoever is maintaining these should check this commit and
fix the format properly.
2011-04-17 16:35:12 +02:00
Max Horn 805a5b2996 VIDEO: In overloaded methods, invoke correct parent implementation
This should not cause any code behavior changes at this time, but if any
of the intermediate VideoDecoder classes ever starts to overload stuff,
this would become important.

svn-id: r55841
2011-02-09 00:12:58 +00:00
Max Horn 357c225f64 VIDEO: Rename VideoDecoder::load() to loadStream()
svn-id: r55810
2011-02-07 17:54:16 +00:00
Eugene Sandulenko caa6684752 VIDEO: Move video classes to Video:: namespace
svn-id: r55479
2011-01-23 19:08:09 +00:00
Eugene Sandulenko f123802f4c GRAPHICS: Move graphics/video/ to video/. Step 2/2
svn-id: r55474
2011-01-23 17:37:17 +00:00
Eugene Sandulenko 806ccf5d25 GRAPHICS: Move graphics/video/ to video/. Step 1/2
svn-id: r55473
2011-01-23 17:14:43 +00:00