2020-12-05 13:08:24 +01:00
|
|
|
#include "stdafx.h"
|
2016-03-21 20:43:03 +01:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2016-07-14 23:02:07 +02:00
|
|
|
#include "cellCelp8Enc.h"
|
|
|
|
|
|
2018-08-25 14:39:00 +02:00
|
|
|
LOG_CHANNEL(cellCelp8Enc);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
template <>
|
|
|
|
|
void fmt_class_string<CellCelp8EncError>::format(std::string& out, u64 arg)
|
|
|
|
|
{
|
|
|
|
|
format_enum(out, arg, [](CellCelp8EncError value)
|
|
|
|
|
{
|
2025-04-05 21:50:45 +02:00
|
|
|
switch (value)
|
|
|
|
|
{
|
|
|
|
|
STR_CASE(CELL_CELP8ENC_ERROR_FAILED);
|
|
|
|
|
STR_CASE(CELL_CELP8ENC_ERROR_SEQ);
|
|
|
|
|
STR_CASE(CELL_CELP8ENC_ERROR_ARG);
|
|
|
|
|
STR_CASE(CELL_CELP8ENC_ERROR_CORE_FAILED);
|
|
|
|
|
STR_CASE(CELL_CELP8ENC_ERROR_CORE_SEQ);
|
|
|
|
|
STR_CASE(CELL_CELP8ENC_ERROR_CORE_ARG);
|
|
|
|
|
}
|
2019-11-16 23:31:23 +01:00
|
|
|
|
2025-04-05 21:50:45 +02:00
|
|
|
return unknown;
|
|
|
|
|
});
|
2019-11-16 23:31:23 +01:00
|
|
|
}
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
error_code cellCelp8EncQueryAttr(vm::ptr<CellCelp8EncAttr> attr)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2019-11-16 23:31:23 +01:00
|
|
|
cellCelp8Enc.todo("cellCelp8EncQueryAttr(attr=*0x%x)", attr);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
error_code cellCelp8EncOpen(vm::ptr<CellCelp8EncResource> res, vm::pptr<void> handle)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2019-11-16 23:31:23 +01:00
|
|
|
cellCelp8Enc.todo("cellCelp8EncOpen(res=*0x%x, handle=*0x%x)", res, handle);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
error_code cellCelp8EncOpenEx(vm::ptr<CellCelp8EncResource> res, vm::pptr<void> handle)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2019-11-16 23:31:23 +01:00
|
|
|
cellCelp8Enc.todo("cellCelp8EncOpenEx(res=*0x%x, handle=*0x%x)", res, handle);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
error_code cellCelp8EncClose(vm::ptr<void> handle)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2019-11-16 23:31:23 +01:00
|
|
|
cellCelp8Enc.todo("cellCelp8EncClose(handle=*0x%x)", handle);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
error_code cellCelp8EncStart(vm::ptr<void> handle, vm::ptr<CellCelp8EncParam> param)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2019-11-16 23:31:23 +01:00
|
|
|
cellCelp8Enc.todo("cellCelp8EncStart(handle=*0x%x, param=*0x%x)", handle, param);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
error_code cellCelp8EncEnd(vm::ptr<void> handle)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2019-11-16 23:31:23 +01:00
|
|
|
cellCelp8Enc.todo("cellCelp8EncEnd(handle=*0x%x)", handle);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
error_code cellCelp8EncEncodeFrame(vm::ptr<void> handle, vm::ptr<CellCelp8EncPcmInfo> frameInfo)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2019-11-16 23:31:23 +01:00
|
|
|
cellCelp8Enc.todo("cellCelp8EncEncodeFrame(handle=*0x%x, frameInfo=*0x%x)", handle, frameInfo);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
error_code cellCelp8EncWaitForOutput(vm::ptr<void> handle)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2019-11-16 23:31:23 +01:00
|
|
|
cellCelp8Enc.todo("cellCelp8EncWaitForOutput(handle=*0x%x)", handle);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-16 23:31:23 +01:00
|
|
|
error_code cellCelp8EncGetAu(vm::ptr<void> handle, vm::ptr<void> outBuffer, vm::ptr<CellCelp8EncAuInfo> auItem)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2019-11-16 23:31:23 +01:00
|
|
|
cellCelp8Enc.todo("cellCelp8EncGetAu(handle=*0x%x, outBuffer=*0x%x, auItem=*0x%x)", handle, outBuffer, auItem);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-21 20:43:03 +01:00
|
|
|
DECLARE(ppu_module_manager::cellCelp8Enc)("cellCelp8Enc", []()
|
2025-04-05 21:50:45 +02:00
|
|
|
{
|
|
|
|
|
REG_FUNC(cellCelp8Enc, cellCelp8EncQueryAttr);
|
|
|
|
|
REG_FUNC(cellCelp8Enc, cellCelp8EncOpen);
|
|
|
|
|
REG_FUNC(cellCelp8Enc, cellCelp8EncOpenEx);
|
|
|
|
|
REG_FUNC(cellCelp8Enc, cellCelp8EncClose);
|
|
|
|
|
REG_FUNC(cellCelp8Enc, cellCelp8EncStart);
|
|
|
|
|
REG_FUNC(cellCelp8Enc, cellCelp8EncEnd);
|
|
|
|
|
REG_FUNC(cellCelp8Enc, cellCelp8EncEncodeFrame);
|
|
|
|
|
REG_FUNC(cellCelp8Enc, cellCelp8EncWaitForOutput);
|
|
|
|
|
REG_FUNC(cellCelp8Enc, cellCelp8EncGetAu);
|
|
|
|
|
});
|