72 Commits

Author SHA1 Message Date
Bastien Bouclet
d474e3f94f ALL: Sync with ScummVM - rev. ea3f8f2e33563987d8190cc66de75b6ac7f476db 2019-06-29 19:08:44 +02:00
Bastien Bouclet
148655f5c2 COMMON: Use a prefix table to speed up the Huffman decoder
Symbols for codes shorter than the prefix table index width are stored
in the table. All the entries in the table with an index starting with
the code are set to the symbol value. That way, when decoding it is
possible to get the number of bits corresponding to the table width from
the bitstream and directly find the symbol value. Longer code still need
to be searched for in the codes list.
2019-04-14 20:24:26 +02:00
Bastien Bouclet
9d773f43b6 VIDEO: Fix Bink clearing color comment
YUV 000 is a green, not black. Thanks DrMcCoy for noticing and fixing
the issue.
2019-04-01 20:51:26 +02:00
Bastien Bouclet
4f019d5db0 VIDEO: Fix an integer overflow when dequantizing the DCT coeffs
See 2968bedf12
2019-04-01 20:51:21 +02:00
Bastien Bouclet
fd01247558 VIDEO: Implement Bink rewind 2019-01-31 09:01:14 +01:00
Bastien Bouclet
66654cb376 ALL: Sync with ScummVM - rev. cd37d510f93a7e9ba35a442d2a3d15de9f4846da 2019-01-26 20:47:55 +01:00
Bastien Bouclet
53759fe53a ALL: Sync with ScummVM - rev. 2586ca2345751a0ca5eb2c694e5e2c753054f069 2018-07-31 21:09:37 +02:00
Bastien Bouclet
3ec01653c3 ALL: Merge from ScummVM rev 3a933138ce9273724726efc0df051b8dcf92b7d8 2017-12-06 21:41:03 +01:00
Bastien Bouclet
4b4282fe8f VIDEO: BINK: Fix plane data clobbering caused by incorrect pitch value
When decoding blocks, the YUV planes' pitches were computed using the
target video surface size instead of the block based size, resulting in
decoded plane data being overwritten for some video sizes.

Affected videos are LEOS-11102.bik and LEOS-11152.bik from Myst III.

Fixes #1358.
2017-10-08 08:54:31 +02:00
Bastien Bouclet
84e62b6c8d ALL: Sync with ScummVM - rev. 87ebc7140c1bc650e7a6ac89b102f8f2d2970f63 2017-09-02 15:04:07 +02:00
Pawel Kolodziejski
19bcd1f3bc ALL: Sync with ScummVM 2016-11-12 12:59:06 +01:00
Pawel Kolodziejski
9ba9c69b3f ALL: Sync with ScummVM - rev. 823c2f899b480a1fa494b08e1471142129293779 2016-11-12 08:49:29 +01:00
Bastien Bouclet
37e8792be3 VIDEO: Fix off-by-one check in VideoDecoder::getTrack 2016-10-17 08:06:24 +02:00
Bastien Bouclet
9f3a5258d5 VIDEO: Fix seeking Bink videos with audio data
Fixes #1038, #1248
2016-07-16 09:58:16 +02:00
Bastien Bouclet
78129b6e8d VIDEO: Allow querying the framerate for Smacker videos 2016-04-16 08:58:08 +02:00
Pawel Kolodziejski
c29c92490e ALL: changes after full sync with ScummVM 2015-09-26 10:22:11 +02:00
Bastien Bouclet
f2cbdc5d45 VIDEO: Adapt the PS2 MPEG audio track to the new packet stream API
This fixes the build with MAD disabled
2015-09-09 14:45:55 +02:00
Pawel Kolodziejski
5c7fd27706 ALL: sync with ScummVM 2015-09-06 16:08:49 +02:00
Bastien Bouclet
37f7b53926 VIDEO: Fix Timestamp API usage in Bink seek code 2015-04-19 11:46:02 +02:00
Pawel Kolodziejski
4fe80cd669 ALL: synced with ScummVM 2015-04-19 07:43:34 +02:00
Pawel Kolodziejski
c5ccf4d423 ALL: synced with ScummVM 2015-01-25 19:31:35 +01:00
Einar Johan Trøan Sømåen
b9c148b0d4 VIDEO: Synch MPEGPSDecoder manually from ScummVM, retaining the PS2 private stream support. 2015-01-13 00:36:17 +01:00
Pawel Kolodziejski
a4fc7ea3b2 ALL: synced with scummvm 2015-01-12 23:50:20 +01:00
Pawel Kolodziejski
8b8783134f ALL: synced with ScummVM 2014-12-04 20:46:56 +01:00
Pawel Kolodziejski
1a07a23294 ALL: synced with ScummVM 2014-08-18 05:21:52 +02:00
Pawel Kolodziejski
022c027ab4 ALL: synced with ScummVM 2014-07-17 14:44:26 +02:00
Pawel Kolodziejski
88b93b36dd ALL: sync with ScummVM 2014-07-02 01:02:35 +02:00
Bastien Bouclet
97ef97841c BINK: Fix #863, seeking to frame 0 triggers an assertion
It would create and use a negative (invalid) Audio::TimeStamp
2014-05-01 07:35:19 +02:00
Pawel Kolodziejski
2c022ad8f7 ALL: sync with ScummVM 2014-04-19 08:12:15 +02:00
Pawel Kolodziejski
c1a5353613 VIDEO: fix compiler warning 2014-04-19 07:02:08 +02:00
Pawel Kolodziejski
8759900b6a ALL: synced with ScummVM 2014-04-05 18:18:42 +02:00
Bastien Bouclet
0d194bd8ba BINK: Use the new audio track selection API 2014-01-26 09:43:21 +01:00
Pawel Kolodziejski
9098dfe9a2 ALL: sync with scummvm 2014-01-25 22:16:57 +01:00
Bastien Bouclet
d8554a199a VIDEO: Fix Bink seeking after video decoder API change 2014-01-01 14:33:40 +01:00
Pawel Kolodziejski
790db038c0 ALL: sync with scummvm 2013-10-13 11:30:34 +02:00
Pawel Kolodziejski
f52da5c053 ALL: synced with scummvm 2013-07-16 22:11:39 +02:00
Pawel Kolodziejski
068ff94d20 ALL: synced with ScummVM 2013-07-07 15:29:33 +02:00
Bastien Bouclet
19369c9bcb VIDEO: Remove the old ResidualVM specific bink decoder 2012-12-03 08:26:59 +01:00
Bastien Bouclet
86a45cd9d7 VIDEO: The next video frame needs updating before bink seeking 2012-12-03 08:21:36 +01:00
Matthew Hoops
02098e4a3e VIDEO: Rework the way the next video track is selected
Fixes missing the last frame in some decoders
2012-12-03 07:57:01 +01:00
Bastien Bouclet
36d329c1d4 VIDEO: Properly implement bink audio seeking 2012-12-03 07:55:08 +01:00
Bastien Bouclet
ecc8974cdf VIDEO: Only play the selected audio track from bink videos 2012-12-03 07:55:07 +01:00
Bastien Bouclet
9afc83fc40 GRAPHICS: Update the YUVA decoder from the YUV decoder
And use it to decode alpha from bink videos
2012-12-03 07:54:04 +01:00
Einar Johan Trøan Sømåen
7dd0b3daaa VIDEO: Apply patch from clone2727 to fix EMI-PS2 Video-sound 2012-11-29 00:18:56 +01:00
Einar Johan Trøan Sømåen
c769196acd VIDEO: Remove old MPEG-player code 2012-11-29 00:06:00 +01:00
Einar Johan Trøan Sømåen
f52d0a12c6 VIDEO: Add in clone2727's MPEGPSDecoder 2012-11-29 00:05:55 +01:00
Einar Johan Trøan Sømåen
1de8e77358 VIDEO: Add seeking to BinkDecoder (WIP) 2012-11-29 00:00:26 +01:00
Einar Johan Trøan Sømåen
57e8393ac5 VIDEO: Add in the files for the new VideoInterface from ScummVM. (And disable Bink/Smush for now) 2012-11-27 02:54:02 +01:00
Pawel Kolodziejski
adcb0b8383 ALL: synced with scummvm 2012-11-18 19:07:46 +01:00
Pawel Kolodziejski
72664703cf ALL: sync with scummvm 2012-07-06 22:05:21 +02:00