mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Stub cellRec functions
This commit is contained in:
parent
9f3f07f3ae
commit
be84dd73a9
1 changed files with 61 additions and 12 deletions
|
@ -1,41 +1,90 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "Emu/Cell/PPUModule.h"
|
#include "Emu/Cell/PPUModule.h"
|
||||||
|
|
||||||
|
namespace vm { using namespace ps3; }
|
||||||
|
|
||||||
logs::channel cellRec("cellRec");
|
logs::channel cellRec("cellRec");
|
||||||
|
|
||||||
s32 cellRecOpen()
|
struct CellRecSpursParam
|
||||||
{
|
{
|
||||||
fmt::throw_exception("Unimplemented" HERE);
|
vm::ptr<struct CellSpurs> pSpurs;
|
||||||
|
be_t<s32> spu_usage_rate;
|
||||||
|
u8 priority[8];
|
||||||
|
};
|
||||||
|
|
||||||
|
struct CellRecOption
|
||||||
|
{
|
||||||
|
be_t<s32> option;
|
||||||
|
union
|
||||||
|
{
|
||||||
|
be_t<s32> ppu_thread_priority;
|
||||||
|
be_t<s32> spu_thread_priority;
|
||||||
|
be_t<s32> capture_priority;
|
||||||
|
be_t<s32> use_system_spu;
|
||||||
|
be_t<s32> fit_to_youtube;
|
||||||
|
be_t<s32> xmb_bgm;
|
||||||
|
be_t<s32> mpeg4_fast_encode;
|
||||||
|
be_t<u32> ring_sec;
|
||||||
|
be_t<s32> video_input;
|
||||||
|
be_t<s32> audio_input;
|
||||||
|
be_t<s32> audio_input_mix_vol;
|
||||||
|
be_t<s32> reduce_memsize;
|
||||||
|
be_t<s32> show_xmb;
|
||||||
|
vm::ptr<char> metadata_filename;
|
||||||
|
vm::ptr<CellRecSpursParam> pSpursParam;
|
||||||
|
be_t<u64> dummy;
|
||||||
|
} value;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct CellRecParam
|
||||||
|
{
|
||||||
|
be_t<s32> videoFmt;
|
||||||
|
be_t<s32> audioFmt;
|
||||||
|
be_t<s32> numOfOpt;
|
||||||
|
vm::ptr<CellRecOption> pOpt;
|
||||||
|
};
|
||||||
|
|
||||||
|
using CellRecCallback = void(s32 recStatus, s32 recError, vm::ptr<void> userdata);
|
||||||
|
|
||||||
|
s32 cellRecOpen(vm::cptr<char> pDirName, vm::cptr<char> pFileName, vm::cptr<CellRecParam> pParam, u32 container, vm::ptr<CellRecCallback> cb, vm::ptr<void> cbUserData)
|
||||||
|
{
|
||||||
|
cellRec.todo("cellRecOpen(pDirName=%s, pFileName=%s, pParam=*0x%x, container=0x%x, cb=*0x%x, cbUserData=*0x%x)", pDirName, pFileName, pParam, container, cb, cbUserData);
|
||||||
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 cellRecClose()
|
s32 cellRecClose(s32 isDiscard)
|
||||||
{
|
{
|
||||||
fmt::throw_exception("Unimplemented" HERE);
|
cellRec.todo("cellRecClose(isDiscard=0x%x)", isDiscard);
|
||||||
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 cellRecGetInfo()
|
void cellRecGetInfo(s32 info, vm::ptr<u64> pValue)
|
||||||
{
|
{
|
||||||
fmt::throw_exception("Unimplemented" HERE);
|
cellRec.todo("cellRecGetInfo(info=0x%x, pValue=*0x%x)", info, pValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 cellRecStop()
|
s32 cellRecStop()
|
||||||
{
|
{
|
||||||
fmt::throw_exception("Unimplemented" HERE);
|
cellRec.todo("cellRecStop()");
|
||||||
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 cellRecStart()
|
s32 cellRecStart()
|
||||||
{
|
{
|
||||||
fmt::throw_exception("Unimplemented" HERE);
|
cellRec.todo("cellRecStart()");
|
||||||
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 cellRecQueryMemSize()
|
u32 cellRecQueryMemSize(vm::cptr<CellRecParam> pParam)
|
||||||
{
|
{
|
||||||
fmt::throw_exception("Unimplemented" HERE);
|
cellRec.todo("cellRecQueryMemSize(pParam=*0x%x)", pParam);
|
||||||
|
return 1 * 1024 * 1024; // dummy memory size
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 cellRecSetInfo()
|
s32 cellRecSetInfo(s32 setInfo, u64 value)
|
||||||
{
|
{
|
||||||
fmt::throw_exception("Unimplemented" HERE);
|
cellRec.todo("cellRecSetInfo(setInfo=0x%x, value=0x%x)", setInfo, value);
|
||||||
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue