56 Commits

Author SHA1 Message Date
Donovan Watteau 69dd0889cc JANITORIAL: Update some HTTP links in comments to HTTPS
The modern web is mostly HTTPS now, and some browsers may start giving
warnings when one uses a plain HTTP connection.

Only update the protocol when the HTTPS connection exists and fully
works.  Code from external projects/tools is kept as is.
2025-10-29 14:22:37 +01:00
Matthew Jimenez 29e2b1017c VIDEO: Use palette class in Smacker decoder 2025-03-09 17:29:24 +02:00
SupSuper f012b06812 VIDEO: Return decoded frame when force seeking SmackerDecoder 2024-06-14 13:25:40 +01:00
SupSuper b866d1893e VIDEO: Fix Smacker forceSeekToFrame crash when video is stopped
Can only set the startTime while the video is playing
2024-04-07 22:22:50 +01:00
Eugene Sandulenko a466106bbf JANITORIAL: Fix grammar in Toon secondary license. Courtesy of md5 2024-03-24 23:24:02 +01:00
Eugene Sandulenko 987757762a TOON: Dual-license the engine
Confirmed with the engine author, SylvainTV
2024-03-24 18:11:03 +01:00
Cameron Cawley 9a71eb1a6d VIDEO: Avoid 64-bit math in Smacker bitstreams 2022-10-01 10:58:47 +02:00
Cameron Cawley 47755b4b38 COMMON: Make better use of inlining in BitStream functions 2022-08-28 00:05:31 +03:00
Cameron Cawley b852af46c2 VIDEO: Add generic support for Smacker videos with custom signatures 2022-06-05 21:30:06 +02:00
Donovan Watteau 5b1ec56f96 JANITORIAL: Fix some lost or outdated URLs in comments 2022-05-19 07:57:31 +03:00
neuromancer ce7886ab67 VIDEO: improved how forceSeekToFrame handles videos when frame to seek is close to the start of the video 2022-02-23 20:30:24 +01:00
neuromancer 67ed302224 VIDEO: rewind when forceSeekToFrame is called with a frame near the start of the video 2022-02-13 18:28:36 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
neuromancer aa6e7d4fc8 COMMON: added SmackerDecoder::forceSeekToFrame function 2021-10-31 19:15:06 +01:00
SupSuper 8bc861cb1a VIDEO: Added dirty rects to SmackerDecoder
This emulates the "slow" render mode of the Smacker lib,
which returns the blocks changed each frame instead of full frames.
Nightlong relies on this to correctly refresh its screen buffer.
2021-05-29 21:22:58 +01:00
Thomas Fach-Pedersen cf0aa5813a VIDEO: Fix handling of Smacker frame flags 2021-05-29 21:22:48 +01:00
Thomas Fach-Pedersen d50de9c132 VIDEO: Support Smacker video with empty Huffman trees
This fixes loading videos from Nightlong: Union City Conspiracy.
2021-05-29 21:22:48 +01:00
Thomas Fach-Pedersen 1dfe89d53e VIDEO: Fix IDs of Smacker audio tracks
If a Smacker file has non-adjacent audio tracks,
fill in the blanks with SmackerEmptyTrack.
2021-05-29 21:22:48 +01:00
Paweł Kołodziejski 1aff4a4cd3 VIDEO: Added getter for getFrameRate() for BINK and SMK video streams. 2020-09-24 00:26:27 +02: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
Willem Jan Palenstijn e72f681ceb VIDEO: Use new BitStreamMemory class for SmackerDecoder 2017-08-24 19:46:59 +02:00
Willem Jan Palenstijn dde259f068 COMMON: Remove BitStream base class to allow inlining calls
All users of BitStream were in fact using a specific, hardcoded variant,
so we can hardcode that variant, removing the need for virtual calls,
and enabling inlining.
2017-08-24 19:46:59 +02:00
Bastien Bouclet ec49730711 VIDEO: Allow setting the mixer sound type used to play audio tracks 2017-07-27 06:40:07 +02:00
Paul Gilbert bd010bc79f COMMON: Converted Common::BitStream to use DisposeAfterUse 2016-09-10 11:16:07 -04:00
Johannes Schickel 8f3a923686 VIDEO: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Matthew Hoops 1e95a49892 VIDEO: Add support for multiple Smacker audio tracks 2014-01-11 18:43:42 -05:00
Torbjörn Andersson 84d4e97d08 VIDEO: Rename variables and remove pointless assertion
It's RGB, not BGR apparently. This seems to contradict the
Multimedia Wiki, but not reality.
2014-01-01 19:55:04 +01:00
Torbjörn Andersson 75806cd73c VIDEO: Fix Smacker palette upscaling to match Multimedia Wiki
The Multimedia Wiki suggests using a lookup table, but this should
produce the same result.
2014-01-01 19:48:17 +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
Thomas Fach-Pedersen c3de517fb4 VIDEO: Wrap 8-bit smacker audio properly
The accumulator 'bases' is 16-bit but when used in 8-bit audio we need to
wrap as if 'bases' is 8-bit. Clipping on output is no longer required.

This fixes noise in The Neverhood's in-game "making of" videos,
particularly the section called "Construction, powertools & painting",
hash 0x21080009.

The intro video in The Neverhood is 16-bit audio and was not affected by
this bug. No other videos or games have been tested.
2013-05-28 00:58:10 +02:00
Torbjörn Andersson 21ed47ce13 VIDEO: Fix Smacker crash, as per madmoose's suggestion
Apparently, in some movies the Smacker decoder would peek ahead
past the end of the bitstream, even though it didn't necessarily
use all of those bits later. Fix that by first checking how many
bits are still available. (This was originally reported for the
mg1shoot.smk cutscene in the 4 CD version of The Feeble Files.)
2013-02-18 20:12:35 +01:00
Torbjörn Andersson dc207979b3 VIDEO: Indent with tab, not spaces. 2012-09-16 09:37:46 +02:00
Matthew Hoops 6c155b6b36 VIDEO: Implement rewinding Smacker audio tracks 2012-08-20 17:06:58 -04:00
Matthew Hoops 18823198ad VIDEO: Merge AdvancedVideoDecoder into VideoDecoder 2012-08-16 14:00:14 -04:00
Matthew Hoops a652f6669e VIDEO: Rewrite SmackerDecoder to use the new API 2012-07-23 21:04:51 -04:00
Matthew Hoops 10f7e805c2 VIDEO: Add volume/balance control to VideoDecoder 2012-05-28 14:00:16 -04:00
Matthew Hoops 9e330174c8 VIDEO: Change getElapsedTime() into getTime()
This name change accompanies a slight meaning change; now it means the current time position from the beginning of the video and not from starting the video.
2012-05-12 21:28:13 -04:00
Sven Hesse 7eef26268c VIDEO: Fix SMK 16bit audio on BE systems 2012-04-13 04:29:26 +02:00
Sven Hesse c9a59235b2 VIDEO: Use the BitStream implementation in Common
Removing/Replacing the custom implementation
2011-08-28 13:55:47 +02:00
Matthew Hoops d38fa57d1b VIDEO: Fix typo with last commit 2011-07-19 10:15:51 -04:00
Matthew Hoops 7484ba037c VIDEO: Better handle failing loading Smacker videos 2011-07-19 09:41:31 -04:00
Matthew Hoops fffe7a9cc0 VIDEO: Remove Bink header check from Smacker 2011-07-02 16:37:24 -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 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
Max Horn 42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00: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