rpcsx/rpcs3/Emu/PSP2/Modules/sceVideodec.cpp

79 lines
2.4 KiB
C++
Raw Normal View History

#include "stdafx.h"
#include "Emu/System.h"
2016-05-13 12:17:26 +02:00
#include "Emu/PSP2/ARMv7Module.h"
2015-06-21 01:04:01 +02:00
#include "sceVideodec.h"
2017-05-13 20:30:37 +02:00
logs::channel sceVideodec("sceVideodec");
2016-02-01 22:53:16 +01:00
s32 sceVideodecInitLibrary(u32 codecType, vm::cptr<SceVideodecQueryInitInfo> pInitInfo)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
s32 sceVideodecTermLibrary(u32 codecType)
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
s32 sceAvcdecQueryDecoderMemSize(u32 codecType, vm::cptr<SceAvcdecQueryDecoderInfo> pDecoderInfo, vm::ptr<SceAvcdecDecoderInfo> pMemInfo)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
s32 sceAvcdecCreateDecoder(u32 codecType, vm::ptr<SceAvcdecCtrl> pCtrl, vm::cptr<SceAvcdecQueryDecoderInfo> pDecoderInfo)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceAvcdecDeleteDecoder(vm::ptr<SceAvcdecCtrl> pCtrl)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceAvcdecDecodeAvailableSize(vm::ptr<SceAvcdecCtrl> pCtrl)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
s32 sceAvcdecDecode(vm::ptr<SceAvcdecCtrl> pCtrl, vm::cptr<SceAvcdecAu> pAu, vm::ptr<SceAvcdecArrayPicture> pArrayPicture)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceAvcdecDecodeStop(vm::ptr<SceAvcdecCtrl> pCtrl, vm::ptr<SceAvcdecArrayPicture> pArrayPicture)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceAvcdecDecodeFlush(vm::ptr<SceAvcdecCtrl> pCtrl)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
2016-02-01 22:53:16 +01:00
#define REG_FUNC(nid, name) REG_FNID(SceVideodecUser, nid, name)
2016-02-01 22:53:16 +01:00
DECLARE(arm_module_manager::SceVideodec)("SceVideodecUser", []()
{
2015-01-30 11:48:12 +01:00
REG_FUNC(0xF1AF65A3, sceVideodecInitLibrary);
REG_FUNC(0x3A5F4924, sceVideodecTermLibrary);
REG_FUNC(0x97E95EDB, sceAvcdecQueryDecoderMemSize);
REG_FUNC(0xE82BB69B, sceAvcdecCreateDecoder);
REG_FUNC(0x8A0E359E, sceAvcdecDeleteDecoder);
REG_FUNC(0x441673E3, sceAvcdecDecodeAvailableSize);
REG_FUNC(0xD6190A06, sceAvcdecDecode);
REG_FUNC(0x9648D853, sceAvcdecDecodeStop);
REG_FUNC(0x25F31020, sceAvcdecDecodeFlush);
//REG_FUNC(0xB2A428DB, sceAvcdecCsc);
//REG_FUNC(0x6C68A38F, sceAvcdecDecodeNalAu);
//REG_FUNC(0xC67C1A80, sceM4vdecQueryDecoderMemSize);
//REG_FUNC(0x17C6AC9E, sceM4vdecCreateDecoder);
//REG_FUNC(0x0EB2E4E7, sceM4vdecDeleteDecoder);
//REG_FUNC(0xA8CF1942, sceM4vdecDecodeAvailableSize);
//REG_FUNC(0x624664DB, sceM4vdecDecode);
//REG_FUNC(0x87CFD23B, sceM4vdecDecodeStop);
//REG_FUNC(0x7C460D75, sceM4vdecDecodeFlush);
//REG_FUNC(0xB4BC325B, sceM4vdecCsc);
});