Skip to content

macOS: pick the YCbCr matrix per buffer instead of hard-coding BT.709 #1420

Open

Description

@EtienneLescot

On macOS, sample_yuv in crates/compositor/src/shaders.metal always applies BT.709 coefficients. The buffer marker only selects the range, so a BT.601 VideoToolbox buffer renders with slightly wrong hues. The matrix should come from each buffer's YCbCr matrix attachment.

Pre-existing; spotted by CodeRabbit while reviewing #1408. Refs #1408

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions