From patchwork Mon Jun 14 12:22:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 12593 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 BB279BD78E for ; Mon, 14 Jun 2021 12:22:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 314DF68930; Mon, 14 Jun 2021 14:22:27 +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="T/CVA3y8"; dkim-atps=neutral Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 59EA7602A1 for ; Mon, 14 Jun 2021 14:22:26 +0200 (CEST) Received: by mail-pj1-x102b.google.com with SMTP id go18-20020a17090b03d2b029016e4ae973f7so8947922pjb.0 for ; Mon, 14 Jun 2021 05:22:26 -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=U4U8YIqo/X7UVd9msnqsf3YoyvJRqFOqgbeOmJNMkY0=; b=T/CVA3y88gl6GjnpblAzk4cT7gJEFfhGMxEpSREj60AzJUireA9ErbDmPIuLWpZ1wQ RCUqXQuZIo0ujFIaJdIbxNWArhf3Y6cz6bbg2MrVKQqp4swrXsOrKC6BRJtz0ESdk2tF qOzyHwiCufoVhA076yJS6mQd/C9ZcEr2c9SJ8= 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=U4U8YIqo/X7UVd9msnqsf3YoyvJRqFOqgbeOmJNMkY0=; b=fQNY7sCGzvt/qqP3okzgvxt/jKEbQlrkkksJ5K+gMW1XdDOxXZpgJEFShVdFKu51BC hV/U0iYTwBBky39nNBiNcob8tCtPocDI0fsu7LRJ7PCITpDQEACzPJ0HbXhkciS3pIkF 7vqh0WvNOypqULQ2mn8E4YGeU9e83ts0X3ZQWoNyzWhKnIbJDLKM//qhvl9H0dtFS1oZ k0N8FH94fB+qO54kC6Lf0s5bAOo7u/qHWWe9ullCaMNrYXzXxkef5+p3bLUOePnR/BJ/ GUxyUMNjQ+9Dawn6quf8ajwiC+dkKmTKY1ITzZQJYrtITgZ20HCnGzOCXZB/vXe009CQ 7IOA== X-Gm-Message-State: AOAM533rK6t0ps20XtVkGMTJyE3kMjVhvPp0+thV8zj3yn188EPnjD9o Tgp3M+hzWbPMfepjLo5xcB9nMSt3pHKyZA== X-Google-Smtp-Source: ABdhPJyg+6D5vAaddUXGHeh01+NWV8VeT4nJ2R25w6v06Nzej2RASmJxetwyomkcgN795EQCCc0XZQ== X-Received: by 2002:a17:90b:1048:: with SMTP id gq8mr23896595pjb.213.1623673344490; Mon, 14 Jun 2021 05:22:24 -0700 (PDT) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:203:dd3f:f6f0:e98e:863b]) by smtp.gmail.com with ESMTPSA id k15sm18035964pjf.32.2021.06.14.05.22.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 05:22:24 -0700 (PDT) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Mon, 14 Jun 2021 21:22:15 +0900 Message-Id: <20210614122215.510562-1-hiroh@chromium.org> X-Mailer: git-send-email 2.32.0.272.g935e593368-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: CameraSensorProperties: Add test pattern mode of imx258 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" Add supported test pattern modes of imx258 in CameraSensorProperties. Signed-off-by: Hirokazu Honda Reviewed-by: Laurent Pinchart --- src/libcamera/camera_sensor_properties.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp index f660743a..afa59b82 100644 --- a/src/libcamera/camera_sensor_properties.cpp +++ b/src/libcamera/camera_sensor_properties.cpp @@ -65,7 +65,13 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen { "imx258", { .unitCellSize = { 1120, 1120 }, /* \todo fill test pattern modes for imx258. */ - .testPatternModes = {}, + .testPatternModes = { + {0, controls::draft::TestPatternModeOff }, + {1, controls::draft::TestPatternModeSolidColor}, + {2, controls::draft::TestPatternModeColorBars}, + {3, controls::draft::TestPatternModeColorBarsFadeToGray}, + {4, controls::draft::TestPatternModePn9}, + }, } }, { "ov5670", { .unitCellSize = { 1120, 1120 },