diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2018-09-15 09:19:05 +0200 |
---|---|---|
committer | Hans Verkuil <hans.verkuil@cisco.com> | 2018-09-15 09:19:05 +0200 |
commit | e715130afc02977bfacf1028c008980493e08459 (patch) | |
tree | 9ec3536b6ef01bcd3e799dadd150a4cbf86e9c1c /utils | |
parent | 22a3113e373d0845fee555f1818c81d2fdc9fc20 (diff) |
v4l-utils: sync with media master
Update headers to their latest versions.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/common/codec-fwht.c | 2 | ||||
-rw-r--r-- | utils/common/codec-fwht.h | 2 | ||||
-rw-r--r-- | utils/common/codec-v4l2-fwht.c | 2 | ||||
-rw-r--r-- | utils/common/codec-v4l2-fwht.h | 2 | ||||
-rw-r--r-- | utils/common/v4l2-tpg-core.c | 11 |
5 files changed, 13 insertions, 6 deletions
diff --git a/utils/common/codec-fwht.c b/utils/common/codec-fwht.c index 47939160..36656031 100644 --- a/utils/common/codec-fwht.c +++ b/utils/common/codec-fwht.c @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: LGPL-2.1+ /* * Copyright 2016 Tom aan de Wiel * Copyright 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved. diff --git a/utils/common/codec-fwht.h b/utils/common/codec-fwht.h index 03d678ec..f7da2b84 100644 --- a/utils/common/codec-fwht.h +++ b/utils/common/codec-fwht.h @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: LGPL-2.1+ */ /* * Copyright 2016 Tom aan de Wiel * Copyright 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved. diff --git a/utils/common/codec-v4l2-fwht.c b/utils/common/codec-v4l2-fwht.c index cfcf84b8..6b06aa38 100644 --- a/utils/common/codec-v4l2-fwht.c +++ b/utils/common/codec-v4l2-fwht.c @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: LGPL-2.1 /* * A V4L2 frontend for the FWHT codec * diff --git a/utils/common/codec-v4l2-fwht.h b/utils/common/codec-v4l2-fwht.h index 7794c186..95d17565 100644 --- a/utils/common/codec-v4l2-fwht.h +++ b/utils/common/codec-v4l2-fwht.h @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +/* SPDX-License-Identifier: LGPL-2.1 */ /* * Copyright 2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved. */ diff --git a/utils/common/v4l2-tpg-core.c b/utils/common/v4l2-tpg-core.c index e4e65a21..e0c973cf 100644 --- a/utils/common/v4l2-tpg-core.c +++ b/utils/common/v4l2-tpg-core.c @@ -228,6 +228,7 @@ bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc) case V4L2_PIX_FMT_Y12: case V4L2_PIX_FMT_Y16: case V4L2_PIX_FMT_Y16_BE: + case V4L2_PIX_FMT_Z16: tpg->color_enc = TGP_COLOR_ENC_LUMA; break; case V4L2_PIX_FMT_YUV444: @@ -344,6 +345,7 @@ bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc) case V4L2_PIX_FMT_Y12: case V4L2_PIX_FMT_Y16: case V4L2_PIX_FMT_Y16_BE: + case V4L2_PIX_FMT_Z16: tpg->twopixelsize[0] = 2 * 2; break; case V4L2_PIX_FMT_RGB24: @@ -1052,6 +1054,7 @@ static void gen_twopix(struct tpg_data *tpg, buf[0][offset+1] = r_y_h >> 4; break; case V4L2_PIX_FMT_Y16: + case V4L2_PIX_FMT_Z16: /* * Ideally both bytes should be set to r_y_h, but then you won't * be able to detect endian problems. So keep it 0 except for @@ -2024,8 +2027,12 @@ void tpg_log_status(struct tpg_data *tpg) tpg->compose.left, tpg->compose.top); pr_info("tpg colorspace: %d\n", tpg->colorspace); pr_info("tpg transfer function: %d/%d\n", tpg->xfer_func, tpg->real_xfer_func); - pr_info("tpg Y'CbCr encoding: %d/%d\n", tpg->ycbcr_enc, tpg->real_ycbcr_enc); - pr_info("tpg HSV encoding: %d/%d\n", tpg->hsv_enc, tpg->real_hsv_enc); + if (tpg->color_enc == TGP_COLOR_ENC_HSV) + pr_info("tpg HSV encoding: %d/%d\n", + tpg->hsv_enc, tpg->real_hsv_enc); + else if (tpg->color_enc == TGP_COLOR_ENC_YCBCR) + pr_info("tpg Y'CbCr encoding: %d/%d\n", + tpg->ycbcr_enc, tpg->real_ycbcr_enc); pr_info("tpg quantization: %d/%d\n", tpg->quantization, tpg->real_quantization); pr_info("tpg RGB range: %d/%d\n", tpg->rgb_range, tpg->real_rgb_range); } |