mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 00:22:57 -05:00
Decode and Flush let FFmpeg crop every picture to its display size, so a 1080p H.264 stream came out as 1920x1080 with the chroma after 1080 luma rows. The console reports and writes the coded picture: EVO-PLAYER-PS5's hardware run of a 1080p H.264 IDR returned 1920x1088 with pitch 2048 and the chroma after the 1088 luma rows, and ProsperoLight rejects a 1080p H.264 or HEVC picture whose height is not 1088. FFmpeg's cropping is now off, so the frame size, the chroma offset and the sizes in the AVC picture info are those of the coded picture. The pitch is unchanged, and the frame size QueryDecoderMemoryInfo reports, which aligns the maximum height to 32 rows, still holds a picture coded within the maximum and the macroblock-padded H.264 picture of a maximum given as the display size. libSceVdecsw derived its crop offsets from the difference between that size and the macroblock grid, which is now zero. It takes the crop FFmpeg exports for the picture from libSceVideodec2 instead. The H.264 fixture is coded at 64x48 with frame_crop_bottom_offset 4: its pictures are checked at 64x48 and the crop through Vdecsw. The HEVC and VP9 fixtures are coded at 64x40 and keep their hashes. The new hashes come from FFmpeg 8.1 decoding with apply_cropping 0, hashed as the tests do; the same method reproduces every previous H.264, HEVC and VP9 hash. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>