Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp349804ybx; Fri, 1 Nov 2019 04:35:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQi3teelWeRrWNAjqdOHekOZUv5zpWPYjKt1Op9TI/bfCo5tWtBs9PoYmi2KKhHBuzgprm X-Received: by 2002:a05:6402:696:: with SMTP id f22mr12096917edy.104.1572608150449; Fri, 01 Nov 2019 04:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572608150; cv=none; d=google.com; s=arc-20160816; b=gtgApGu5gPlOlAd5AKgsmlfvQJOdgemJ0Zx2V7Ll6KMQhIDgGoDHgRsgmi7dJ+eFCd GWvEK4N1mf1YjId1mMCppY+iV2EoZMfTRBvmipegYPvQwZMDoPcwg6xtfULn7aQ2U4cD 3dCOvQtpXbLNQlkIEocvmkq/LJ5X82FflPZ0yhCXZJYZ0lfQJKD+IQqk7G9WjQ1txrlq 20/SPvKrWqRAhrz13X+lcpPxxwCDYE+f9UoqD5eiueX0qMaJ2kYRQ7wspvzrnz+25n3W DvKmFD4QOMtwyH4V/c3uzX+FIIh1InBc5bUMIrbWcZWpY/8u/ihOEYiHf7DG+99K8610 kD1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=DaGUTMZTPvVQG7pcnt9rSBQcYcHWYKS+V0DM0nxl4Tk=; b=rnVXc8seiDFd+2ad8cV3J41+hjVW8ay8Warg4edSKlxB/TmJ827yS7BJxd2RfjlLtR bMpsP9b4UewVBJjThUn3qdg1FcosEEMcSBU9Im3zYsJPR2PwGQlJfvH+WOkJ92ug8qIm u37Ecp9rqc40KJdh7f1EU7kmvz7tln93UvkrMz4Q2hAYlSxy6zY1ULOV9cNyopk49C39 6pfXJVMJUXDRoOxAbXm5W3DcRY9T/xgT5Zvv7GFtFr2apDWs73w5x/uCfO4L+8HaYUFe yLhP1VpqcN9XSG64N6HibN6JHyN0eJFdknE9k8OtFQL3kv10ox4sRTcIZ2ftf3vKGhQ8 jGdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 95si83941edq.244.2019.11.01.04.35.27; Fri, 01 Nov 2019 04:35:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730469AbfKALZT (ORCPT + 99 others); Fri, 1 Nov 2019 07:25:19 -0400 Received: from mail-lf1-f49.google.com ([209.85.167.49]:36406 "EHLO mail-lf1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726663AbfKALZR (ORCPT ); Fri, 1 Nov 2019 07:25:17 -0400 Received: by mail-lf1-f49.google.com with SMTP id a6so3582090lfo.3; Fri, 01 Nov 2019 04:25:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DaGUTMZTPvVQG7pcnt9rSBQcYcHWYKS+V0DM0nxl4Tk=; b=Tjsuln41GeTOgFG04574mENjFrqY/q3z7YCR8BplyHC0vLZe99gRZwjydnO3QuSQRp XarI/uxLc6+rsmY+w5+fkKBMAQjBDFtlpYS9df1TbcJpatrwDYg8r+Sjngss0tnn4yaU 7NfKa2StWHVkkNJ6yfRCN5I127X9pBCqkH0KXYWNeTJMawftDajWjwjJHIDxyUAMqTW1 leajHJ9uDTZwSjU0HaH6Dzcsek5VBh4nyjmG80o9+sLshs2ulal3kw4k9arCtlONh5jL 2BBt/u08uD2JUQqKCpa5g0keb9Qb0gIRZ2olzgE9xB9QFb7GiSKjHCSPkHeesESIgPPl wiww== X-Gm-Message-State: APjAAAUXW6u8kKgwz0tpDkbzHUWfERyEZGB9XATDsRkEnu1BXFcPKMCn CELYc6a/OZfmb+eJ28/Gb+JO/ZAm5YI= X-Received: by 2002:a19:f811:: with SMTP id a17mr6870785lff.132.1572607514427; Fri, 01 Nov 2019 04:25:14 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id u13sm1851775ljl.71.2019.11.01.04.25.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 04:25:13 -0700 (PDT) From: Ricardo Ribalda Delgado To: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH 3/4] v4l2-ctl: Support getting V4L2_CTRL_TYPE_AREA controls Date: Fri, 1 Nov 2019 12:25:08 +0100 Message-Id: <20191101112509.29723-3-ribalda@kernel.org> X-Mailer: git-send-email 2.24.0.rc1 In-Reply-To: <20191101112509.29723-1-ribalda@kernel.org> References: <20191101112509.29723-1-ribalda@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tested with vivid: v4l2-ctl -C area -d /dev/video1 area: 51966x727837 Signed-off-by: Ricardo Ribalda Delgado --- utils/v4l2-ctl/v4l2-ctl-common.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/v4l2-ctl/v4l2-ctl-common.cpp b/utils/v4l2-ctl/v4l2-ctl-common.cpp index b1c12b35..95339561 100644 --- a/utils/v4l2-ctl/v4l2-ctl-common.cpp +++ b/utils/v4l2-ctl/v4l2-ctl-common.cpp @@ -1150,6 +1150,11 @@ void common_get(cv4l_fd &_fd) printf("%s: '%s'\n", name.c_str(), safename(ctrl.string).c_str()); break; + case V4L2_CTRL_TYPE_AREA: + printf("%s: %dx%d\n", name.c_str(), + ctrl.p_area->width, + ctrl.p_area->height); + break; default: fprintf(stderr, "%s: unsupported payload type\n", qc.name); -- 2.24.0.rc1