Skip to content

[codex] Fix Vortice video processor color range - #43

Merged
Balragon merged 1 commit into
mainfrom
codex/gpu-color-space-bt709-full
Jun 29, 2026
Merged

[codex] Fix Vortice video processor color range#43
Balragon merged 1 commit into
mainfrom
codex/gpu-color-space-bt709-full

Conversation

@Balragon

Copy link
Copy Markdown
Owner

Summary

  • Explicitly configures the D3D11 video processor color space for the Vortice GPU path.
  • Defaults NV12 input to BT.709 full range and RGB output to full range.
  • Adds IMIRROR_D3D_COLOR_SPACE=default as a quick runtime escape hatch for the previous driver-default behavior, plus bt709-studio for comparison.

Why

On v0.7.2, the GPU path could render whites/highlights brighter than the Mac source while blacks stayed close. The FFmpeg software fallback looked correct on the same sender/display, which pointed to the GPU NV12 -> BGRA video processor conversion rather than the sender or monitor profile.

Validation

  • dotnet build .\iMirror.sln -c Release --no-restore passed with 0 warnings / 0 errors.
  • dotnet test .\MacMirrorReceiver.Tests\MacMirrorReceiver.Tests.csproj -c Release --no-restore passed: 63 tests.
  • Local hardware visual check passed with Mac sender on the Vortice GPU path.
  • Runtime log confirmed gpuBinding=Vortice, ffmpegPipeline=0, and D3D11 video processor color space: mode=bt709-full.

@Balragon
Balragon marked this pull request as ready for review June 29, 2026 08:38
@Balragon
Balragon merged commit 354a365 into main Jun 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant