2020-07-16 12:14:57 +02: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 "cellJpgEnc.h"
|
|
|
|
|
|
|
2018-08-25 14:39:00 +02:00
|
|
|
|
LOG_CHANNEL(cellJpgEnc);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
2020-07-16 12:14:57 +02:00
|
|
|
|
template <>
|
|
|
|
|
|
void fmt_class_string<CellJpgEncError>::format(std::string& out, u64 arg)
|
|
|
|
|
|
{
|
|
|
|
|
|
format_enum(out, arg, [](auto error)
|
|
|
|
|
|
{
|
|
|
|
|
|
switch (error)
|
|
|
|
|
|
{
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_ARG);
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_SEQ);
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_BUSY);
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_EMPTY);
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_RESET);
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_FATAL);
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_STREAM_ABORT);
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_STREAM_SKIP);
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_STREAM_OVERFLOW);
|
|
|
|
|
|
STR_CASE(CELL_JPGENC_ERROR_STREAM_FILE_OPEN);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return unknown;
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncQueryAttr()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncOpen()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncOpenEx()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncClose()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncWaitForInput()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncEncodePicture()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncEncodePicture2()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncWaitForOutput()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncGetStreamInfo()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
|
s32 cellJpgEncReset()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellJpgEnc);
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-03-21 20:43:03 +01:00
|
|
|
|
DECLARE(ppu_module_manager::cellJpgEnc)("cellJpgEnc", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
|
{
|
2015-02-20 14:58:40 +01:00
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncQueryAttr);
|
|
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncOpen);
|
|
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncOpenEx);
|
|
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncClose);
|
|
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncWaitForInput);
|
|
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncEncodePicture);
|
|
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncEncodePicture2);
|
|
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncWaitForOutput);
|
|
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncGetStreamInfo);
|
|
|
|
|
|
REG_FUNC(cellJpgEnc, cellJpgEncReset);
|
2015-07-29 17:39:34 +02:00
|
|
|
|
});
|