Skip to content

Give the example MXL video/v210a Flow an alpha component - #552

Merged
lo-simon merged 1 commit into
sony:masterfrom
garethsb:feature/mxl-v210a-components
Nov 19, 2026
Merged

lo-simon merged 1 commit into
sony:masterfrom
garethsb:feature/mxl-v210a-components

Conversation

@garethsb

Copy link
Copy Markdown
Contributor

In the nmos-cpp-node example, the MXL video Flow took its components from the color_sampling and component_depth settings. So with mxl_video_type set to video/v210a, the Flow had only Y, Cb and Cr components, with no A (alpha) component. A different color_sampling or component_depth setting also gave a video/v210 Flow components that don't match that media type. The MXL video Receiver's caps constrained color_sampling and component_depth from the same settings.

The MXL video media types determine the components, so this PR:

  • always gives the MXL video Flow YCbCr-4:2:2 10-bit components, plus a full-size 10-bit A component for video/v210a
  • stops the MXL video Receiver's caps constraining color_sampling or component_depth, which are not needed alongside media_type
  • notes on the mxl_video_type setting, in the code and in config.json, that color_sampling and component_depth do not apply

If MXL introduces support for other media types in the future, we would revisit this code.

I checked it by running nmos-cpp-node with MXL video Sender and Receiver ports, mxl_video_type: "video/v210a", color_sampling: "RGB" and component_depth: 12. The Flow had Y 1920x1080, Cb and Cr 960x1080, and A 1920x1080 components, all 10-bit. The Receiver's caps constrained media_type to video/v210a, with no color_sampling or component_depth constraint.

Co-authored-by: Gareth's 🤖 buddy

The example MXL video Flow took its components from the color_sampling
and component_depth settings, so a video/v210a Flow had no A component,
and a different color_sampling setting gave a video/v210 Flow the wrong
components. The example MXL video Receiver constrained color_sampling
and component_depth from the same settings.

The MXL video media types determine the components, so the Flow now
always has YCbCr-4:2:2 10-bit components, plus a full-size 10-bit A
component for video/v210a, and the Receiver no longer constrains
color_sampling or component_depth.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
@garethsb
garethsb force-pushed the feature/mxl-v210a-components branch from 9ad68c3 to 3f8fd4c Compare November 19, 2026 17:39
@garethsb
garethsb marked this pull request as draft November 19, 2026 18:07
@garethsb
garethsb marked this pull request as ready for review November 19, 2026 18:12

@lo-simon lo-simon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lo-simon
lo-simon merged commit 16a03fc into sony:master Nov 19, 2026
12 checks 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.

2 participants