Matthew Hoops
18823198ad
VIDEO: Merge AdvancedVideoDecoder into VideoDecoder
2012-08-16 14:00:14 -04:00
Matthew Hoops
fb35c7f46f
VIDEO: Remove setSystemPalette()
2012-08-16 13:30:32 -04:00
Matthew Hoops
3117e4a8ff
VIDEO: Convert DXADecoder to the AdvancedVideoDecoder API
2012-07-24 13:24:01 -04:00
Matthew Hoops
a652f6669e
VIDEO: Rewrite SmackerDecoder to use the new API
2012-07-23 21:04:51 -04:00
Matthew Hoops
24c97b8913
VIDEO: Move PSXStreamDecoder to the new VideoDecoder API
2012-07-21 17:31:00 -04:00
Johannes Schickel
808e41d807
SWORD2: Get rid of casts on OSystem::copyRectToScreen calls.
2012-06-16 02:39:00 +02: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
Matthew Hoops
8812f885bc
SWORD2: Add support for PSX stream playback
2012-02-23 22:48:18 +01: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
Thierry Crozat
06bbb57ad7
I18N: Make many more GUI MessageDialog strings translatable
2011-06-13 22:19:18 +01:00
D G Turner
d3b53d4c50
SWORD2: Replace snprintf() usage with Common::String::format()
...
Safer and less portability issues.
2011-06-02 04:38:47 +01:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +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
md5
7c10e4e3d8
SWORD2: Silence an MSVC warning (false positive)
2011-02-28 22:23:32 +02:00
Fabio Battaglia
3550e10568
SWORD2: fix leak of previous commit properly
...
Memorize psx sprite buffer pointer to properly free it
2011-02-28 19:22:22 +01:00
Fabio Battaglia
33d90412c1
SWORD2: Plug a memory leak in psx version
...
Free buffer used to resize psx sprite in drawTextObject
2011-02-28 19:16:18 +01:00
dhewg
aa2a2e046b
SWORD2: Reduce overhead
2011-02-27 10:13:18 +01:00
dhewg
1c95d47cfa
SWORD2: Respect screen pitch while postprocessing
...
Fixes subtitles on androids
2011-02-27 10:10:44 +01: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
Eugene Sandulenko
caa6684752
VIDEO: Move video classes to Video:: namespace
...
svn-id: r55479
2011-01-23 19:08:09 +00:00
Matthew Hoops
1ead0d8436
VIDEO: Make VideoDecoder::getPalette() return a const byte pointer
...
svn-id: r54928
2010-12-16 01:41:11 +00:00
Matthew Hoops
375f32fbe9
VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointer
...
svn-id: r54927
2010-12-16 01:35:13 +00:00
Torbjörn Andersson
68469f45ce
SWORD2: Cleanup pause handling
...
Removed a bunch of pause-related code which I either can't remember why
it's there, or which doesn't seem to serve any useful purpose. Most
things I've tried seem to work as well or better than before.
svn-id: r53997
2010-11-01 11:25:11 +00:00
Torbjörn Andersson
1b294306dd
Another video player regression: When the palette changes, look up the
...
lightest/darkest available colours to use as white/black for the subtitles. It
is possible that we could get away with fixed values for Broken Sword 2, since
it has always had subtitles. But for Broken Sword 1, subtitles is a ScummVM
addition, and we can't.
svn-id: r49154
2010-05-23 11:16:10 +00:00
Torbjörn Andersson
8ed56e1834
Keep the Broken Sword cutscene players from using up all available CPU.
...
Probably a regression from the recent video decoder rewrite, but I haven't
checked if it also present in other engines.
svn-id: r49153
2010-05-23 10:50:14 +00:00
Matthew Hoops
11cbdd0318
Committing the rest of the VideoDecoder Rewrite from patch #2963496 .
...
svn-id: r49079
2010-05-18 14:17:24 +00:00
Matthew Hoops
c7fa1074fb
Change VideoDecoder::getCurFrame() to mean the last frame drawn instead of the next frame to draw. This is patch 1 from patch #2963496 (VideoDecoder Rewrite).
...
svn-id: r49063
2010-05-17 21:59:05 +00:00
Torbjörn Andersson
83a25d2e37
Fixed a regression that caused some speech in cutscenes to not be played.
...
svn-id: r49037
2010-05-15 08:54:58 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Max Horn
a44c6e4323
Add Mixer::getElapsedTime() method returning a Timestamp, thus offering a higher precision than Mixer::getSoundElapsedTime(). Convert some video code to use it.
...
svn-id: r47213
2010-01-09 22:37:10 +00:00
Johannes Schickel
84f3034406
- Move openStreamFile from AudioStream to SeekableAudioStream.
...
- Fix documentation of openStreamFile.
svn-id: r47080
2010-01-06 15:23:33 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Filippos Karapetis
422b732dba
Added a new convenience method to the video player, which adds the event of skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used
...
svn-id: r45151
2009-10-16 07:42:23 +00:00
Joost Peters
e1ad748f0d
SWORD2: Don't show a pop-up if the 'eye' movie is missing - it was omitted in later re-releases.
...
svn-id: r44187
2009-09-18 16:39:14 +00:00
Torbjörn Andersson
7a6329a29b
Broken Sword 2, unsurprisingly, had the same subtitle drawing glitch for small
...
cutscenes that Broken Sword 1 had. And a memory leak. This should fix both.
svn-id: r42861
2009-07-28 17:53:59 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Filippos Karapetis
6ec870303f
- Reverted commit #40730 , as it introduced rounding errors
...
- Properly fixed the FLIC player
- The sound chunk tag of DXA files is now read by the DXADecoder's loadFile() method
svn-id: r40736
2009-05-20 10:43:18 +00:00
Torbjörn Andersson
caf9bf0941
Removed the rest of the hard-coded cutscene information. It was only needed to
...
get the number of frames of a cutscene (to find the "lead out frame"), but this
information is already provided by both the DXA and the SMK players. (It wasn't
provided by the now obsolete MPEG player.)
svn-id: r40735
2009-05-20 04:29:09 +00:00
Torbjörn Andersson
358b1a7c7e
Removed the "seamless" flag. It was something I added to cope with the fade
...
in/out behaviour of the MPEG cutscene player, and no longer seems to be needed.
svn-id: r40734
2009-05-20 04:07:34 +00:00
Filippos Karapetis
e358b13ef9
Changed calculations based on frame delay to be based on the scale of 1ms, not 1/100. This fixes the FLIC player and also makes the overall code a bit clearer and easier to understand
...
svn-id: r40730
2009-05-19 19:56:53 +00:00
Fabio Battaglia
dc9c538a62
Sword2: PSX version support, and GMM loading/saving
...
svn-id: r39896
2009-04-07 19:52:46 +00:00
Max Horn
e080a59337
Renamed SMKPlayer -> SmackerDecoder and DXAPlayer -> DXADecoder, as well as some other tweaks
...
svn-id: r39255
2009-03-09 03:45:23 +00:00
Max Horn
f9ecd95d69
Whitespace cleanup: Convert space followed by tab to just tab
...
svn-id: r39203
2009-03-07 19:24:31 +00:00
Torbjörn Andersson
041af01f7d
Don't show a warning dialog for missing cutscenes in the demo. As noted in bug
...
#2669360 , the demo tries to play cutscenes which really aren't there.
svn-id: r39194
2009-03-07 17:27:18 +00:00
Torbjörn Andersson
6e2848ff98
Rewrote the cutscene player to be more like the one in Broken Sword 1. This fixes
...
a subtitle colour regression, but mainly it simplifies the code. The "dummy"
player has been removed. There are almost certainly regressions, but I'm hoping
it's stable enough for testing now.
svn-id: r38697
2009-02-21 15:07:05 +00:00
Filippos Karapetis
781d7da6b1
Applied my patch for the BS1/2 video player
...
- Support for the MPEG2 videos in BS1/2 has been dropped. The MPEG2 videos were lossy, and support for them complicated the code a lot.
- Support for the non-existing enhanced MPEG cutscene packs for BS1 has been dropped. As a consequence, the credits player and the splitted audio stream players used for these packs has been removed
- The original Smacker videos for both games are now supported, using our Smacker player (which is based off publically available specs and FFMPEG)
- The animations now use the common video player code. Both the Smacker videos and our DXA video packs are supported
svn-id: r38236
2009-02-15 13:29:48 +00:00
Max Horn
abc06ca18e
Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
...
svn-id: r35993
2009-01-22 04:35:10 +00:00
Travis Howell
9c20a533bb
Enable Smacker support, and switch later HE games to Smacker support (since they aren't supported yet).
...
svn-id: r35368
2008-12-14 23:41:48 +00:00
Torbjörn Andersson
db3438f2c9
Allow pausing during cutscene movies. (This will need an update to the mixer's
...
getSoundElapsedTime() function to work better.)
svn-id: r34954
2008-11-09 13:20:43 +00:00
Max Horn
edf9f24926
Got rid of OSystem::colorToRGB and RGBToColor; added implementations for OSystem::getOverlayFormat to several ports (pending testing by the porters)
...
svn-id: r34912
2008-11-06 15:02:50 +00:00