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@xxxxxxxxxxxxxx> --- 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