This is an automatic generated email to let you know that the following patch were queued:
Subject: edid-decode: move chrom2d() to edid-decode.h Author: Hans Verkuil <hverkuil-ci...@xs4all.nl> Date: Wed Jul 31 16:14:46 2024 +0200 Move this helper function to edid-decode.h as a static inline so it is available when InfoFrames are parsed. Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl> edid-decode.h | 7 +++++++ parse-cta-block.cpp | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) --- diff --git a/edid-decode.h b/edid-decode.h index c2deff5e675d..b480b6ccad41 100644 --- a/edid-decode.h +++ b/edid-decode.h @@ -553,6 +553,13 @@ void msg(bool is_warn, const char *fmt, ...); // NULL terminated array extern const char *cta_speaker_map[]; +static inline double chrom2d(const unsigned char *x) +{ + unsigned v = x[0] + (x[1] << 8); + + return v * 0.00002; +} + std::string utohex(unsigned char x); std::string ouitohex(unsigned oui); std::string containerid2s(const unsigned char *x); diff --git a/parse-cta-block.cpp b/parse-cta-block.cpp index 690b0c51bc8a..9e7a80edee6a 100644 --- a/parse-cta-block.cpp +++ b/parse-cta-block.cpp @@ -1418,13 +1418,6 @@ static double pq2nits(double pq) return v * 10000.0; } -static double chrom2d(const unsigned char *x) -{ - unsigned v = x[0] + (x[1] << 8); - - return v * 0.00002; -} - static double perc2d(unsigned char x) { double m = x >> 2;