2009-07-28 21:32:10 +00:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2009-03-28 08:57:34 +00:00
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
|
|
|
|
#ifndef _PLUGINVIDEO_H_
|
|
|
|
#define _PLUGINVIDEO_H_
|
2009-01-15 06:48:15 +00:00
|
|
|
|
|
|
|
#include "pluginspecs_video.h"
|
|
|
|
#include "Plugin.h"
|
|
|
|
|
|
|
|
namespace Common {
|
2009-02-21 12:07:03 +00:00
|
|
|
|
|
|
|
typedef void (__cdecl* TVideo_Prepare)();
|
|
|
|
typedef void (__cdecl* TVideo_SendFifoData)(u8*,u32);
|
2009-07-11 02:34:16 +00:00
|
|
|
typedef void (__cdecl* TVideo_BeginField)(u32, FieldType, u32, u32);
|
2009-07-15 22:20:59 +00:00
|
|
|
typedef void (__cdecl* TVideo_EndField)();
|
2009-02-21 12:07:03 +00:00
|
|
|
typedef bool (__cdecl* TVideo_Screenshot)(const char* filename);
|
|
|
|
typedef void (__cdecl* TVideo_EnterLoop)();
|
|
|
|
typedef void (__cdecl* TVideo_ExitLoop)();
|
2009-08-08 01:39:56 +00:00
|
|
|
typedef void (__cdecl* TVideo_SetRendering)(bool bEnabled);
|
2009-02-21 12:07:03 +00:00
|
|
|
typedef void (__cdecl* TVideo_AddMessage)(const char* pstr, unsigned int milliseconds);
|
2010-06-15 21:19:09 +00:00
|
|
|
typedef u32 (__cdecl* TVideo_AccessEFB)(EFBAccessType, u32, u32, u32);
|
2009-10-10 21:19:39 +00:00
|
|
|
typedef void (__cdecl* TVideo_Read16)(u16& _rReturnValue, const u32 _Address);
|
|
|
|
typedef void (__cdecl* TVideo_Write16)(const u16 _Data, const u32 _Address);
|
|
|
|
typedef void (__cdecl* TVideo_Read32)(u32& _rReturnValue, const u32 _Address);
|
|
|
|
typedef void (__cdecl* TVideo_Write32)(const u32 _Data, const u32 _Address);
|
|
|
|
typedef void (__cdecl* TVideo_GatherPipeBursted)();
|
|
|
|
typedef void (__cdecl* TVideo_WaitForFrameFinish)();
|
2010-06-24 13:28:54 +00:00
|
|
|
typedef bool (__cdecl* TVideo_IsFifoBusy)();
|
2010-08-10 07:25:35 +00:00
|
|
|
typedef void (__cdecl* TVideo_AbortFrame)();
|
2009-02-21 12:07:03 +00:00
|
|
|
|
|
|
|
class PluginVideo : public CPlugin
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PluginVideo(const char *_Filename);
|
|
|
|
virtual ~PluginVideo();
|
|
|
|
virtual bool IsValid() {return validVideo;};
|
|
|
|
|
2009-10-10 21:19:39 +00:00
|
|
|
TVideo_Prepare Video_Prepare;
|
|
|
|
TVideo_EnterLoop Video_EnterLoop;
|
|
|
|
TVideo_ExitLoop Video_ExitLoop;
|
|
|
|
TVideo_BeginField Video_BeginField;
|
|
|
|
TVideo_EndField Video_EndField;
|
|
|
|
TVideo_AccessEFB Video_AccessEFB;
|
2009-02-21 12:07:03 +00:00
|
|
|
|
2009-10-10 21:19:39 +00:00
|
|
|
TVideo_AddMessage Video_AddMessage;
|
|
|
|
TVideo_Screenshot Video_Screenshot;
|
2009-02-21 12:07:03 +00:00
|
|
|
|
2009-10-10 21:19:39 +00:00
|
|
|
TVideo_SetRendering Video_SetRendering;
|
|
|
|
|
|
|
|
TVideo_Read16 Video_CommandProcessorRead16;
|
|
|
|
TVideo_Write16 Video_CommandProcessorWrite16;
|
|
|
|
TVideo_Read16 Video_PixelEngineRead16;
|
|
|
|
TVideo_Write16 Video_PixelEngineWrite16;
|
|
|
|
TVideo_Write32 Video_PixelEngineWrite32;
|
|
|
|
TVideo_GatherPipeBursted Video_GatherPipeBursted;
|
|
|
|
TVideo_WaitForFrameFinish Video_WaitForFrameFinish;
|
2010-06-24 13:28:54 +00:00
|
|
|
TVideo_IsFifoBusy Video_IsFifoBusy;
|
2010-08-10 07:25:35 +00:00
|
|
|
TVideo_AbortFrame Video_AbortFrame;
|
2009-02-21 12:07:03 +00:00
|
|
|
private:
|
|
|
|
bool validVideo;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
2009-01-15 06:48:15 +00:00
|
|
|
|
2009-03-28 08:57:34 +00:00
|
|
|
#endif // _PLUGINVIDEO_H_
|