From patchwork Mon Jun 21 14:00:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vedant Paranjape X-Patchwork-Id: 12666 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 BCD02C3218 for ; Mon, 21 Jun 2021 14:01:01 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EDE0B68935; Mon, 21 Jun 2021 16:01:00 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kegyt0Oz"; dkim-atps=neutral Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 9C9CB60295 for ; Mon, 21 Jun 2021 16:00:59 +0200 (CEST) Received: by mail-pf1-x42f.google.com with SMTP id y4so6725161pfi.9 for ; Mon, 21 Jun 2021 07:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GmQMdmL1lQu9QV7Sssd0x87FXpr5b5/RtK5mm3diye0=; b=kegyt0Oz3G+DscQ+ePFyGz/Ei9Aq0/FT0BrSOo6atZNIrW9bdG07DDIkZnJWAap9b7 DWryLuswHOWEwSQ72503xsUiTyL48QUQNaSrYvnvOHVHJ8EphcQXuv9il9fvSrzoHpPN unt6QFkt6Gu0qLGAUMZXYCUrX+umi8EwqDohOb5NJA4g48K4mdk51bBrG7byPNIuY77L 87HPwAF0SyHGohAyJrEz/r/8dRXoS/S/fK+8neYVsY5j5csPF9inKogWZbwGO/PTaz3H egayXDJc2K4j0Y9AX+cVxxCnYyYU/HlxSkn++Y37vjfWEtlZ5YckL4zWXWHt/ID/hWSv WVUA== 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=GmQMdmL1lQu9QV7Sssd0x87FXpr5b5/RtK5mm3diye0=; b=AO26NHlw/wInfTyQGgIALXgVS08nZbmYu7uey5215q/EiZf/AirBGVCem+KnS71uwS hzMkaFxsEmOu0ds9HIwcKqPdkYEBmRS3ZuZKN4BsRqT6eCcA0TO3LdlHlWJgpbSYuSip 8ayM+bP2dO7Qq8I1cnPQ3Yg7uF5fUfh26BOqygkgCfYmEg5+e1qaPv2rBJe2/MxVLgdA TXdxEoEisrgSJv9Te2kgzSGpUlwOEwyM3dMDXyU9QUbRcpQRtodVk7EcHtPX9gcda6tz 5NzaZEr2YsKHMqW8f6AspmR52dE7lh0yMUo+FNcZjQM5S9aCRDT9g9Vzl/H5M6XNqhFC 3AqQ== X-Gm-Message-State: AOAM530TjQQQolDXorRN7pqMQwGt4yCX/Qj40hkif9YtWUwhXRbB9DJz QQYBZp/nLgdbvXa5dQXrtOP+5v0r3U2PSrZN X-Google-Smtp-Source: ABdhPJx6G9mpzrpL/CFAOtsKrUmGE6whIMxjCiT3nWML/lAu1rXqZbcJ03uGakBNDJSipuv1UXt7nQ== X-Received: by 2002:a63:7a1a:: with SMTP id v26mr21079854pgc.381.1624284058042; Mon, 21 Jun 2021 07:00:58 -0700 (PDT) Received: from localhost.localdomain ([1.186.76.76]) by smtp.googlemail.com with ESMTPSA id v15sm15600608pfm.216.2021.06.21.07.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 07:00:57 -0700 (PDT) From: Vedant Paranjape To: libcamera-devel@lists.libcamera.org Date: Mon, 21 Jun 2021 19:30:35 +0530 Message-Id: <20210621140035.119636-1-vedantparanjape160201@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2] libcamera: Add OV5647 sensor properties 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: , Cc: Vedant Paranjape Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Brief specifications available at https://cdn.sparkfun.com/datasheets/Dev/RaspberryPi/ov5647_full.pdf Change referenced from Page 5: key specifications section of the above linked pdf > pixel size: 1.4 μm x 1.4 μm Signed-off-by: Vedant Paranjape --- .vscode/c_cpp_properties.json | 17 +++++++++++++++++ src/libcamera/camera_sensor_properties.cpp | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 .vscode/c_cpp_properties.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 00000000..103e7a55 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,17 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [], + "compilerPath": "/usr/bin/gcc", + "cStandard": "gnu17", + "cppStandard": "gnu++14", + "intelliSenseMode": "linux-gcc-x64", + "compileCommands": "${workspaceFolder}/build/compile_commands.json" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp index f660743a..43030e8b 100644 --- a/src/libcamera/camera_sensor_properties.cpp +++ b/src/libcamera/camera_sensor_properties.cpp @@ -81,6 +81,11 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen { 1, controls::draft::TestPatternModeColorBars }, }, } }, + { "ov5647", { + .unitCellSize = { 1400, 1400 }, + /* \todo fill test pattern modes for ov5647. */ + .testPatternModes = {}, + } }, { "ov5693", { .unitCellSize = { 1400, 1400 }, .testPatternModes = {