mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
libSceVideodec's five exports were stubs that threw. Decoder creation, decoding, flushing, resetting and deleting are implemented with the structure layouts of shadPS4's PS4 library, and the decode runs through libSceVideodec2, which decodes H.264 with FFmpeg. The picture is copied into the caller's frame buffer with the pitch aligned to 64 and the coded height, the chroma after the luma rows, and the picture information holds the timestamps and the crop offsets. A guest test decodes the H.264 fixture through the library and checks the pictures against the reference hashes.