Commit Graph
202 Commits
Author SHA1 Message Date
Glenn Maynard 034c7f4a41 bring back MovieTexture_FFMpeg::RegisterProtocols 2005-10-29 03:25:39 +00:00
Glenn Maynard 0ac45b8853 handle all frame decoding stuff in DecodePacket 2005-10-27 00:09:17 +00:00
Glenn Maynard 7ba01f023d renderer for "experimental" theora decoder. (not sure if I should try to merge
dupe code here, or just split them into separate decoders; this will probably
change)
2005-10-25 21:53:33 +00:00
Glenn Maynard 330f0a783c MovieDecoder_Theora is reading the entire file when given a non-Ogg. Treat holes at the beginning of the file as fatal. 2005-10-24 05:19:53 +00:00
Glenn Maynard 20f8e3e08f MovieDecoder_Theora is reading the entire file when given a non-Ogg. This fix should expose the actual problem (rest of the fix coming). 2005-10-24 05:06:51 +00:00
Glenn Maynard 59fb0dbe41 move code 2005-10-21 18:59: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 2513b7aac1 cleanup:
hopefully deal with unknown extension headers (untested)
 require ogg, not vorbis
2005-10-21 05:44:33 +00:00
Glenn Maynard 42e88812ea works without this 2005-10-21 01:46:46 +00:00
Glenn Maynard 6ee40039a8 cleanup 2005-10-21 01:45:16 +00:00
Glenn Maynard f77dd38f0f cleanup 2005-10-21 01:39:07 +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 8b023b1d50 fix log 2005-10-20 21:09:09 +00:00
Glenn Maynard d17aaf31fb fix duration (seconds per frame, not frames per second) 2005-10-20 21:07:25 +00:00
Glenn Maynard 50d6089532 temp workaround 2005-10-20 20:47:01 +00:00
Glenn Maynard f4cb784da8 fix type 2005-10-20 20:46:41 +00:00
Glenn Maynard cffe83e32f fix wrong pixel formats used 2005-10-20 20:43:28 +00:00
Glenn Maynard a9e940560b fix warning 2005-10-20 20:39:23 +00:00
Glenn Maynard ee492d5284 work around namespace error 2005-10-20 20:38:57 +00:00
Glenn Maynard f500aac258 XIPH_LIB_DIR -> OGG_LIB_DIR 2005-10-20 11:11:26 +00:00
Glenn Maynard 240d8d904b loader 2005-10-20 10:55:20 +00:00
Glenn Maynard 5209d7505b Add Ogg Theora decoder.
This still uses avcodec for YUV to RGB conversion.
2005-10-20 10:54:48 +00:00
Glenn Maynard 0baed8b4ce cleanup 2005-10-20 08:33:37 +00:00
Glenn Maynard e577a5bbab unneeded 2005-10-20 08:26:40 +00:00
Glenn Maynard 5476c7bf9e comments, cleanup 2005-10-20 08:16:48 +00:00
Glenn Maynard d196641baa Export format searching stuff, so other formats can use it. 2005-10-20 07:58:16 +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
Glenn Maynard d9df0a769c better abstraction 2005-10-20 01:34:31 +00:00
Glenn Maynard 37029c2d0d cleanup 2005-10-19 23:52:16 +00:00
Glenn Maynard 68eac42eda not true 2005-10-19 23:44:55 +00:00
Glenn Maynard 34e63ee650 cleanup 2005-10-19 23:44:07 +00:00
Glenn Maynard f8d4610281 cleanup, abstract duration 2005-10-19 23:41:48 +00:00
Glenn Maynard 6f19f6f9ef push more stuff into FFMpeg_Helper (aiming for a generic helper class,
like RageSoundDriver_Generic_Software)
2005-10-19 23:27:00 +00:00
Glenn Maynard 7decd479ee cleanups 2005-10-19 23:06:23 +00:00
Glenn Maynard f28f2f3343 cleanups 2005-10-19 23:03:38 +00:00
Glenn Maynard 244af2a495 cleanup 2005-10-19 22:57:36 +00:00
Glenn Maynard f4064fe03c cleanup 2005-10-19 21:58:40 +00:00
Glenn Maynard 63314211fc cleanup 2005-10-19 21:57:25 +00:00
Chris Danford 4f44d6591f FindPixelFormat returns PixelFormat_INVALID, not NUM_PixelFormat 2005-10-02 04:55:27 +00:00
Chris Danford bc6c7c89bc move PixelFormat outside of RageDisplay because so many classes outside of RageDisplay use it.
Log PixelFormat strings instead of numbers for easier to read logs.
2005-09-29 17:15:12 +00:00
Chris Danford 48ebc53549 return NULL -> return CString() for clarity and efficiency 2005-09-04 16:55:21 +00:00
Glenn Maynard 6aa187a695 cleanup 2005-09-03 20:57:58 +00:00
Renaud Lepage eb0704bf41 Big defines patch : replace HAVE_XBOX with HAVE_XDK. In some cases where HAVE_DIRECTX was ambiguous, clarification was added. Another bug surfaced here : Who said FFMPEG was needed on xbox? In any case, investigation of ffmpeg-xbox will commence as soon as we can get SMX to boot again :) 2005-08-23 22:51:21 +00:00
Renaud Lepage 9783942cdc Updated for code clarity 2005-08-23 22:16:29 +00:00
Steve Checkoway a430b09479 Gcc, be quiet! 2005-05-30 11:10:47 +00:00
Chris Danford c1ab0fcdb3 hook up MonkeyInput and DebugLights to debug menu 2005-05-16 19:47:30 +00:00
Thad Ward 5949e5bc90 (this is possibly going to annoy some people, but..)
put all (obvious) MSVC lines in #if defined(_MSC_VER) blocks, primarilly
to allow alternative win32 compilers to be used.
2005-05-11 04:43:54 +00:00
Glenn Maynard 45404fc986 fix dshow 2005-05-04 05:05:58 +00:00
Ryan Dortmans 6ed565681f Fixed xbox compile errors. 2005-04-30 05:22:14 +00:00