Commit Graph

439 Commits

Author SHA1 Message Date
Andre Heider
311b267863 merge SurfaceKeyColored into Surface
svn-id: r35951
2009-01-20 15:21:47 +00:00
Filippos Karapetis
b107b7db47 Stop recalculating the x and y coordinates for every frame in playVideo()
svn-id: r35819
2009-01-11 04:41:22 +00:00
Filippos Karapetis
f997ea3c6e Oops... *really* fixed compilation
svn-id: r35818
2009-01-11 04:23:57 +00:00
Filippos Karapetis
ffa104da85 Fixed compilation
svn-id: r35817
2009-01-11 04:20:59 +00:00
Filippos Karapetis
0b4dd7c459 Committed a modified version of wjp's patch for the video player:
- Split the video player from the video decoders. It's now possible to have one video player for multiple decoders
- Added the palette weight calculation from the BS1 engine into VideoPlayer::setPalette. It's now possible to find the values of the white and black colors via getWhite() and getBlack() (useful for subtitle overlays)
- Adapted FTA2's movie playing code to the new changes to video player
- Fixed a slight bug in the DXA decoder (_videoinfo.startTime was not initialized)

svn-id: r35816
2009-01-11 03:34:50 +00:00
Eugene Sandulenko
83972e2001 Merge in Virtual Keybpard & KeyMapper branch,
- Merge is perfromed in order to not let rotting the code
- Makefile modifications were avoided

Stuff to resolve:
- Circular dependency of common/vkeybd from graphics/
- Make it compilable (?)
- Add some keyboards
- Decide on the key bindings

svn-id: r35813
2009-01-11 00:20:27 +00:00
Max Horn
900f328c81 Reduced header deps
svn-id: r35781
2009-01-07 23:36:41 +00:00
Filippos Karapetis
9752501a07 videoIsLoaded() -> isVideoLoaded()
svn-id: r35777
2009-01-07 22:06:15 +00:00
Filippos Karapetis
2e1fa58cf8 Clear the screen to black before showing a video with playVideo() (it's meant to play full screen videos)
svn-id: r35776
2009-01-07 21:57:05 +00:00
Filippos Karapetis
272a9d06a8 Initialize DXA buffers to 0 when they're allocated
svn-id: r35775
2009-01-07 21:45:21 +00:00
Filippos Karapetis
88a9a5a6ca Move videoPalette inside setPalette(), as it's only used there
svn-id: r35774
2009-01-07 21:43:54 +00:00
Filippos Karapetis
2772a7aaf1 Further merging of the SMK and DXA players (the FLIC player is not done yet):
- Added a new class, VideoPlayer(), from which both the SMK and the DXA player inherit. This class provides generic functions and public methods for the inherited video classes. Default implementations have been made for these public methods, and the virtual ones can be overriden in inherited classes
- There is now a default implementation of the function that sets the video palette
- A basic video player for inherited classes has been added with method playVideo(). This is able to play a fullscreen non-interactive video, which can be skipped with events set by the caller. Postprocessing methods, which draw upon each frame (e.g. subtitles) can be done by implementing performPostProcessing()
- The FTA2 movie player now uses the new playVideo() method
- The new video player code is compatible with the old one (i.e. no changes to the existing engine code are necessary), but it's now possible to reduce engine code for video playing considerably

svn-id: r35772
2009-01-07 21:19:00 +00:00
Filippos Karapetis
a930f40272 An attempt to unify the different video players (FLIC player is not finished yet) - step 1
svn-id: r35757
2009-01-06 17:44:41 +00:00
Filippos Karapetis
c528f888d0 Specify that implementations of setPalette() should use an RGB palette
svn-id: r35755
2009-01-06 16:10:04 +00:00
Max Horn
d104e6fe33 Workaround issue in Graphics::Surface code on Haiku
svn-id: r35745
2009-01-05 20:12:25 +00:00
Filippos Karapetis
70ab22e9f2 Added a copyFrameToBuffer() method to the FLIC player too, like in the other players
svn-id: r35742
2009-01-05 17:05:50 +00:00
Filippos Karapetis
7f9ea7e35c Added Doxygen-like comments to the FLIC player, and changed it a bit to have similar method names as the DXA and Smacker players. Also, removed the convenience method hasFrames(), as it's the same as getFrameCount() > 0
svn-id: r35741
2009-01-05 15:10:13 +00:00
Filippos Karapetis
dc661e62a9 Removed unused reference to OSystem
svn-id: r35740
2009-01-05 15:05:12 +00:00
Sven Hesse
0430bb9b3a Proper lag calculation even if the SMK has no audio
svn-id: r35698
2009-01-03 13:31:23 +00:00
Johannes Schickel
71001f23c4 Cleanup.
svn-id: r35657
2009-01-01 23:54:09 +00:00
Max Horn
9752882f8b Fingolfin says: If an #ifdef __SYMBIAN32__ is needed here, the Symbian folks should add it. In the meantime, this FIXME comment serves no purpose :)
svn-id: r35652
2009-01-01 21:32:30 +00:00
Max Horn
569636eb54 Removed Graphics::ImageMan. Nothing uses it
svn-id: r35638
2008-12-31 15:11:39 +00:00
Max Horn
1c0fe87410 Clarified some ImageMan doxygen comments
svn-id: r35629
2008-12-31 13:43:50 +00:00
Sven Hesse
6d072a321b Adding support for specifying an index that will be ignored when building the PaletteLUT (for transparent values that should never be found)
svn-id: r35584
2008-12-27 22:47:34 +00:00
Sven Hesse
213c09c211 Adding a magic id and a version number to the PaletteLUT cache
svn-id: r35582
2008-12-27 19:53:54 +00:00
Sven Hesse
a4a209a2f6 Initializing the lookahead values, too. No more valgrind warnings anymore :)
svn-id: r35581
2008-12-27 19:37:49 +00:00
Sven Hesse
2b37e183dc Fixing the invalid read (BitStream having a 2 byte lookahead and all :P)
svn-id: r35579
2008-12-27 18:57:36 +00:00
Max Horn
87a2747744 Turned FSNode into a ArchiveMember subclass; removed the now obsolete FSDirectoryMember; moved FSDirectory from common/archive.h to common/fs.h
svn-id: r35578
2008-12-27 18:03:27 +00:00
Filippos Karapetis
db1a4b4789 The BitStream class has a 2 byte lookahead. Hopefully, this will fix the invalid reads in the audio stream
svn-id: r35577
2008-12-27 18:01:19 +00:00
Jordi Vilalta Prat
d18d2d72a8 Fix for the SliderWidget glitch when showing very small values (and potentially for other small widgets)
svn-id: r35557
2008-12-26 12:15:51 +00:00
Filippos Karapetis
891fb0f5c0 Silenced signed/unsigned warning
svn-id: r35531
2008-12-24 22:40:10 +00:00
Sven Hesse
00baeacf60 Documenting the dither code a bit more and removing SierraLight's not needed height argument
svn-id: r35530
2008-12-24 16:59:37 +00:00
Sven Hesse
74024ff3e5 Moving the dither code to graphics/
svn-id: r35526
2008-12-24 15:57:43 +00:00
Jordi Vilalta Prat
b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Jordi Vilalta Prat
1ccce41c8f Fix the rendering of stroked tabs
svn-id: r35479
2008-12-22 09:47:13 +00:00
Eugene Sandulenko
829cbc4110 Move all video players to separate directory
svn-id: r35470
2008-12-21 21:08:17 +00:00
Travis Howell
f510b28a49 Fix warnings.
svn-id: r35462
2008-12-21 11:49:58 +00:00
Filippos Karapetis
86f4233883 Fixed compilation
svn-id: r35461
2008-12-21 11:47:50 +00:00
Travis Howell
587e70809a Return exact frame rate in Smacker player, and minor cleanup.
svn-id: r35458
2008-12-21 05:55:37 +00:00
Travis Howell
76624fc69c Add initial Smacker support for The Feeble Files.
svn-id: r35457
2008-12-21 04:36:11 +00:00
Filippos Karapetis
a6e4bd793f Hopefully fixed invalid buffer reads
svn-id: r35446
2008-12-19 21:55:18 +00:00
Sven Hesse
519815cb51 memset()ing the output image with 0 at the start
svn-id: r35438
2008-12-19 13:55:55 +00:00
Filippos Karapetis
b7dbd3ec06 Some slight cleanup
svn-id: r35435
2008-12-19 08:22:25 +00:00
Sven Hesse
91e386c584 Making curPos an uint32, so that it won't overflow anymore
svn-id: r35433
2008-12-19 01:45:55 +00:00
Sven Hesse
55edaf0945 Fixing 16bit audio
svn-id: r35432
2008-12-19 01:01:07 +00:00
Sven Hesse
6d19ee6e64 Adding convenience functions to get the time to wait for the next frame, while keeping A/V sync
svn-id: r35431
2008-12-19 00:14:18 +00:00
Sven Hesse
9cd759c526 Fixing 8bit audio
svn-id: r35430
2008-12-18 23:50:59 +00:00
Filippos Karapetis
8b6237756b Oops, base values are read in the correct order now
svn-id: r35426
2008-12-18 19:32:44 +00:00
Filippos Karapetis
d314ee2447 Audio support for Smacker videos. Audio doesn't sound right yet, though
svn-id: r35425
2008-12-18 19:18:45 +00:00
Torbjörn Andersson
50563cbcce Fixed warnings. Hopefully without breaking anything.
svn-id: r35420
2008-12-18 05:04:55 +00:00