rpcsx/ps3fw/cellCelpEnc.cpp

100 lines
2.7 KiB
C++
Raw Normal View History

2020-12-05 13:08:24 +01:00
#include "stdafx.h"
2016-03-21 20:43:03 +01:00
#include "Emu/Cell/PPUModule.h"
#include "cellCelpEnc.h"
LOG_CHANNEL(cellCelpEnc);
2019-11-16 23:31:23 +01:00
template <>
void fmt_class_string<CellCelpEncError>::format(std::string& out, u64 arg)
{
2019-11-16 23:31:23 +01:00
format_enum(out, arg, [](CellCelpEncError value)
{
switch (value)
{
STR_CASE(CELL_CELPENC_ERROR_FAILED);
STR_CASE(CELL_CELPENC_ERROR_SEQ);
STR_CASE(CELL_CELPENC_ERROR_ARG);
STR_CASE(CELL_CELPENC_ERROR_CORE_FAILED);
STR_CASE(CELL_CELPENC_ERROR_CORE_SEQ);
STR_CASE(CELL_CELPENC_ERROR_CORE_ARG);
}
2019-11-16 23:31:23 +01:00
return unknown;
});
2019-11-16 23:31:23 +01:00
}
error_code cellCelpEncQueryAttr(vm::ptr<CellCelpEncAttr> attr)
{
cellCelpEnc.todo("cellCelpEncQueryAttr(attr=*0x%x)", attr);
return CELL_OK;
}
2019-11-16 23:31:23 +01:00
error_code cellCelpEncOpen(vm::ptr<CellCelpEncResource> res, vm::ptr<void> handle)
{
2019-11-16 23:31:23 +01:00
cellCelpEnc.todo("cellCelpEncOpen(res=*0x%x ,attr=*0x%x)", res, handle);
return CELL_OK;
}
2019-11-16 23:31:23 +01:00
error_code cellCelpEncOpenEx(vm::ptr<CellCelpEncResourceEx> res, vm::ptr<void> handle)
{
2019-11-16 23:31:23 +01:00
cellCelpEnc.todo("cellCelpEncOpenEx(res=*0x%x ,attr=*0x%x)", res, handle);
return CELL_OK;
}
2019-11-16 23:31:23 +01:00
error_code cellCelpEncOpenExt()
{
2019-11-16 23:31:23 +01:00
cellCelpEnc.todo("cellCelpEncOpenExt()");
return CELL_OK;
}
2019-11-16 23:31:23 +01:00
error_code cellCelpEncClose(vm::ptr<void> handle)
{
2019-11-16 23:31:23 +01:00
cellCelpEnc.todo("cellCelpEncClose(handle=*0x%x)", handle);
return CELL_OK;
}
2019-11-16 23:31:23 +01:00
error_code cellCelpEncStart(vm::ptr<void> handle, vm::ptr<CellCelpEncParam> param)
{
2019-11-16 23:31:23 +01:00
cellCelpEnc.todo("cellCelpEncStart(handle=*0x%x, attr=*0x%x)", handle, param);
return CELL_OK;
}
2019-11-16 23:31:23 +01:00
error_code cellCelpEncEnd(vm::ptr<void> handle)
{
2019-11-16 23:31:23 +01:00
cellCelpEnc.todo("cellCelpEncEnd(handle=*0x%x)", handle);
return CELL_OK;
}
2019-11-16 23:31:23 +01:00
error_code cellCelpEncEncodeFrame(vm::ptr<void> handle, vm::ptr<CellCelpEncPcmInfo> frameInfo)
{
2019-11-16 23:31:23 +01:00
cellCelpEnc.todo("cellCelpEncEncodeFrame(handle=*0x%x, frameInfo=*0x%x)", handle, frameInfo);
return CELL_OK;
}
2019-11-16 23:31:23 +01:00
error_code cellCelpEncWaitForOutput(vm::ptr<void> handle)
{
2019-11-16 23:31:23 +01:00
cellCelpEnc.todo("cellCelpEncWaitForOutput(handle=*0x%x)", handle);
return CELL_OK;
}
2019-11-16 23:31:23 +01:00
error_code cellCelpEncGetAu(vm::ptr<void> handle, vm::ptr<void> outBuffer, vm::ptr<CellCelpEncAuInfo> auItem)
{
2019-11-16 23:31:23 +01:00
cellCelpEnc.todo("cellCelpEncGetAu(handle=*0x%x, outBuffer=*0x%x, auItem=*0x%x)", handle, outBuffer, auItem);
return CELL_OK;
}
2016-03-21 20:43:03 +01:00
DECLARE(ppu_module_manager::cellCelpEnc)("cellCelpEnc", []()
{
REG_FUNC(cellCelpEnc, cellCelpEncQueryAttr);
REG_FUNC(cellCelpEnc, cellCelpEncOpen);
REG_FUNC(cellCelpEnc, cellCelpEncOpenEx);
REG_FUNC(cellCelpEnc, cellCelpEncOpenExt);
REG_FUNC(cellCelpEnc, cellCelpEncClose);
REG_FUNC(cellCelpEnc, cellCelpEncStart);
REG_FUNC(cellCelpEnc, cellCelpEncEnd);
REG_FUNC(cellCelpEnc, cellCelpEncEncodeFrame);
REG_FUNC(cellCelpEnc, cellCelpEncWaitForOutput);
REG_FUNC(cellCelpEnc, cellCelpEncGetAu);
});