From ae5e7560046fdac4d7011a65c7fb0d7922dcfc8c Mon Sep 17 00:00:00 2001 From: "mark a. foltz" Date: Fri, 8 Sep 2023 15:14:06 -0700 Subject: [PATCH 1/2] Convert color-gamut to be a single value. --- index.bs | 9 ++++++--- messages_appendix.cddl | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/index.bs b/index.bs index 28a4fa4..1c1557e 100644 --- a/index.bs +++ b/index.bs @@ -1770,12 +1770,15 @@ following additional fields: display could return this value as 1.6 to indicate its preferred content scaling. Default is none. -: color-gamuts (optional) +: color-gamut (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 + the media receiver. The media sender may use this value to determine how to encode video. 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 diff --git a/messages_appendix.cddl b/messages_appendix.cddl index 6a10aca..d0cc322 100644 --- a/messages_appendix.cddl +++ b/messages_appendix.cddl @@ -565,7 +565,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 From 7cd67dfdcb19fac65d37d070283912f85eaf07e8 Mon Sep 17 00:00:00 2001 From: "mark a. foltz" Date: Fri, 13 Oct 2023 15:21:23 -0700 Subject: [PATCH 2/2] Edit per suggestion by baylesj@ --- index.bs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 1c1557e..75e6547 100644 --- a/index.bs +++ b/index.bs @@ -1771,9 +1771,10 @@ following additional fields: scaling. Default is none. : color-gamut (optional) -:: An optional field indicating what color spaces can be decoded and rendered by - the media receiver. The media sender may use this value to determine how - to encode video. Valid values correspond to [[MEDIA-CAPABILITIES#colorgamut|ColorGamut]] +:: 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 "srgb".