Skip to content

Commit

Permalink
Merge pull request #311 from w3c/fix-color-gamut
Browse files Browse the repository at this point in the history
Convert color-gamut to be a single value.
  • Loading branch information
markafoltz authored Oct 13, 2023
2 parents 134c548 + 7cd67df commit dcc0efb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1769,12 +1769,16 @@ following additional fields:
display could return this value as 1.6 to indicate its preferred content
scaling. Default is none.

: color-gamuts (optional)
:: An optional field indicating what color spaces can be decoded and rendered by
the media receiver. The media sender may use these values to determine how
to encode video. Valid values correspond to [[MEDIA-CAPABILITIES#colorgamut|ColorGamut]]
: color-gamut (optional)
:: An optional field indicating the widest color space that can be decoded and
rendered by the media receiver. The media sender may use this value to
determine how to encode video, and should assume all narrower color spaces
are supported. Valid values correspond to [[MEDIA-CAPABILITIES#colorgamut|ColorGamut]]
in the [[!MEDIA-CAPABILITIES|Media Capabilities]] API. The default value is
a list with the single entry "srgb".
"srgb".

NOTE: Support for "p3" implies support for "srgb", and support for "rec2020"
implies support for "p3" and "srgb".

: hdr-formats (optional)
:: An optional field indicating what HDR transfer functions and metadata formats
Expand Down
2 changes: 1 addition & 1 deletion messages_appendix.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ receive-video-capability = {
? 3: uint ; max-pixels-per-second
? 4: uint ; min-bit-rate
? 5: ratio ; aspect-ratio
? 6: [* string] ; color-gamuts
? 6: string ; color-gamut
? 7: [* video-resolution] ; native-resolutions
? 8: bool ; supports-scaling
? 9: bool ; supports-rotation
Expand Down

0 comments on commit dcc0efb

Please sign in to comment.