aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarian Cichy <m.cichy@pengutronix.de>2020-10-27 14:49:22 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-01-25 10:10:42 +0100
commit12d47944e2760e3af7028b4484ef15b0c0763a81 (patch)
tree3be5a9dd1aaf53cf958421d4df1fd650a923f4e7
parent6fe0c2c02a3f2c7111c35d40f078a3bd40247266 (diff)
media-ctl: add v4l2-ycbcr-enc field in help description
The help-description of media-ctl shows the possible values for v4l2-colorspace, v4l2-xfer-func and v4l2-quant, but misses to show them for v4l2-ycbcr-enc, even though they are perfectly defined in the source code like for the other fields. Let's print them too in the help description. Signed-off-by: Marian Cichy <m.cichy@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil: rename v4l2-ycbcr-enc-func to v4l2-ycbcr-enc]
-rw-r--r--utils/media-ctl/options.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/media-ctl/options.c b/utils/media-ctl/options.c
index 7b1736a6..6d30d3dc 100644
--- a/utils/media-ctl/options.c
+++ b/utils/media-ctl/options.c
@@ -86,7 +86,7 @@ static void usage(const char *argv0)
printf("\tv4l2-property = v4l2-mbusfmt | v4l2-crop | v4l2-interval\n");
printf("\t | v4l2-compose | v4l2-interval ;\n");
printf("\tv4l2-mbusfmt = 'fmt:' fcc '/' size ; { 'field:' v4l2-field ; } { 'colorspace:' v4l2-colorspace ; }\n");
- printf("\t { 'xfer:' v4l2-xfer-func ; } { 'ycbcr:' v4l2-ycbcr-enc-func ; }\n");
+ printf("\t { 'xfer:' v4l2-xfer-func ; } { 'ycbcr:' v4l2-ycbcr-enc ; }\n");
printf("\t { 'quantization:' v4l2-quant ; }\n");
printf("\tv4l2-crop = 'crop:' rectangle ;\n");
printf("\tv4l2-compose = 'compose:' rectangle ;\n");
@@ -128,6 +128,12 @@ static void usage(const char *argv0)
for (i = V4L2_QUANTIZATION_DEFAULT; i <= V4L2_QUANTIZATION_LIM_RANGE; i++)
printf("\t %s\n",
v4l2_subdev_quantization_to_string(i));
+
+ printf("\tv4l2-ycbcr-enc One of the following:\n");
+
+ for (i = V4L2_YCBCR_ENC_DEFAULT; i <= V4L2_YCBCR_ENC_SMPTE240M; i++)
+ printf("\t %s\n",
+ v4l2_subdev_ycbcr_encoding_to_string(i));
}
#define OPT_PRINT_DOT 256

Privacy Policy