Commit Graph

60 Commits

Author SHA1 Message Date
Johannes Schickel
ea21bc939a GOB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Sven Hesse
8c3d2fc741 GOB: Add a way to reopen currently opened IMD/VMD videos
This is a workaround for how Lost in Time behaves in combination
with changes I made to the DataIO code for running Urban Runner
on low-memory devices.

Urban Runner's intro are far to big to have them copied into
memory for these devices, so I made the DataIO code return a
SafeSeekableSubReadStream into the opened archive stream instead.
Unfortunately, Lost in Time might not close a video file when it
closes the data file which it was originally in, especially when
loading a saved game. Since the video player needs to be able to
gaplessly continue a video and there does not, by itself, close
the video if not requested by the scripts, this leads to reading
out of an already closed stream in certain cases.

So, to worka round this issues, the video player tries to reopen
each currently opened video after a data archive was closed, to
make sure that that video is still available. If not, the video
is closed.
2012-06-07 00:29:46 +02:00
Johannes Schickel
44068338e5 GOB: Made some static data const. 2011-09-08 20:03:30 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Sven Hesse
9eea8c6bca GOB: Wait for the exact moment of the video sound's end
This should fix all cut-off sound issues in Urban Runner

svn-id: r55503
2011-01-24 14:10:15 +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
806ccf5d25 GRAPHICS: Move graphics/video/ to video/. Step 1/2
svn-id: r55473
2011-01-23 17:14:43 +00:00
Sven Hesse
ccd5129588 GOB: Pass engine pause to the VideoPlayer and decoders
Entering the GMM or the debug console during a video will not
mess up audio/video sync anymore.

svn-id: r55466
2011-01-23 15:33:30 +00:00
Sven Hesse
0722df9472 GOB: Hacking in multiple live videos
Needed for Bambou. The narrator voice and the "Do you want to quit?"
voices are live videos that should continue while the live video
buttons are playing.

svn-id: r55443
2011-01-22 19:28:23 +00:00
Sven Hesse
cbbafc962d GOB: Extend the good-measure wait to all videos with sound
Fixes a glitch in Bambou, where the intro movie is cut off to
soon.

svn-id: r55432
2011-01-22 16:29:54 +00:00
Sven Hesse
7c14cf2b1b GOB: Fix some of the live-video glitchyness
svn-id: r55421
2011-01-22 12:26:31 +00:00
Sven Hesse
6e254c4f01 GOB: Actually, startFrame == -2 seems to be the only live video flag
svn-id: r55418
2011-01-22 11:39:03 +00:00
Sven Hesse
bb6c230587 GOB: Implement looping live videos
Needed for the buttons in the Playtoons series

svn-id: r55359
2011-01-20 18:17:39 +00:00
Sven Hesse
adf8820aee GOB: Make blocking videos default
svn-id: r55354
2011-01-20 15:29:32 +00:00
Sven Hesse
bd3f9ad1e2 GOB: Use Surface::blit() in VideoPlayer::copyFrame()
svn-id: r55344
2011-01-20 05:19:41 +00:00
Sven Hesse
d77899e158 GOB: Make Urban Runner's "3D view" work again
svn-id: r55340
2011-01-20 03:22:43 +00:00
Sven Hesse
bad7f1ce9a GOB: Implement "live" (non-blocking) videos
Many thanks to SylvainTV. :)
Urban Runner might actually be completeable now.
One caveat: Hotspots at that hotel sequence are a bit glitchy...

svn-id: r55333
2011-01-19 18:57:43 +00:00
Sven Hesse
518e858d85 GOB: Allow true-color VMD cursors
svn-id: r55264
2011-01-16 16:30:15 +00:00
Sven Hesse
b451d3b51c GOB: Add the property switchColorMode
To allow the videoplayer (and ultimatively the demoplayer)
to switch color modes if necessary.

svn-id: r55262
2011-01-16 16:29:19 +00:00
Max Horn
a0df86955f ALL: Push down deps on stream.h from .h to .cpp files
svn-id: r54358
2010-11-19 01:37:04 +00:00
Sven Hesse
51fd528fe5 GOB: Change all drawing to use class Surface
svn-id: r52947
2010-09-30 13:02:16 +00:00
Sven Hesse
a78ddb8488 GOB: Handle VMD subtitles again
svn-id: r51916
2010-08-08 01:05:46 +00:00
Sven Hesse
5dc322454d GOB: Fix playing of sound VMDs with a starting frame != 0
svn-id: r51910
2010-08-08 01:02:49 +00:00
Sven Hesse
bab55f3a1d GOB: Adapt the remaining bits to the new VideoPlayer interface
svn-id: r51895
2010-08-08 00:55:27 +00:00
Sven Hesse
424e802bb9 GOB: Add copyFrame
svn-id: r51893
2010-08-08 00:54:24 +00:00
Sven Hesse
285ba14e23 GOB: Make the demoplayer use the new VideoPlayer interface
svn-id: r51885
2010-08-08 00:51:09 +00:00
Sven Hesse
737ef02707 VIDEO/GOB: Stub hasEmbeddedFile / getEmbeddedFile
Stubbing CoktelDecoder::hasEmbeddedFile() and
CoktelDecoder::getEmbeddedFile(), formerly hasExtraData/getExtraData.

svn-id: r51875
2010-08-08 00:46:34 +00:00
Sven Hesse
f956f059e3 GOB: Minor cleanup
svn-id: r51873
2010-08-08 00:45:27 +00:00
Sven Hesse
2296aad042 VIDEO/GOB: Fix IMD playing
Fix IMD playing for some fringe cases, especially when seeking
beforehand.

svn-id: r51871
2010-08-08 00:44:33 +00:00
Sven Hesse
fecbdf60a9 VIDEO/GOB: Implement IMD frame rendering
svn-id: r51867
2010-08-08 00:42:59 +00:00
Sven Hesse
31ecaa5275 GOB: Make o2_playImd use the new VideoPlayer interface
svn-id: r51864
2010-08-08 00:41:22 +00:00
Sven Hesse
863872216f GOB: Basic video playback using the new interface
Implement basic video playback using the new VideoPlayer interface.
Still quite stubby, still lots of stuff missing.

svn-id: r51856
2010-08-08 00:37:19 +00:00
Sven Hesse
59b9b3bc2b GOB: Implement the new VideoPlayer::openVideo function further
svn-id: r51853
2010-08-08 00:35:50 +00:00
Sven Hesse
f8a43ee35f GOB: Stub the new VideoPlayer interface
This is will be the new, less convoluted interface for playing videos
within the gob engine. No actual functionality is implemented yet, and
old functions are mostly commented out for now.

svn-id: r51851
2010-08-08 00:34:33 +00:00
Sven Hesse
a802e1e64f VIDEO: Stub a VideoDecoder-like CoktelDecoder
This creates a new CoktelDecoder class using the VideoDecoder
interface, which will eventually become the new way to decode
PreIMD, IMD and VMD videos.
Since the VideoPlayer in gob is not yet ready for this, we're
disabling all video playback in the gob engine for now.

svn-id: r51850
2010-08-08 00:33:59 +00:00
Sven Hesse
c8d5f21010 Adding support for the early Fascination IMD format
svn-id: r48234
2010-03-11 06:15:23 +00:00
Sven Hesse
3668895abc CoktelVideo cleanup: Splitting up some IMD methods and removing the obsolete notifyPaused()
svn-id: r42715
2009-07-24 21:36:42 +00:00
Sven Hesse
025702ba40 /Finally/ fixing the longstanding flicker bug in Woodruff. I was completely mistaken about its cause, too
svn-id: r42572
2009-07-17 20:03:41 +00:00
Sven Hesse
df52a5d58e Adding a workaround for the vanishing Coh Cott bug (#1972466), which is actually an error in that video file
svn-id: r42570
2009-07-17 19:22:12 +00:00
Sven Hesse
e861fab808 Added a Key and ShortKey enum
svn-id: r42121
2009-07-05 11:27:11 +00:00
Sven Hesse
ebc9e38ed0 Fixing the Woodruff intro: Using a flag that's /not/ already used be the scripts
svn-id: r41306
2009-06-06 21:41:22 +00:00
Sven Hesse
2901694486 Demoplayer:
- Fixing the flawed double mode
- Adding an "auto" double mode, where the videos get scaled if possible

svn-id: r41294
2009-06-06 19:06:47 +00:00
Max Horn
400d2b10af GOB: Replaced many uses of strdupcpy by Common::String
svn-id: r41077
2009-05-31 16:59:45 +00:00
Filippos Karapetis
11251cf296 Moved the Coktel video player into its own subdirectory
svn-id: r40755
2009-05-21 10:48:03 +00:00
Sven Hesse
43f58b2869 Moving CoktelVideo (IMD/VMD) and the Indeo3 code (needed for Urban Runner's VMDs) to graphics/video/
svn-id: r40744
2009-05-20 20:41:10 +00:00
Sven Hesse
d0c88ca6a0 Playing half-sized videos fullscreen in the demoplayer
svn-id: r40211
2009-04-29 19:58:43 +00:00
Sven Hesse
d8972c3f2c The video now works correctly in the non-interactive Urban Runner demo
svn-id: r40128
2009-04-24 21:30:40 +00:00
Sven Hesse
4d3a4a85f6 Rotating the object backwards in the magnifing view works now
svn-id: r35396
2008-12-16 20:21:29 +00:00
Sven Hesse
c45f149ea1 First step at getting the magnifier and memory view corrected
svn-id: r35389
2008-12-16 02:57:48 +00:00
Sven Hesse
bbe6ff006e Music/Video handling fixes/stubs
svn-id: r35351
2008-12-14 03:08:02 +00:00