diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-07-08 17:05:32 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-07-08 17:05:32 +0200 |
commit | b47e44e0fcda64938ef5314e22da7d310d672210 (patch) | |
tree | 8adebf67cb86135602a48d431fdcb39924fe0081 | |
parent | 64b68bc11540754bc28a5d2649299d634ea9baeb (diff) |
edid-decode: document native-timings, rename preferred-timing to -timings
Document the --native-timings option and rename the
--preferred-timing option to --preferred-timings.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | edid-decode.1 | 7 | ||||
-rw-r--r-- | edid-decode.cpp | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/edid-decode.1 b/edid-decode.1 index 2c4b0bb..2a79244 100644 --- a/edid-decode.1 +++ b/edid-decode.1 @@ -171,8 +171,11 @@ reported at the end. Check if the EDID conforms to the standards. Warnings and failures are reported as they happen. .TP -\fB\-p\fR, \fB\-\-preferred\-timing\fR -Report the preferred timing at the end. +\fB\-n\fR, \fB\-\-native\-timings\fR +Report the native timings at the end. +.TP +\fB\-p\fR, \fB\-\-preferred\-timings\fR +Report the preferred timings at the end. .TP \fB\-P\fR, \fB\-\-physical\-address\fR Just report the HDMI Source Physical Address and nothing else. Reports f.f.f.f diff --git a/edid-decode.cpp b/edid-decode.cpp index aeb09a9..440f590 100644 --- a/edid-decode.cpp +++ b/edid-decode.cpp @@ -41,7 +41,7 @@ enum Option { OptHelp = 'h', OptNativeTimings = 'n', OptOutputFormat = 'o', - OptPreferredTiming = 'p', + OptPreferredTimings = 'p', OptPhysicalAddress = 'P', OptLongTimings = 'L', OptShortTimings = 'S', @@ -60,7 +60,7 @@ static struct option long_options[] = { { "output-format", required_argument, 0, OptOutputFormat }, { "extract", no_argument, 0, OptExtract }, { "native-timings", no_argument, 0, OptNativeTimings }, - { "preferred-timing", no_argument, 0, OptPreferredTiming }, + { "preferred-timings", no_argument, 0, OptPreferredTimings }, { "physical-address", no_argument, 0, OptPhysicalAddress }, { "skip-hex-dump", no_argument, 0, OptSkipHexDump }, { "skip-sha", no_argument, 0, OptSkipSHA }, @@ -93,7 +93,7 @@ static void usage(void) " -C, --check-inline check if the EDID conforms to the standards, failures and\n" " warnings are reported inline.\n" " -n, --native-timings report the native timings\n" - " -p, --preferred-timing report the preferred timing\n" + " -p, --preferred-timings report the preferred timings\n" " -P, --physical-address only report the CEC physical address\n" " -S, --short-timings report all video timings in a short format\n" " -L, --long-timings report all video timings in a long format\n" @@ -1136,7 +1136,7 @@ int edid_state::parse_edid() preferred_timings.hact, preferred_timings.vact); } - if (options[OptPreferredTiming]) { + if (options[OptPreferredTimings]) { printf("\n----------------\n"); printf("\nPreferred Video Timing:\n"); print_timings(" ", &preferred_timings, |