All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marian Cichy <m.cichy@pengutronix.de>
To: linux-media@vger.kernel.org
Cc: Marian Cichy <m.cichy@pengutronix.de>
Subject: [PATCH 2/2] media-ctl: add v4l2-ycbcr-enc-func field in help description
Date: Tue, 27 Oct 2020 14:49:22 +0100	[thread overview]
Message-ID: <20201027134922.30321-2-m.cichy@pengutronix.de> (raw)
In-Reply-To: <20201027134922.30321-1-m.cichy@pengutronix.de>

the help-description of media-ctl shows the possible values
for v4l2-colorspace, v4l2-xfer-func anf v4l2-quant, but misses
to show them for v4l2-ycbcr-enc-func, eveb though they are
perfectly defined in the source code like for the other fields.
Lets print them too in the help description.

Signed-off-by: Marian Cichy <m.cichy@pengutronix.de>
---
 utils/media-ctl/options.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/utils/media-ctl/options.c b/utils/media-ctl/options.c
index fe79af10..ca8106ba 100644
--- a/utils/media-ctl/options.c
+++ b/utils/media-ctl/options.c
@@ -103,23 +103,29 @@ static void usage(const char *argv0)
 		printf("\t                %s\n",
 		       v4l2_subdev_field_to_string(i));
 
-	printf("\tv4l2-colorspace One of the following:\n");
+	printf("\tv4l2-colorspace     One of the following:\n");
 
 	for (i = V4L2_COLORSPACE_DEFAULT; i <= V4L2_COLORSPACE_DCI_P3; i++)
 		printf("\t                %s\n",
 		       v4l2_subdev_colorspace_to_string(i));
 
-	printf("\tv4l2-xfer-func  One of the following:\n");
+	printf("\tv4l2-xfer-func      One of the following:\n");
 
 	for (i = V4L2_XFER_FUNC_DEFAULT; i <= V4L2_XFER_FUNC_SMPTE2084; i++)
 		printf("\t                %s\n",
 		       v4l2_subdev_xfer_func_to_string(i));
 
-	printf("\tv4l2-quant      One of the following:\n");
+	printf("\tv4l2-quant          One of the following:\n");
 
 	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-func 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
-- 
2.20.1


      reply	other threads:[~2020-10-27 13:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-27 13:49 [PATCH 1/2] media-ctl: fix ycbcr property in help description Marian Cichy
2020-10-27 13:49 ` Marian Cichy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201027134922.30321-2-m.cichy@pengutronix.de \
    --to=m.cichy@pengutronix.de \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.