From patchwork Wed Sep 27 16:34:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 19090 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 2B5C8C326B for ; Wed, 27 Sep 2023 16:34:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8A2DD6293F; Wed, 27 Sep 2023 18:34:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1695832474; bh=3vOD9xkor/vWvwu5oeaUxeVhRbrtPsV0rGJDGZqGlW8=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=f9B4CnSIOtfK8H2Z4L0s4QrMot+XFEe5gXoqR7+otcagfRqr/jVTTKHx3HPmvLCsk R91IiXLTypNl7aIcAExEe6HJBC1eQ8aZSAz1LPOTordQ9zRCHu70Rpa9C+JbLdY2JB s5sPFO9x63MqnVl0CD6IGDtriEniRJE0+SjSHaNnR7nejT8hMFNuJfsXZ1/32xQJUh zu3TDNnDm7q+rrj1eRVxKbcCwzDtyTbiDusQkUlZPpJaJVeLJVzRoq6ccdaBiqp/1S fzouxIdZUaI0FqPRx39ubGHKrcBlzPQb3qrpYu3sErL9aSHz+kIG5bjbO1bbGebf6Q 1FekCC9wA9bjg== Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 720A661DE5 for ; Wed, 27 Sep 2023 18:34:33 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="FhPDq60F"; dkim-atps=neutral Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-405621baba7so86725045e9.0 for ; Wed, 27 Sep 2023 09:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1695832472; x=1696437272; 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=e3GFgTgqrfaTjsDvjU0UcprtdFSCz4roBbh5HSq0WSg=; b=FhPDq60FJeLx/HbLohxxhhS3Zw+XpGWNTuvZMj+urYtVpw9MNCfB501bOV/8G3Pg6L ynoEO8EWUIZxgeG0rf/0MtyYlk38hfwsSBVsWG15mkhDG8JkCTQcd0y3/MIR0w6Phcij 6FTexZnUC1hgYjKtzu33qgBeXGePUCxXaAcP31Wro3qSeB6y5wABZdQf6n5CCJeUwb1W qbgyCauYJ5igWZ6O7GMGtUKPfLlkPp0eOvT81mBTl/p58/IBBdNnBqSUzvYfOp1mdw+T dLLpTOXfUwfRC4mh+yTLKErCjHuyz08JFYh+7owAH4wop0cF2NIKDkecFl2mJVdd736P tOrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695832472; x=1696437272; 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=e3GFgTgqrfaTjsDvjU0UcprtdFSCz4roBbh5HSq0WSg=; b=UcfzDRvXZy8NN/tbdhf4O9NIibNsCFgENY9Q7omwrsoGULswNSx9kfHQB+qAQ7KIsI LXGniGFPnNTo3KwWfbnkv28idtWzfRAUOPj4t6BBVpkgn6VbCHhfA5N0gjEGaXoMav/g 3j1VvnCbDMSg0azjqRKItlmRsQep+UnljhBaD1VITQY20S4IyRqEsb+DUCH/0u2kvnuT xO2+cxmqMB0Qjbqy8r1EqWue1Z7VhDNqFwcr3XltT1K3aj5zBur7+3hYsmszTDaoCuq8 zq5Y+wi0CcIHCinjC5bWbvAzdwmc6dwutNfuxouzfN8gz58398h8jqLMZdHns1bL3U+b FUGw== X-Gm-Message-State: AOJu0YwxtIkcwRmAtEQg5Vn3IEI21ogjL0lPf89WrSwfAQDSBZONw9/o agg9QHwWBjB0fIypLDkQS58Lu0swBSlk/qcDC/0= X-Google-Smtp-Source: AGHT+IF5Oc6Mrb/bOo+qYEXqzvWCCzzwc1AtvtHaL2oronxzMBJK99nH72LEM3Cz7NSf8X6f842IDA== X-Received: by 2002:a05:600c:141:b0:402:e68f:888c with SMTP id w1-20020a05600c014100b00402e68f888cmr2573695wmm.7.1695832472218; Wed, 27 Sep 2023 09:34:32 -0700 (PDT) Received: from pi5-davidp.pitowers.org ([2a00:1098:3142:14:183e:6cc8:a436:a27c]) by smtp.gmail.com with ESMTPSA id p11-20020a05600c05cb00b003fc06169ab3sm15988106wmd.20.2023.09.27.09.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 09:34:29 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Wed, 27 Sep 2023 17:34:22 +0100 Message-Id: <20230927163422.15924-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] py: Add constructor for SensorConfiguration 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: , X-Patchwork-Original-From: David Plowman via libcamera-devel From: David Plowman Reply-To: David Plowman Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The SensorConfiguration is optional within the CameraConfiguration, so Python applications need a constructor to create a SensorConfiguration object that can be put there. Signed-off-by: David Plowman --- src/py/libcamera/py_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/py/libcamera/py_main.cpp b/src/py/libcamera/py_main.cpp index c36e6e6c..8df04520 100644 --- a/src/py/libcamera/py_main.cpp +++ b/src/py/libcamera/py_main.cpp @@ -283,6 +283,7 @@ PYBIND11_MODULE(_libcamera, m) }); pySensorConfiguration + .def(py::init<>()) .def_readwrite("bit_depth", &SensorConfiguration::bitDepth) .def_readwrite("output_size", &SensorConfiguration::outputSize);