mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 10:21:21 +00:00
cellAdec, cellVpost headers
This commit is contained in:
parent
9351e50f63
commit
08b4748aae
@ -6,57 +6,59 @@
|
||||
void cellAdec_init();
|
||||
Module cellAdec(0x0006, cellAdec_init);
|
||||
|
||||
int cellAdecQueryAttr()
|
||||
int cellAdecQueryAttr(mem_ptr_t<CellAdecType> type, mem_ptr_t<CellAdecAttr> attr)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellAdec);
|
||||
cellAdec.Error("cellAdecQueryAttr(type_addr=0x%x, attr_addr=0x%x)", type.GetAddr(), attr.GetAddr());
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellAdecOpen()
|
||||
int cellAdecOpen(mem_ptr_t<CellAdecType> type, mem_ptr_t<CellAdecResource> res, mem_ptr_t<CellAdecCb> cb, mem32_t handle)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellAdec);
|
||||
cellAdec.Error("cellAdecOpen(type_addr=0x%x, res_addr=0x%x, cb_addr=0x%x, handle_addr=0x%x)",
|
||||
type.GetAddr(), res.GetAddr(), cb.GetAddr(), handle.GetAddr());
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellAdecOpenEx()
|
||||
int cellAdecOpenEx(mem_ptr_t<CellAdecType> type, mem_ptr_t<CellAdecResourceEx> res, mem_ptr_t<CellAdecCb> cb, mem32_t handle)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellAdec);
|
||||
cellAdec.Error("cellAdecOpenEx(type_addr=0x%x, res_addr=0x%x, cb_addr=0x%x, handle_addr=0x%x)",
|
||||
type.GetAddr(), res.GetAddr(), cb.GetAddr(), handle.GetAddr());
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellAdecClose()
|
||||
int cellAdecClose(u32 handle)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellAdec);
|
||||
cellAdec.Error("cellAdecClose(handle=0x%x)", handle);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellAdecStartSeq()
|
||||
int cellAdecStartSeq(u32 handle, u32 param_addr)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellAdec);
|
||||
cellAdec.Error("cellAdecStartSeq(handle=0x%x, param_addr=0x%x)", handle, param_addr);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellAdecEndSeq()
|
||||
int cellAdecEndSeq(u32 handle)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellAdec);
|
||||
cellAdec.Error("cellAdecEndSeq(handle=0x%x)", handle);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellAdecDecodeAu()
|
||||
int cellAdecDecodeAu(u32 handle, mem_ptr_t<CellAdecAuInfo> auInfo)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellAdec);
|
||||
cellAdec.Error("cellAdecDecodeAu(handle=0x%x, auInfo_addr=0x%x)", handle, auInfo.GetAddr());
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellAdecGetPcm()
|
||||
int cellAdecGetPcm(u32 handle, u32 outBuffer_addr)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellAdec);
|
||||
cellAdec.Error("cellAdecGetPcm(handle=0x%x, outBuffer_addr=0x%x)", handle, outBuffer_addr);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellAdecGetPcmItem()
|
||||
int cellAdecGetPcmItem(u32 handle, u32 pcmItem_ptr_addr)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellAdec);
|
||||
cellAdec.Error("cellAdecGetPcmItem(handle=0x%x, pcmItem_ptr_addr=0x%x)", handle, pcmItem_ptr_addr);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -6,33 +6,37 @@
|
||||
void cellVpost_init();
|
||||
Module cellVpost(0x0008, cellVpost_init);
|
||||
|
||||
int cellVpostQueryAttr()
|
||||
int cellVpostQueryAttr(const mem_ptr_t<CellVpostCfgParam> cfgParam, mem_ptr_t<CellVpostAttr> attr)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellVpost);
|
||||
cellVpost.Error("cellVpostQueryAttr(cfgParam_addr=0x%x, attr_addr=0x%x)", cfgParam.GetAddr(), attr.GetAddr());
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellVpostOpen()
|
||||
int cellVpostOpen(const mem_ptr_t<CellVpostCfgParam> cfgParam, const mem_ptr_t<CellVpostResource> resource, mem32_t handle)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellVpost);
|
||||
cellVpost.Error("cellVpostOpen(cfgParam_addr=0x%x, resource_addr=0x%x, handle_addr=0x%x)",
|
||||
cfgParam.GetAddr(), resource.GetAddr(), handle.GetAddr());
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellVpostOpenEx()
|
||||
int cellVpostOpenEx(const mem_ptr_t<CellVpostCfgParam> cfgParam, const mem_ptr_t<CellVpostResourceEx> resource, mem32_t handle)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellVpost);
|
||||
cellVpost.Error("cellVpostOpenEx(cfgParam_addr=0x%x, resource_addr=0x%x, handle_addr=0x%x)",
|
||||
cfgParam.GetAddr(), resource.GetAddr(), handle.GetAddr());
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellVpostClose()
|
||||
int cellVpostClose(u32 handle)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellVpost);
|
||||
cellVpost.Error("cellVpostClose(handle=0x%x)", handle);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellVpostExec()
|
||||
int cellVpostExec(u32 handle, const u32 inPicBuff_addr, const mem_ptr_t<CellVpostCtrlParam> ctrlParam,
|
||||
u32 outPicBuff_addr, mem_ptr_t<CellVpostPictureInfo> picInfo)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellVpost);
|
||||
cellVpost.Error("cellVpostExec(handle=0x%x, inPicBuff_addr=0x%x, ctrlParam_addr=0x%x, outPicBuff_addr=0x%x, picInfo_addr=0x%x)",
|
||||
handle, inPicBuff_addr, ctrlParam.GetAddr(), outPicBuff_addr, picInfo.GetAddr());
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
@ -135,4 +135,183 @@ enum
|
||||
CELL_VPOST_CSC_ERROR_E_FATAL_SNDCMD_FAIL = 0x806184c0,
|
||||
CELL_VPOST_CSC_ERROR_E_FATAL_RCVRES_FAIL = 0x806184c1,
|
||||
CELL_VPOST_CSC_ERROR_E_FATAL_SPUCORE_FAIL = 0x806184c2,
|
||||
};
|
||||
};
|
||||
|
||||
enum CellVpostPictureDepth
|
||||
{
|
||||
CELL_VPOST_PIC_DEPTH_8,
|
||||
};
|
||||
|
||||
enum CellVpostPictureFormatIn
|
||||
{
|
||||
CELL_VPOST_PIC_FMT_IN_YUV420_PLANAR,
|
||||
};
|
||||
|
||||
enum CellVpostPictureFormatOut
|
||||
{
|
||||
CELL_VPOST_PIC_FMT_OUT_RGBA_ILV,
|
||||
CELL_VPOST_PIC_FMT_OUT_YUV420_PLANAR,
|
||||
};
|
||||
|
||||
enum CellVpostPictureStructure
|
||||
{
|
||||
CELL_VPOST_PIC_STRUCT_PFRM,
|
||||
CELL_VPOST_PIC_STRUCT_IFRM,
|
||||
CELL_VPOST_PIC_STRUCT_ITOP,
|
||||
CELL_VPOST_PIC_STRUCT_IBTM,
|
||||
};
|
||||
|
||||
enum CellVpostExecType
|
||||
{
|
||||
CELL_VPOST_EXEC_TYPE_PFRM_PFRM,
|
||||
CELL_VPOST_EXEC_TYPE_PTOP_ITOP,
|
||||
CELL_VPOST_EXEC_TYPE_PBTM_IBTM,
|
||||
CELL_VPOST_EXEC_TYPE_ITOP_PFRM,
|
||||
CELL_VPOST_EXEC_TYPE_IBTM_PFRM,
|
||||
CELL_VPOST_EXEC_TYPE_IFRM_IFRM,
|
||||
CELL_VPOST_EXEC_TYPE_ITOP_ITOP,
|
||||
CELL_VPOST_EXEC_TYPE_IBTM_IBTM,
|
||||
};
|
||||
|
||||
enum CellVpostChromaPositionType
|
||||
{
|
||||
CELL_VPOST_CHROMA_POS_TYPE_A,
|
||||
CELL_VPOST_CHROMA_POS_TYPE_B,
|
||||
};
|
||||
|
||||
enum CellVpostScanType
|
||||
{
|
||||
CELL_VPOST_SCAN_TYPE_P,
|
||||
CELL_VPOST_SCAN_TYPE_I,
|
||||
};
|
||||
|
||||
enum CellVpostQuantRange
|
||||
{
|
||||
CELL_VPOST_QUANT_RANGE_FULL,
|
||||
CELL_VPOST_QUANT_RANGE_BROADCAST,
|
||||
};
|
||||
|
||||
enum CellVpostColorMatrix
|
||||
{
|
||||
CELL_VPOST_COLOR_MATRIX_BT601,
|
||||
CELL_VPOST_COLOR_MATRIX_BT709,
|
||||
};
|
||||
|
||||
enum CellVpostScalerType
|
||||
{
|
||||
CELL_VPOST_SCALER_TYPE_BILINEAR,
|
||||
CELL_VPOST_SCALER_TYPE_LINEAR_SHARP,
|
||||
CELL_VPOST_SCALER_TYPE_2X4TAP,
|
||||
CELL_VPOST_SCALER_TYPE_8X4TAP,
|
||||
};
|
||||
|
||||
enum CellVpostIpcType
|
||||
{
|
||||
CELL_VPOST_IPC_TYPE_DOUBLING,
|
||||
CELL_VPOST_IPC_TYPE_LINEAR,
|
||||
CELL_VPOST_IPC_TYPE_MAVG,
|
||||
};
|
||||
|
||||
struct CellVpostCfgParam
|
||||
{
|
||||
be_t<u32> inMaxWidth;
|
||||
be_t<u32> inMaxHeight;
|
||||
be_t<CellVpostPictureDepth> inDepth;
|
||||
be_t<CellVpostPictureFormatIn> inPicFmt;
|
||||
|
||||
be_t<u32> outMaxWidth;
|
||||
be_t<u32> outMaxHeight;
|
||||
be_t<CellVpostPictureDepth> outDepth;
|
||||
be_t<CellVpostPictureFormatOut> outPicFmt;
|
||||
|
||||
be_t<u32> reserved1;
|
||||
be_t<u32> reserved2;
|
||||
};
|
||||
|
||||
struct CellVpostAttr
|
||||
{
|
||||
be_t<u32> memSize;
|
||||
u8 delay;
|
||||
be_t<u32> vpostVerUpper;
|
||||
be_t<u32> vpostVerLower;
|
||||
};
|
||||
|
||||
struct CellVpostResource
|
||||
{
|
||||
be_t<u32> memAddr;
|
||||
be_t<u32> memSize;
|
||||
be_t<s32> ppuThreadPriority;
|
||||
be_t<u32> ppuThreadStackSize;
|
||||
be_t<s32> spuThreadPriority;
|
||||
be_t<u32> numOfSpus;
|
||||
};
|
||||
|
||||
struct CellVpostResourceEx
|
||||
{
|
||||
be_t<u32> memAddr;
|
||||
be_t<u32> memSize;
|
||||
be_t<u32> spurs_addr;
|
||||
u8 priority[8];
|
||||
be_t<u32> maxContention;
|
||||
};
|
||||
|
||||
struct CellVpostWindow
|
||||
{
|
||||
be_t<u32> x;
|
||||
be_t<u32> y;
|
||||
be_t<u32> width;
|
||||
be_t<u32> height;
|
||||
};
|
||||
|
||||
struct CellVpostCtrlParam
|
||||
{
|
||||
be_t<CellVpostExecType> execType;
|
||||
|
||||
be_t<CellVpostScalerType> scalerType;
|
||||
be_t<CellVpostIpcType> ipcType;
|
||||
|
||||
be_t<u32> inWidth;
|
||||
be_t<u32> inHeight;
|
||||
be_t<CellVpostChromaPositionType> inChromaPosType;
|
||||
be_t<CellVpostQuantRange> inQuantRange;
|
||||
be_t<CellVpostColorMatrix> inColorMatrix;
|
||||
CellVpostWindow inWindow;
|
||||
|
||||
be_t<u32> outWidth;
|
||||
be_t<u32> outHeight;
|
||||
CellVpostWindow outWindow;
|
||||
u8 outAlpha;
|
||||
|
||||
be_t<u64> userData;
|
||||
|
||||
be_t<u32> reserved1;
|
||||
be_t<u32> reserved2;
|
||||
};
|
||||
|
||||
struct CellVpostPictureInfo
|
||||
{
|
||||
be_t<u32> inWidth;
|
||||
be_t<u32> inHeight;
|
||||
be_t<CellVpostPictureDepth> inDepth;
|
||||
be_t<CellVpostScanType> inScanType;
|
||||
be_t<CellVpostPictureFormatIn> inPicFmt;
|
||||
be_t<CellVpostChromaPositionType> inChromaPosType;
|
||||
be_t<CellVpostPictureStructure> inPicStruct;
|
||||
be_t<CellVpostQuantRange> inQuantRange;
|
||||
be_t<CellVpostColorMatrix> inColorMatrix;
|
||||
|
||||
be_t<u32> outWidth;
|
||||
be_t<u32> outHeight;
|
||||
be_t<CellVpostPictureDepth> outDepth;
|
||||
be_t<CellVpostScanType> outScanType;
|
||||
be_t<CellVpostPictureFormatOut> outPicFmt;
|
||||
be_t<CellVpostChromaPositionType> outChromaPosType;
|
||||
be_t<CellVpostPictureStructure> outPicStruct;
|
||||
be_t<CellVpostQuantRange> outQuantRange;
|
||||
be_t<CellVpostColorMatrix> outColorMatrix;
|
||||
|
||||
be_t<u64> userData;
|
||||
|
||||
be_t<u32> reserved1;
|
||||
be_t<u32> reserved2;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user