rpcsx/ps3fw/cellJpgEnc.cpp

104 lines
2 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 "cellJpgEnc.h"
LOG_CHANNEL(cellJpgEnc);
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;
});
2020-07-16 12:14:57 +02:00
}
s32 cellJpgEncQueryAttr()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
s32 cellJpgEncOpen()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
s32 cellJpgEncOpenEx()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
s32 cellJpgEncClose()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
s32 cellJpgEncWaitForInput()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
s32 cellJpgEncEncodePicture()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
s32 cellJpgEncEncodePicture2()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
s32 cellJpgEncWaitForOutput()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
s32 cellJpgEncGetStreamInfo()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
s32 cellJpgEncReset()
{
UNIMPLEMENTED_FUNC(cellJpgEnc);
return CELL_OK;
}
2016-03-21 20:43:03 +01:00
DECLARE(ppu_module_manager::cellJpgEnc)("cellJpgEnc", []()
{
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);
});