This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: edid-decode: allow using stdin for InfoFrame decoding
Author:  Dmitry Baryshkov <[email protected]>
Date:    Mon Sep 15 14:55:13 2025 +0300

Follow the EDID and ELD and allow specifying '-' in order to use stdin
for InfoFrames decoce.

Signed-off-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>

 utils/edid-decode/edid-decode.1.in | 8 ++++----
 utils/edid-decode/edid-decode.cpp  | 7 +++++--
 2 files changed, 9 insertions(+), 6 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=60fffa9823a96f3af0a8138e0a20fed259dfecc1
diff --git a/utils/edid-decode/edid-decode.1.in 
b/utils/edid-decode/edid-decode.1.in
index 1e4cd6ae1418..9700a5075cca 100644
--- a/utils/edid-decode/edid-decode.1.in
+++ b/utils/edid-decode/edid-decode.1.in
@@ -206,10 +206,10 @@ and the CTA-861 Extension Blocks (HDMI), or Block 0 and 
the DisplayID Extension
 (typical for DisplayPort).
 .TP
 \fB\-I\fR, \fB\-\-infoframe\fR \fI<file>\fR
-Parse the given InfoFrame file. This option can be used multiple times to
-parse multiple InfoFrames. If the EDID of the display to which these InfoFrames
-are transmitted is also given, then the conformity checks will take that EDID
-into account.
+Parse the given InfoFrame file. Read data from stdin if '-' was passed as a
+filename. This option can be used multiple times to parse multiple InfoFrames.
+If the EDID of the display to which these InfoFrames are transmitted is also
+given, then the conformity checks will take that EDID into account.
 
 If the first byte in the InfoFrame is 0x80 or higher, then it is assumed to be
 an InfoFrame that starts with the HDMI header and has a checksum, as per the
diff --git a/utils/edid-decode/edid-decode.cpp 
b/utils/edid-decode/edid-decode.cpp
index 1ee9c5e9ce4e..e42ae0986663 100644
--- a/utils/edid-decode/edid-decode.cpp
+++ b/utils/edid-decode/edid-decode.cpp
@@ -226,7 +226,7 @@ static void usage(void)
               "  --list-hdmi-vics      List all known HDMI VICs.\n"
               "  --list-rids           List all known RIDs.\n"
               "  --list-rid-timings <rid> List all timings for RID <rid> or 
all known RIDs if <rid> is 0.\n"
-              "  -I, --infoframe <file> Parse the InfoFrame from <file> that 
was sent to this display.\n"
+              "  -I, --infoframe <file> Parse the InfoFrame from <file> (or 
stdin if '-' was specified) that was sent to this display.\n"
               "                        This option can be specified multiple 
times for different InfoFrame files.\n"
               "  -E, --eld <file>      Parse the EDID-Like Data, ELD from 
<file> (or stdin if '-' was specified).\n"
               "                        This option can be specified multiple 
times for different ELD files.\n"
@@ -1752,7 +1752,10 @@ static int if_from_file(const char *from_file)
        memset(infoframe, 0, sizeof(infoframe));
        if_size = 0;
 
-       if ((fd = open(from_file, flags)) == -1) {
+       if (!strcmp(from_file, "-")) {
+               from_file = "stdin";
+               fd = 0;
+       } else if ((fd = open(from_file, flags)) == -1) {
                perror(from_file);
                return -1;
        }

Reply via email to