feat(videoout): accept the STRICT_COLORIMETRY buffer option #647

Merged
Celegans12 merged 1 commit from upstream-pr/647 into main 2026-10-05 18:54:16 +00:00
Celegans12 commented 2026-10-05 10:54:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-05T10:54:43Z.


What

sceVideoOutRegisterBuffers2 and sceVideoOutSubmitChangeBufferAttribute2 threw for every buffer option other than 0.

  • Option 8, VIDEO_OUT_BUFFER_ATTRIBUTE_OPTION_STRICT_COLORIMETRY, is presented exactly as option 0. Any other value throws, including 8 combined with ALPHA_PREMULTIPLIED (32).
  • Names and values from KytyPS5 (src/graphics/presentation/videoOut.cpp); shadPS4's video_out.h (PS4 reference) has the same value for option 8.
  • The error names what it rejects: VideoOut: unsupported tiling 0, pitch 0, aspect ratio 0 or buffer option 32.
  • PPSA26344 v1.008 builds its attributes with the libSceAgc helper linked into the title (0x16162a0, sceVideoOutSetBufferAttribute2 call at 0x1616393); its calls at 0xccffd3 and 0xcd143d pick format-table rows with option 8.
  • What the console changes for option 8 is unknown; recorded under "Unknown function info" in TechnicalDebt.
  • The title's buffers are also category 1 and still throw VideoOut: DCC presentation is not implemented; a follow-up PR stacked on this one implements DCC presentation.

Tested

  • Windows 11, MinGW-w64 GCC 15.2.0, based on main 53dc19cf: configure -DBUILD_TESTING=ON, full build, --target libs, ctest:
  • 284/284 tests pass (ctest --output-on-failure)
  • video_out_flip_tests decode (not part of ctest, as in #297): option 8 describes the same buffer as option 0; options 1, 32 and 40 throw with the value in the message. With main's Buffer.cpp it fails at the option-8 row.
  • PPSA26344 v1.008: on main its first sceVideoOutRegisterBuffers2 throws at the option check; with this change it reaches the DCC check above.
  • Not tested: Linux (CI), console behaviour.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4743817614 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/647). Originally posted by [Celegans12](https://github.com/Celegans12) on 2026-10-05T10:54:43Z. --- ### What `sceVideoOutRegisterBuffers2` and `sceVideoOutSubmitChangeBufferAttribute2` threw for every buffer option other than 0. - Option 8, `VIDEO_OUT_BUFFER_ATTRIBUTE_OPTION_STRICT_COLORIMETRY`, is presented exactly as option 0. Any other value throws, including 8 combined with `ALPHA_PREMULTIPLIED` (32). - Names and values from KytyPS5 (`src/graphics/presentation/videoOut.cpp`); shadPS4's `video_out.h` (PS4 reference) has the same value for option 8. - The error names what it rejects: `VideoOut: unsupported tiling 0, pitch 0, aspect ratio 0 or buffer option 32`. - PPSA26344 v1.008 builds its attributes with the libSceAgc helper linked into the title (0x16162a0, `sceVideoOutSetBufferAttribute2` call at 0x1616393); its calls at 0xccffd3 and 0xcd143d pick format-table rows with option 8. - What the console changes for option 8 is unknown; recorded under "Unknown function info" in TechnicalDebt. - The title's buffers are also category 1 and still throw `VideoOut: DCC presentation is not implemented`; a follow-up PR stacked on this one implements DCC presentation. ### Tested - Windows 11, MinGW-w64 GCC 15.2.0, based on `main` 53dc19cf: configure `-DBUILD_TESTING=ON`, full build, `--target libs`, `ctest`: - 284/284 tests pass (`ctest --output-on-failure`) - `video_out_flip_tests decode` (not part of ctest, as in #297): option 8 describes the same buffer as option 0; options 1, 32 and 40 throw with the value in the message. With `main`'s `Buffer.cpp` it fails at the option-8 row. - PPSA26344 v1.008: on `main` its first `sceVideoOutRegisterBuffers2` throws at the option check; with this change it reaches the DCC check above. - Not tested: Linux (CI), console behaviour. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-05 18:14:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T18:14:42Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#709 docs/dev/TechnicalDebt.md L27
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6000379502 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/647#issuecomment-6000379502). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T18:14:42Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #709 | `docs/dev/TechnicalDebt.md` [L27](https://github.com/boykopovar/AnyPS5/blob/3c681d5199c9dd71d9a7259cbaa5d7ffa48ac64d/docs/dev/TechnicalDebt.md#L27) | | |
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!647
No description provided.