From patchwork Fri Apr 9 04:32:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 11874 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 CB82FBD16B for ; Fri, 9 Apr 2021 04:32:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1C9F7687A1; Fri, 9 Apr 2021 06:32:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="iqwBS6uY"; dkim-atps=neutral Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E241C602CB for ; Fri, 9 Apr 2021 06:32:15 +0200 (CEST) Received: by mail-pg1-x52f.google.com with SMTP id l76so2946576pga.6 for ; Thu, 08 Apr 2021 21:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aZbeIpc5AnYk2UVULFZZWX+j2Wh9RPfLdqGLfynWum8=; b=iqwBS6uYEg0Qx1kGNH7qRtjxTEoWazyzFougfduvptweFJsajy8Jx0yb2rcQb1nJ3v MXo+z8PEoqDvba4nb5D+H/lsVhVTMqrBNeAZb24iMmFGpRZi+pCsdCUcC/fT749ygDgk kpSsih2zIKNUbllWD0f4xgE8ICC4wEEhPnU04= 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:mime-version :content-transfer-encoding; bh=aZbeIpc5AnYk2UVULFZZWX+j2Wh9RPfLdqGLfynWum8=; b=sh8/dSBk94YRZpF0r/SuKm1CCdW1ZDNvlgbAJwUk/Vzl0IfhVFDhKC4zvk6WIIUue8 pf4Y6Biq1RMagmSyI4Wg17ostZ9e6OqoWQpxQKhfATIAfx+OWPGXWSl6BPc8EVJX/F/w ZpDE1Lc7XE12nndtprR5Cc8V0IGXSLDeGsqzvK7g9eZnUW/nDGeVkIwlBluHC+9xrcti o3ldzR3cKp+H+SlaDh8K8wdK4GxJQtw44ul0oJOtnqXmaurObEd2WfkEebG0OhTz7WP9 aiCLWbErtFx5AtzC8Qk7jeqEtSvWocRYJXooYKqlIY7lQhnJHp10GQv/d72/S8srz10S 0k+g== X-Gm-Message-State: AOAM533xiJdlH2XjOca21nYKb3Uef10xjIOVNdtqtyR6Nk4146ZPYFRb ddGRbf9iEtb3G8e2yTJIc4lG8p50oLQPyQ== X-Google-Smtp-Source: ABdhPJxDsspHBJmbHO+vZZ8Gl+oTJX9iS8hpF2H2x7B1JFwz9ia7L9XEFybKq9FQ7+/QsTnYpiIfcA== X-Received: by 2002:a63:dc43:: with SMTP id f3mr11426370pgj.290.1617942734002; Thu, 08 Apr 2021 21:32:14 -0700 (PDT) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:2:7567:510e:1b47:ce92]) by smtp.gmail.com with ESMTPSA id il6sm737275pjb.56.2021.04.08.21.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 21:32:13 -0700 (PDT) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Fri, 9 Apr 2021 13:32:03 +0900 Message-Id: <20210409043208.1823330-1-hiroh@chromium.org> X-Mailer: git-send-email 2.31.1.295.g9ea45b61b8-goog MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 0/5] Report available test pattern modes 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" ChromeOS camera test tests that a camera frame is not corrupted while it specifies some test pattern mode. If no test pattern mode is available, the test fails. In order to pass the test, libcamera needs to report available test pattern modes and produce camera frames with requested pattern modes. This is the first step for the aim. libcamera queries a camera sensor the supported test pattern modes and reports them with ANDROID_SENSOR_AVAILABLE_TEST_PATTERN_MODES. Hirokazu Honda (5): libcamera: controls: Add sensor test pattern mode libcamera: V4L2Subdevice: Add getter/setter function for test pattern mode libcamera: CameraSensor: Expose supported test pattern modes libcamera: pipeline: ipu3: Report available test pattern modes android: CameraDevice: Report queried test pattern modes include/libcamera/internal/camera_sensor.h | 6 ++ include/libcamera/internal/v4l2_subdevice.h | 5 + src/android/camera_device.cpp | 18 +++- src/libcamera/camera_sensor.cpp | 8 ++ src/libcamera/control_ids.yaml | 59 +++++++++++ src/libcamera/pipeline/ipu3/ipu3.cpp | 10 ++ src/libcamera/v4l2_subdevice.cpp | 104 ++++++++++++++++++++ 7 files changed, 206 insertions(+), 4 deletions(-) --- 2.31.1.295.g9ea45b61b8-goog