Skip to content

docs(videodec2): record public evidence for 10-bit output - #2427

Closed
RipcuBAN wants to merge 1 commit into
boykopovar:mainfrom
RipcuBAN:docs/videodec2-10bit-output-evidence
Closed

RipcuBAN wants to merge 1 commit into
boykopovar:mainfrom
RipcuBAN:docs/videodec2-10bit-output-evidence

Conversation

@RipcuBAN

@RipcuBAN RipcuBAN commented Oct 9, 2026

Copy link
Copy Markdown

What

Record public evidence that narrows the unknown Videodec2 10-bit output layout: distinct sample/byte pitches, contiguous Y and interleaved UV, and a shader factor consistent with low-bit samples in 16-bit words. Source links in the debt entry are pinned to EVO-PLAYER-PS5 commit 9ee9a5420c73b5be448610e5f0a90a29a75592f3.

This is a documentation-only contribution. Raw sample words, frameFormat and alignment remain unverified; frames deeper than 8 bits still throw. It does not implement Main10 or claim a hardware measurement. Standard P010 uses the high bits (Microsoft definition), so its name alone does not justify selecting an FFmpeg conversion.

In EVO, ro_harvest borrows the decoder buffer and sets the UV offset to byte pitch times coded height. The examined stage_plane path uses the buffer directly or copies rows (source). Its UNORM descriptors and SDR shader use the factor 64.0615844, approximately 65535 / 1023. A shader defect or a transformation outside the examined path is still possible.

Overlap: #2161 adds HEVC picture metadata for 8-bit output and updates the preceding decoder debt entry. This adds a separate item and changes no exports. Documentation conflicts can retain both entries. Searches for open PRs mentioning Videodec2 and P010 found no equivalent 10-bit evidence entry; this is not an exhaustive review of every open patch.

Tested

Windows, Python 3.11+: ran the local source extractor and arithmetic verifier; verified the downloaded pinned source bytes against the local inputs. Checked all 1,024 samples under both assumed R16 UNORM layouts. Maximum error against sample/1023: low bits 1.283588924e-8, high bits 63.0000008215. For sample 512 the results are approximately 0.500489 and 32.031281.

scale = 64.0615844
for shift in (0, 6):
    error = max(abs(((sample << shift) / 65535) * scale - sample / 1023)
                for sample in range(1024))
    print(shift, error, error <= 1e-6)

The local research tool passed 15 tests. Its Ghidra adapter uses simulated-engine tests; no real decompilation was performed. That tool is not included in this PR. No PS5/title test or full build was run for this documentation-only change. Repository conventions and git diff --check passed after updating to main 8b393b6e; the published file matches the locally checked file.

Checklist

  • Based on current main; no functions implemented (related PR overlap described above)
  • One topic per PR; follow-ups go in a new PR
  • No code comments added
  • Unimplemented paths still throw; no silent stubs added
  • No investigation files or images added to the repository; existing TechnicalDebt extended
  • No third-party code added
  • Generic evidence, not a workaround for one title
  • Depends on: none
  • AI-assisted: yes

AI-assisted documentation update based on public sources; hardware output remains unverified.
@github-actions github-actions Bot added the intake paused Closed while PR intake is limited to authors with at least 10 PRs merged into main label Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

intake paused Closed while PR intake is limited to authors with at least 10 PRs merged into main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant