From patchwork Fri Oct 25 05:30:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-Hao Yang X-Patchwork-Id: 21751 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 41B2BC3220 for ; Fri, 25 Oct 2024 05:31:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 05ACF65394; Fri, 25 Oct 2024 07:31:21 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Wc9Oopn2"; dkim-atps=neutral Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EB07F60366 for ; Fri, 25 Oct 2024 07:31:18 +0200 (CEST) Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-7ea0ff74b15so1030234a12.3 for ; Thu, 24 Oct 2024 22:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1729834276; x=1730439076; 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=fz0tEoqpb1/XXDGDUKTRmpvVJDtKFaSPw2c9HU1GSeM=; b=Wc9Oopn2dBRJTHM7o3JoiZaOI7WUO2Dl269+RvXm3Qg/hz26LY7q0ase+EzzP2Xjrz DtbeZByyN8FswS+7lnoSdxfY9nZuuvk27h2Qcu4uiSM0cVRUSIPqgtzsSKTfTtcbW9ir ooyQWUNlHDR82yy3g8mz8aB2i9lBLbROO/lBU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729834276; x=1730439076; 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=fz0tEoqpb1/XXDGDUKTRmpvVJDtKFaSPw2c9HU1GSeM=; b=LRbzLBAt8yB3mO+iCOeZvCxN3rGrwbsGh8wCGBOeGHJcaP7u8hhVkZPo35T6PwXWpb EG6sa/BVc0Yq9bhnJnxgCJaH3Nb8cfe6A5bvD2vCktL4mmBkEheq4afIchlB0KF0qMLS jwfpboNhp/AF5nIUHsaIaaalxrgUx51vcYerwJyN1VYCgGn9Gq5VdBQtxiocLFlBSEXH QFZ2dQa06VWCt8/33OMcxolLGeXhAkMrpJVrlChUfKWw38n1lVoEtEdTZoqjPwy95V4G 04DkRZImBgoQkGpTjmk+6zaBvG14+9wZJT4eJshxdL1slwYJX+4gcJv+ARWg3HOuVkys vK/Q== X-Gm-Message-State: AOJu0Ywtv0hsEMh9CW8ovhjYm1bbpauLJW1yehENTMD3IZwLXPZaswf3 KJGX9enzYSQZPyKaVc+26It1f/XVBnuqOKzEc+GkV+EMXszbSJLFVMMXkgZMAlUiYl+5n8KKOV8 = X-Google-Smtp-Source: AGHT+IEmFBnmZiw7pHBdOf75B79fcsHBRao7EJjid0FN7VV4DPah5wxM3zXQOv+Aq0ShPGi7vM8c3Q== X-Received: by 2002:a05:6a20:b58b:b0:1d8:ef56:50ac with SMTP id adf61e73a8af0-1d9898ff74amr5744041637.6.1729834276533; Thu, 24 Oct 2024 22:31:16 -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 d2e1a72fcca58-72057a1fe53sm317992b3a.162.2024.10.24.22.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2024 22:31:16 -0700 (PDT) From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH v3 0/2] Add U16 & U32 support in controls Date: Fri, 25 Oct 2024 05:30:12 +0000 Message-ID: <20241025053111.519449-1-chenghaoyang@chromium.org> X-Mailer: git-send-email 2.47.0.163.g1226f6d8fa-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/1297215 Updates in v3: - Commit messages. - Added unit tests. Updates in v2: - Added default potential array `size = 0;`. - Removed unrelated debug message changes. BR, Harvey Yudhistira Erlandinata (2): libcamera: Extend 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 +++++++++ test/controls/control_value.cpp | 80 +++++++++++++++++++++++++++++++++ 4 files changed, 134 insertions(+), 2 deletions(-)