diff options
| author | donkopunchstania <donkopunchstania@gmail.com> | 2009-10-10 21:19:39 +0000 |
|---|---|---|
| committer | donkopunchstania <donkopunchstania@gmail.com> | 2009-10-10 21:19:39 +0000 |
| commit | 56214e91037279fb16cca0af75c1dec2d8432426 (patch) | |
| tree | 353ae7939c065e55d08e425553482d64668f112f /Source/Core/Common/Src/PluginVideo.cpp | |
| parent | 5049fcf9f547676aba022d3be8e1b2145b24e9b4 (diff) | |
Moving pixel engine and command processor from core to video common. This will break previous save states. Adds decoding single pixels to texture decoder.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4391 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/PluginVideo.cpp')
| -rw-r--r-- | Source/Core/Common/Src/PluginVideo.cpp | 54 |
1 files changed, 40 insertions, 14 deletions
diff --git a/Source/Core/Common/Src/PluginVideo.cpp b/Source/Core/Common/Src/PluginVideo.cpp index 159f72f261..bc8a2e9164 100644 --- a/Source/Core/Common/Src/PluginVideo.cpp +++ b/Source/Core/Common/Src/PluginVideo.cpp @@ -23,7 +23,6 @@ namespace Common PluginVideo::PluginVideo(const char *_Filename) : CPlugin(_Filename), validVideo(false) { Video_Prepare = 0; - Video_SendFifoData = 0; Video_BeginField = 0; Video_EndField = 0; Video_EnterLoop = 0; @@ -31,11 +30,17 @@ PluginVideo::PluginVideo(const char *_Filename) : CPlugin(_Filename), validVideo Video_Screenshot = 0; Video_AddMessage = 0; Video_AccessEFB = 0; + Video_SetRendering = 0; + Video_CommandProcessorRead16 = 0; + Video_CommandProcessorWrite16 = 0; + Video_PixelEngineRead16 = 0; + Video_PixelEngineWrite16 = 0; + Video_PixelEngineWrite32 = 0; + Video_GatherPipeBursted = 0; + Video_WaitForFrameFinish = 0; Video_Prepare = reinterpret_cast<TVideo_Prepare> (LoadSymbol("Video_Prepare")); - Video_SendFifoData = reinterpret_cast<TVideo_SendFifoData> - (LoadSymbol("Video_SendFifoData")); Video_BeginField = reinterpret_cast<TVideo_BeginField> (LoadSymbol("Video_BeginField")); Video_EndField = reinterpret_cast<TVideo_EndField> @@ -50,19 +55,40 @@ PluginVideo::PluginVideo(const char *_Filename) : CPlugin(_Filename), validVideo (LoadSymbol("Video_AddMessage")); Video_AccessEFB = reinterpret_cast<TVideo_AccessEFB> (LoadSymbol("Video_AccessEFB")); - Video_SetRendering = reinterpret_cast<TVideo_SetRendering> + Video_SetRendering = reinterpret_cast<TVideo_SetRendering> (LoadSymbol("Video_SetRendering")); + Video_CommandProcessorRead16 = reinterpret_cast<TVideo_Read16> + (LoadSymbol("Video_CommandProcessorRead16")); + Video_CommandProcessorWrite16 = reinterpret_cast<TVideo_Write16> + (LoadSymbol("Video_CommandProcessorWrite16")); + Video_PixelEngineRead16 = reinterpret_cast<TVideo_Read16> + (LoadSymbol("Video_PixelEngineRead16")); + Video_PixelEngineWrite16 = reinterpret_cast<TVideo_Write16> + (LoadSymbol("Video_PixelEngineWrite16")); + Video_PixelEngineWrite32 = reinterpret_cast<TVideo_Write32> + (LoadSymbol("Video_PixelEngineWrite32")); + Video_GatherPipeBursted = reinterpret_cast<TVideo_GatherPipeBursted> + (LoadSymbol("Video_GatherPipeBursted")); + Video_WaitForFrameFinish = reinterpret_cast<TVideo_WaitForFrameFinish> + (LoadSymbol("Video_WaitForFrameFinish")); - if ((Video_Prepare != 0) && - (Video_SendFifoData != 0) && - (Video_BeginField != 0) && - (Video_EndField != 0) && - (Video_EnterLoop != 0) && - (Video_ExitLoop != 0) && - (Video_Screenshot != 0) && - (Video_AddMessage != 0) && - (Video_SetRendering != 0) && - (Video_AccessEFB != 0)) + if ((Video_Prepare != 0) && + (Video_BeginField != 0) && + (Video_EndField != 0) && + (Video_EnterLoop != 0) && + (Video_ExitLoop != 0) && + (Video_Screenshot != 0) && + (Video_AddMessage != 0) && + (Video_SetRendering != 0) && + (Video_AccessEFB != 0) && + (Video_SetRendering != 0) && + (Video_CommandProcessorRead16 != 0) && + (Video_CommandProcessorWrite16 != 0) && + (Video_PixelEngineRead16 != 0) && + (Video_PixelEngineWrite16 != 0) && + (Video_PixelEngineWrite32 != 0) && + (Video_GatherPipeBursted != 0) && + (Video_WaitForFrameFinish != 0)) validVideo = true; } |
