From patchwork Tue Nov 22 11:30:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 17835 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 9264EBDE6B for ; Tue, 22 Nov 2022 11:30:54 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 06E506331A; Tue, 22 Nov 2022 12:30:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1669116654; bh=BSKtPOLf5WGDhRERI5YdUpMG1hYeqq/LRXhzZZOSQTk=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=HMJCwMJpo/snzI7D24Agvy+PQK/vKqVAHfJ6KIla8Dobf32PzqyYkjGfONWwtgYLt wQGB78MpUE147i4EIxPLG3X1FA1M51ccbg0j/WB9hsmIXfx3kQ08RYZQszzrjBS3LP K5mJ5DHO5gE4p0witEhxxBoPwMWqhtIes9tHAl61yGniM8GqjxyIGjLDG7hsCVZqLr DTwdxv2jsKypE/xUjF3RmDBsH2SN0vbUhbEKmxwcY3kw0lTMu95q15S7jo7PZzFOYD 4trODTpVpfbwFyWjpbLnMUZ8I1+UBqpns7cEff0Qg8o3SF3t3yDLg9+mYidzhBYsib AoaD76tHvXdsQ== Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 02718603CE for ; Tue, 22 Nov 2022 12:30:51 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="OHG2mk8I"; dkim-atps=neutral Received: by mail-wr1-x431.google.com with SMTP id cl5so24259846wrb.9 for ; Tue, 22 Nov 2022 03:30:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gi9avNQi20okcQJDwri6InAvfy/vtR3uMKDWRlQn+MU=; b=OHG2mk8IIIJ3vZsu1kjbXgaBFFvHlnaX8ZqwT1dH5kXsI78SFtnbVq2zdGDdvVdobz HRad8lSQajgLiHuYK/nRs6ceE9UCTCAGV1FsHN+9b8o1XK0YBCSM+NCKrJrWvmdHw/tO b8Qt/thCGvap6RbGYpPZ93XBY/eA6XgrCvVaWZUPEfmyQ5bMGfBoS7oOkobMV9YvvQf0 Py+vfj+g5uXc9l3jw7n6zLIrQ12uB2dImk2ZOUOwxO9rWqN2uMMPTByJHvQNyKYHkROt qvgfoRBgFm06fU/XSfonhZqiZ/pObJWCkaC6JcZbnFrboX5yoHb/04PTr32h3xB7nw1X 5/Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=gi9avNQi20okcQJDwri6InAvfy/vtR3uMKDWRlQn+MU=; b=psLwyEP8ep6s5sGZWSJD1fLi+5K62+Ha1vbzciMwURxhxIBRHaet9lKfUfPXE2+NWQ Vw5+unWxFRt3a/xUEGb4Q3rW+l3yis6B7mOkJ9wais58NcJT50NTA/JTZZRhlQyD8Snt sTJmM+htjDSgIzmYIXsD9/ILzA7AjxhHL4cYkn1MRu+CxVk4TMCPGkqYoWnczUFzSisC 9+8zsPK7ULh6TCWjr+Az2/a7lGzuEeuBVxO/0KsmtQwsrveBb6lkdv/p08P1VmiJDXIL XxAztaMBZwct4m5ax3q19E6CcrgedATi7UUI3TdrmD96dk0DMMCgGUhHS6mxFEto2IjU nORA== X-Gm-Message-State: ANoB5pkbYgLf+ze40xtMHkASQ7Gw7HxciXAbnjKxoILi4eMUHPdtrL/m lFLTtyc6vGDe1NyRn/7B2ALpBMpDiirAug== X-Google-Smtp-Source: AA0mqf5eLlZlsFS+LU7zCBODYbrZQ1h14KZ8C5O3hSrpK/NqFQ1hIIHRD+y4UFK2GZ6/WmpePtS7dQ== X-Received: by 2002:a5d:4d0d:0:b0:228:c1a8:6ef0 with SMTP id z13-20020a5d4d0d000000b00228c1a86ef0mr8088189wrt.584.1669116651239; Tue, 22 Nov 2022 03:30:51 -0800 (PST) Received: from pi4-davidp.pitowers.org ([2a00:1098:3142:14:e4a2:3070:eea4:e434]) by smtp.gmail.com with ESMTPSA id i6-20020a05600c354600b003cf894c05e4sm22713522wmq.22.2022.11.22.03.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 03:30:50 -0800 (PST) To: libcamera-devel@lists.libcamera.org Date: Tue, 22 Nov 2022 11:30:47 +0000 Message-Id: <20221122113049.3951-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/2] Resolve invalid attempts to set sensor flip controls 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" Hi again Here's version 3 of this set. This time it includes only the first two patches, which avoid resetting the sensor flips but store Bayer formats in their unflipped sense (as they did previously). Any changes to other pipeline handlers have been dropped on the grounds that they are not significant, and should be addressed when those pipeline handlers are fixed properly for transformed raw formats. Thanks! David David Plowman (2): libcamera: bayer_format: Add toMbusCode method libcamera: camera_sensor: Do not clear camera flips when listing formats include/libcamera/internal/bayer_format.h | 1 + src/libcamera/bayer_format.cpp | 11 +++++ src/libcamera/camera_sensor.cpp | 49 ++++++++++++++++++----- 3 files changed, 51 insertions(+), 10 deletions(-)