* [PATCH] edid-decode: Report supported SL-HDR versions
@ 2020-09-08 12:58 Harry Mallon
2020-09-08 22:23 ` Hans Verkuil
0 siblings, 1 reply; 2+ messages in thread
From: Harry Mallon @ 2020-09-08 12:58 UTC (permalink / raw)
To: linux-media
Specified in ETSI TS 103 433-1 v1.3.1
Signed-off-by: Harry Mallon <harry.mallon@codex.online>
---
parse-cta-block.cpp | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/parse-cta-block.cpp b/parse-cta-block.cpp
index 97924d1..ad1e18b 100644
--- a/parse-cta-block.cpp
+++ b/parse-cta-block.cpp
@@ -1512,11 +1512,21 @@ static void cta_hdr_dyn_metadata_block(const unsigned char *x, unsigned length)
printf(" HDR Dynamic Metadata Type %u\n", type);
switch (type) {
case 1:
- case 2:
case 4:
if (type_len > 2)
printf(" Version: %u\n", x[3] & 0xf);
break;
+ case 2:
+ if (type_len > 2) {
+ unsigned version = x[3] & 0xf;
+ printf(" Version: %u\n", version);
+ if (version >= 1) {
+ if (x[3] & 0x10) printf(" Supports SL-HDR1 (ETSI TS 103 433-1)\n");
+ if (x[3] & 0x20) printf(" Supports SL-HDR2 (ETSI TS 103 433-2)\n");
+ if (x[3] & 0x40) printf(" Supports SL-HDR3 (ETSI TS 103 433-3)\n");
+ }
+ }
+ break;
default:
break;
}
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] edid-decode: Report supported SL-HDR versions
2020-09-08 12:58 [PATCH] edid-decode: Report supported SL-HDR versions Harry Mallon
@ 2020-09-08 22:23 ` Hans Verkuil
0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2020-09-08 22:23 UTC (permalink / raw)
To: Harry Mallon, linux-media
Hi Harry,
Thanks for the patch, I missed this change in CTA-861.4.
It's applied and pushed to the git repo.
Regards,
Hans
On 08/09/2020 14:58, Harry Mallon wrote:
> Specified in ETSI TS 103 433-1 v1.3.1
>
> Signed-off-by: Harry Mallon <harry.mallon@codex.online>
> ---
> parse-cta-block.cpp | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/parse-cta-block.cpp b/parse-cta-block.cpp
> index 97924d1..ad1e18b 100644
> --- a/parse-cta-block.cpp
> +++ b/parse-cta-block.cpp
> @@ -1512,11 +1512,21 @@ static void cta_hdr_dyn_metadata_block(const unsigned char *x, unsigned length)
> printf(" HDR Dynamic Metadata Type %u\n", type);
> switch (type) {
> case 1:
> - case 2:
> case 4:
> if (type_len > 2)
> printf(" Version: %u\n", x[3] & 0xf);
> break;
> + case 2:
> + if (type_len > 2) {
> + unsigned version = x[3] & 0xf;
> + printf(" Version: %u\n", version);
> + if (version >= 1) {
> + if (x[3] & 0x10) printf(" Supports SL-HDR1 (ETSI TS 103 433-1)\n");
> + if (x[3] & 0x20) printf(" Supports SL-HDR2 (ETSI TS 103 433-2)\n");
> + if (x[3] & 0x40) printf(" Supports SL-HDR3 (ETSI TS 103 433-3)\n");
> + }
> + }
> + break;
> default:
> break;
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-08 22:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-08 12:58 [PATCH] edid-decode: Report supported SL-HDR versions Harry Mallon
2020-09-08 22:23 ` Hans Verkuil
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.