Commit Graph
9 Commits
Author SHA1 Message Date
Glenn Maynard b77024f3bc include 2006-09-18 22:45:42 +00:00
Steve Checkoway 6ea2a41b00 Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible. 2006-09-17 01:19:19 +00:00
Glenn Maynard 3def328a9a spacing 2006-02-14 11:40:24 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 0bc413262d Pass the surface directly to GetFrame, and a timestamp if frame skipping is
enabled.
 - This is simpler--two fewer entry points, and a trivial decode path.
 - Puts the mechanics of frame skipping in the decoder's control.  Previously,
   all we did was skip conversion and texture updates.  Now, the decoder
   can be smarter: skip B-frames, or skip to a keyframe.
 - This allows for faster decodes, using slice-based conversion: YUV conversion
   can be done at the same time as decoding.
2005-10-21 07:47:06 +00:00
Glenn Maynard 073d9e5290 MovieDecoders shouldn't need TEXTUREMAN. 2005-10-21 01:32:39 +00:00
Glenn Maynard 99eb66b31b - if m_bWantRewind is true at the start of DecodeFrame (probably called Seek),
don't make spurious calls to GetFrame (waste of CPU)
 - fix DecodeFrame setting FRAME_DECODED without actually decoding a frame on EOF
   after loop
update comment
(probably not related to "movie not looping" problems)
2005-10-21 00:49:18 +00:00
Glenn Maynard 5476c7bf9e comments, cleanup 2005-10-20 08:16:48 +00:00
Glenn Maynard e2151e0178 Split out generic parts of movie decoder, to make it easier to implement others.
We could make MovieDecoder the arch class, with MovieTexture_Generic
replacing RageMovieTexture, but it forces a pull-based API, and DShow
insists on being callback-based ...
2005-10-20 07:19:42 +00:00