Commit Graph

46 Commits

Author SHA1 Message Date
D G Turner
95d7c012d6 VIDEO: Minor updates to SVQ1 decoder, mainly return flags to bool.
Since the returned int values from the decoding functions are just
0 for good or -1 for error, have changed these into an errorFlag
bool. This improves readability and cleans up some of the error
checking code. In addition, have fixed some oversights in formatting
spacing for readability.
2012-04-08 03:29:45 +01:00
D G Turner
c917db0754 VIDEO: Change SVQ1 decoder to skip rather than decode embedded string.
This string field is not used and this avoids having to include a
xor table.
2012-04-08 03:29:42 +01:00
Matthew Hoops
b0646529d1 VIDEO: Fix segfaults on different sized SVQ1 frames 2012-04-08 03:29:40 +01:00
Matthew Hoops
7e05107256 VIDEO: Fix endian issue with SVQ1 2012-04-08 03:29:37 +01:00
D G Turner
2043403207 VIDEO: Add Missing Half-Pel Motion Compensation Code to SVQ1 Codec.
Graphics output is now _almost_ correct.
2012-04-08 03:29:35 +01:00
Matthew Hoops
1ca81ee6ec VIDEO: Rework SVQ1 codebooks so they're endian-safe 2012-04-08 03:29:32 +01:00
D G Turner
7109e26d04 VIDEO: Workaround for out of buffer accesses in SVQ1 codec.
This is a temporary workaround during development.
Keyframe (I) decoding is now working correctly, but Deltaframe (P) is
still giving corrupted output...
2012-04-08 03:29:29 +01:00
D G Turner
d15ff5a03e VIDEO: Correct delete type in SVQ1 decoder. 2012-04-08 03:29:27 +01:00
D G Turner
97746e2281 VIDEO: Correct SVQ1 Header Decoding and Last Frame Buffering.
Header was incorrectly documnented in reference documents.
Corrected with reference to FFMPEG.
Also, added missing buffering of last frame for P frame decoding.
2012-04-08 03:29:24 +01:00
Matthew Hoops
c9bbe5793c VIDEO: Rewrite the SVQ1 VLC code to use Common::Huffman 2012-04-08 03:29:22 +01:00
D G Turner
32ff1f8478 VIDEO: SVQ1 - Add table_size default setting for VLC Table setup. 2012-04-08 03:29:19 +01:00
D G Turner
a3fb8867d0 VIDEO: Fix remaining missing code (getVlc2()) in SVQ1 Codec. 2012-04-08 03:29:17 +01:00
D G Turner
b99565d701 VIDEO: Add remaining SVQ1 code derived from FFMPEG.
This still requires some work to make it usuable, mainly changing the
Variable Length Code reader to work with Common::BitStream input.
2012-04-08 03:29:14 +01:00
D G Turner
9330a7c54d VIDEO: Corrected minor mistake in SVQ1 decoder. 2012-04-08 03:29:11 +01:00
D G Turner
69e76182cb VIDEO: Update SVQ1 WIP with minor corrections.
This mainly fixes the Bitstream to Big Endian, MSB to LSB.
2012-04-08 03:29:09 +01:00
D G Turner
da35b9f5f6 VIDEO: Migrate SVQ1 codec WIP to Common::BitStream. 2012-04-08 03:29:06 +01:00
D G Turner
c9c16cd1ee VIDEO: Add initial framework and data tables for Sorenson SVQ1 decoder.
This is based on the SVQ1 decoder from FFMPEG.
2012-04-08 03:29:01 +01:00
Matthew Hoops
765a870445 GRAPHICS: Convert JPEG to the ImageDecoder API 2012-03-20 01:06:48 +01:00
Christoph Mallon
e578cb8976 ALL: Remove unnecessary forward declarations. 2011-11-21 15:59:19 +01:00
Matthew Hoops
a064b7bc0b VIDEO: Fix Cinepak variant detection 2011-10-07 11:34:03 -04:00
Johannes Schickel
7e4224e52a COMMON: Fix compilation when USE_HASHMAP_MEMORY_POOL is not defined. 2011-07-03 00:16:07 +02:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Matthew Hoops
aa49b38c5a Merge remote branch 'upstream/master' into t7g-ios
Conflicts:
	engines/groovie/script.cpp
2011-05-31 14:16:29 -04:00
Max Horn
717a7accf5 BUILD: Always enable indeo3 codec 2011-05-25 13:24:37 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Matthew Hoops
a1d41da096 Merge remote branch 'upstream/master' into t7g-ios
Conflicts:
	audio/decoders/qdm2.h
	common/util.cpp
	engines/groovie/music.cpp
	engines/groovie/resource.h
	video/qt_decoder.cpp
	video/qt_decoder.h
2011-05-11 00:30:28 -04:00
Max Horn
89f40bc02a VIDEO: Cleanup mixed array / type declaration 2011-05-03 13:25:01 +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
c46e4a47f2 VIDEO: Fix compilation on SCUMM_BIG_ENDIAN backends 2011-04-28 20:00:19 +03: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
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Johannes Schickel
79ed190523 VIDEO: Set up the pixel format for the TrueMotion1 codec properly. 2011-04-17 22:09:55 +02:00
Johannes Schickel
f90bbf9cfa VIDEO: Prefer Surface::format over Surface::bytesPerPixel. 2011-04-17 20:55:49 +02: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
84184aabc0 ALL: colour -> color 2011-04-14 14:12:35 +02:00
Matthew Hoops
6d153f311c Merge remote branch 'upstream/master' into t7g-ios
Conflicts:
	video/qt_decoder.cpp
2011-04-13 16:04:29 -04:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Matthew Hoops
8cf73e3fb4 AUDIO: Split QuickTime audio into a new class
Standalone QuickTime files can now be played as an AudioStream
2011-04-07 19:40:07 -04:00
dhewg
d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
md5
19d3972f16 VIDEO: Changed several places that use PI to use M_PI instead 2011-03-19 02:29:22 +02:00
Matthew Hoops
0544977daa VIDEO: Fix QDM2 audio
A regression from r55474

svn-id: r55882
2011-02-11 15:02:15 +00:00
Sylvain Dupont
247e882711 VIDEO: Added some skipping when bad data is found in Indeo3
Some Urban Runner videos are badly encoded and contain
corrupted data. When the decoder realizes that there is 
some bad data, it skips the rest of the frame.
The original Indeo3 DLL decoder does the same.

svn-id: r55876
2011-02-10 21:41:59 +00:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +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