libSceVideoDecoderArbitration 技术债

libSceVideoDecoderArbitration 技术债

未知函数信息

  • sceVideoDecoderArbitrationAcceptEvent、sceVideoDecoderArbitrationEnable 和 sceVideoDecoderArbitrationInitialize(libSceVideoDecoderArbitration)- 参数检查通过后会抛出异常:主机模块接下来会调用 sceVideoArbitrationAcceptEvent、sceVideoArbitrationEnable 和 sceVideoArbitrationInitialize 并映射其返回值,这部分尚未实现。如果无法读取参数块(主机模块会不经检查直接读取),这些函数也会抛出异常。已声明的参数类型只反映模块读取的数据宽度;大小字段之后的参数块字段含义,以及回调签名,均未知。这里只确认了 32 位返回值。
  • 参数检查(libSceVideoDecoderArbitration)- 根据反汇编分析,而非在 PS5 实机上运行:固件 13.42 的 libSceVideoDecoderArbitration.sprx(SHA-256 40ddb3e99ee78bacf0196519ab82658140cec80ea8d6bc734124c66bb954eeb4)中,sceVideoDecoderArbitrationInitialize(0xf0)会在参数块为空或 64 位大小不等于 0x18 时返回 0x81570001;偏移 8 处的 32 位值不在 0x100-0x2FF 范围内时返回 0x81570004;偏移 0x10 处的 64 位值不在 1-0x7F 范围内时返回 0x81570001。模块已初始化时返回的 0x81570002(0xc018,仅由模块自身的成功路径设置)在此处无法触发。sceVideoDecoderArbitrationEnable(0x1e0)会在第一个参数非零或第二个参数为空时返回 0x81570001;sceVideoDecoderArbitrationAcceptEvent(0x2a0)会在事件值大于 1 时返回同一错误。
  • sceVideoDecoderArbitrationEnableSuspendMode(libSceVideoDecoderArbitration)- 与主机模块(0x270)一样返回 0,但不会输出该模块会打印的 [ERR]sceVideoDecoderArbitrationEnableSuspendMode() This API is not available.。

原文:docs/dev/debt/libSceVideoDecoderArbitration.md · 固定提交:dcdfbef70008b4892048784b217f63ed1c286f5b

非官方中文译文。原作者:boykopovar 及 AnyPS5 项目贡献者。许可证:GPL-2.0-only;来源许可与修改说明。