From patchwork Tue Oct 22 09:56:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 21732 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 096B2C3272 for ; Tue, 22 Oct 2024 09:57:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2645965395; Tue, 22 Oct 2024 11:57:46 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="UVyqv3qi"; dkim-atps=neutral Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E384C6538B for ; Tue, 22 Oct 2024 11:57:43 +0200 (CEST) Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-71817c40110so2261645a34.1 for ; Tue, 22 Oct 2024 02:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1729591062; x=1730195862; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=s6OzcvgipBzBMn1kJKOUa9AdzGuIXJzJGVuUKmOGV+E=; b=UVyqv3qiOnmW95nf+XmwHXenEiq9BP3OeXWmmDldicVIWkXF22zRtOHhwsLPSCx5zH gMRsg3JmM8CY5xSUp83Pg1xoDuqKulaeM4tfQKIlkkgDhtuWqkshVzurB47TxwIKhIZM e/QXHsp8FRG0p3k4HHj36hCkA4SVt4pCpaT+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729591062; x=1730195862; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=s6OzcvgipBzBMn1kJKOUa9AdzGuIXJzJGVuUKmOGV+E=; b=CKIa25arpXx/2hXyKLT7O+URuLt48oG11NerH4GKRDjUMlgxcabmlmJqxa0yvPPiyh 4yvzIYrPJ3s4TsJbe5nfcboUFRtoJh7MKhPoRxJLl3NJ6weD0USl/ss/yeyvgHqoCJHl JgbVyRzTyU65SQpAj8o9J4gCbyDtaPS5/EUFZH24nkZtH8Ok3a+vVvbot2SySWFUV5ej IULNv/hNsGQEJ9jAN4SMNVysEMwCDfV0YRaumAEZkX8KSqDw/zJk5vhL575bP4C3PDJ0 MWrDb69NLdCZNv1ZRSu6CDYF+miJZvkQlinCtKQ9AZhROYtULgmehXVOgYAHaqrvaLWd seDw== X-Gm-Message-State: AOJu0YxoX2Rr9AbJXfgo5EYdEqD2jb9v3t5y49KgJXdIRwjfOt/MiHXN 3sGJf9BOFggrijMO1GG47TSkqBX+5l8IHuhwGcbGv/Sfy+QfFp5XqOcjeIZw6RAkn0eScJ3ZQGM = X-Google-Smtp-Source: AGHT+IGf/mAj9mf34+zdVPpUWgGKagD6Ehzv7MaAaRcDdquxzc06AeBOmHkphzoshxh5jexoyXbqdQ== X-Received: by 2002:a05:6870:20e:b0:277:f2a6:8f94 with SMTP id 586e51a60fabf-28cab00c1c4mr2684382fac.33.1729591062372; Tue, 22 Oct 2024 02:57:42 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (199.211.81.34.bc.googleusercontent.com. [34.81.211.199]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7eaeabb9e6fsm4614282a12.66.2024.10.22.02.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 02:57:41 -0700 (PDT) From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH v2 0/2] Add U16 & U32 support in controls Date: Tue, 22 Oct 2024 09:56:03 +0000 Message-ID: <20241022095737.4127210-1-chenghaoyang@chromium.org> X-Mailer: git-send-email 2.47.0.105.g07ac214952-goog MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi folks, This series of patches adds Unsigned int 16 & 32 support in controls, which are needed for metadata & ext controls perspectively. This passes gitlab pipeline: https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1294974 Updates in v2: - Added default potential array `size = 0;`. - Removed unrelated debug message changes. BR, Harvey Yudhistira Erlandinata (2): libcamera: Allow enumerating u32 control type libcamera: Add Unsigned 16-bits Control Type include/libcamera/controls.h | 14 ++++++++++++++ src/libcamera/controls.cpp | 20 ++++++++++++++++++-- src/libcamera/v4l2_device.cpp | 22 ++++++++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-)