1.5 KiB
1.5 KiB
libSceVideodec2 technical debt
Unknown function info
- sceVideodec2GetAvcPictureInfo (libSceVideodec2) - runs the
sceVideodec2GetPictureInfobody (KytyPS5 binds both NIDs to one function; SharpProspero gives both the sameoutputInfo, first, secondsignature); the second (bottom field) picture info is never written, since only progressive H.264 output is modelled. prosper calls the AVC layout unestablished (no title observed calling it)
Functional
- sceVideodec2CreateDecoder (libSceVideodec2) decodes HEVC (codec type 974921) and VP9 (2382845) through FFmpeg, besides H.264. The tags come from SharpProspero's
Videodec2CodecTypeand EVO-PLAYER-PS5'ssce_videodec2.h, which records them from hardware runs. HEVC input is converted from length-prefixed NAL units to Annex B as for H.264, and VP9 frames are passed through. Output is the same 8-bit NV12 for every codec; a decoder for HEVC Main10 or VP9 Profile 2 is created, but a frame deeper than 8 bits throws, since the console's 10-bit output layout is unknown, andQueryDecoderMemoryInforeports the 8-bit frame size for it.sceVideodec2GetPictureInfoandsceVideodec2GetAvcPictureInfothrow for HEVC and VP9 pictures, which use other layouts (SceVideodec2HevcPictureInfo,SceVideodec2Vp9PictureInfo), andsceVideodec2GetHevcPictureInfoandsceVideodec2GetVp9PictureInfoare not exported