From patchwork Thu Aug 4 10:45:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 16960 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 BDCE0BE173 for ; Thu, 4 Aug 2022 10:45:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 241446332D; Thu, 4 Aug 2022 12:45:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1659609956; bh=vUPQWBi28G76lruaXdkOn22CACtI3g6LkVZLCWT2fj4=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=MmAOM/YtJ6o/OJ28C63YHiKqBoyYR4XFQ+NxFBh1za6Ks1vexlEjJWLEhOmvOv/F8 u8f1vqEAxAuCQyFdhGXbkh04MaCJyO5IYhitw9WW2TPpp1iUCW5bFbhyilrhTAIlY6 g3PfpxExDbxLFuMcCwFik29tl3vGINupjHdR89QaTgMkBDZzWyZtrY/Tks9LNPpftq hTHBxrkaJtiRHi0rJ0nj0wm31FsiZblgQP5GWHhCpwXB9oSp3rbJ28Ue0+fxAk+XN2 v0JSqryNrGO+WmQLc+dYuQ3MV1Qx65eQ+OYIBb7OUg+ne8zxcrNYtfBFj+vVhu5Y3z r0VgIOU/afiUA== Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F240B6330D for ; Thu, 4 Aug 2022 12:45:54 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="LLE7us8m"; dkim-atps=neutral Received: by mail-wr1-x434.google.com with SMTP id j15so16684700wrr.2 for ; Thu, 04 Aug 2022 03:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=do9+eNF4wMnNEutllekxrYT/JNyhXxSgtNTSUzbVfJ4=; b=LLE7us8m6DIKJPfJCCtDKKQmVqZBRWBnGqVXzdVoubpGww2bVE0oIvkKTwT0ZvskmI 7ApYi7dTXnN8arLPuqbZ8BzMPpZaC3SGN6QBHPIc6ZA1T/2fsEvIWtjYqc+rVxAs2HP+ 7jKjN15tddjmp+F6ZoptdmtxUG7FNlb3g+BMqtN+Ck/jRJxfgKqGZ0nZPYBeYfPllQj6 DjL5s738ZAbHeVc7AJpRICNu5W/5C5r8H51kAKIe0UxbkWamn7M4CFDu7bXz1AAswUVK 02DYF53y2efc8aXnDJkh4uve9ywlrxnWgG0P3XQFN83BztSxvYp7qEZfOoRMLKGudTPU XTaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=do9+eNF4wMnNEutllekxrYT/JNyhXxSgtNTSUzbVfJ4=; b=k4nsdAE3AWDeo56wWY8M5PSg9T+i/TXYN+p9HATdr0AkwN7rHvSwd/SwCj+HlvgLpD LB4KjtWFSi5KebJXJdr/z5UrUl/qB4SFGuayO0FnvGzNDR2JdP1HkxJaQ1Z3CzORbrMo DqPQ1OKnlAO0G7x15MDm8fNlPujnV558NsQsvI801VnjfjX+RMmk07fSbXOVuW91vCP9 awaSyF8J5Oh+Qm2AiUst+NePGZJLv5vK0LpQoiOWMGzghQ3tOWZXMpASOVu7Spb6ysL0 F7SaSmGjG3t6s5aru89+3qwpKkC60lDG2C+LKmL2qLkdDzVZiOdU20a5lce74RqIR11D quqg== X-Gm-Message-State: ACgBeo3zdxIjAu2UwEypfoJEncGCU0nRP8zSvL/OBOwYrMS5V67+FGLA /rs4mP0+/59XsvhXU/27PqZhHFRxd5mIic1f X-Google-Smtp-Source: AA6agR6LMPFtVE8O8AIHTcclO4Jd7ErUGj2ynnQvERRX3JnOjaFv5MdtxELL2Zpc7dJIbHOwtiQyyQ== X-Received: by 2002:a5d:6d8a:0:b0:21d:a6f3:f458 with SMTP id l10-20020a5d6d8a000000b0021da6f3f458mr1050739wrs.574.1659609954233; Thu, 04 Aug 2022 03:45:54 -0700 (PDT) Received: from pi4-davidp.pitowers.org ([2a00:1098:3142:14:e4a2:3070:eea4:e434]) by smtp.gmail.com with ESMTPSA id e27-20020adfa45b000000b0021e519eba9bsm829695wra.42.2022.08.04.03.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 03:45:53 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Thu, 4 Aug 2022 11:45:48 +0100 Message-Id: <20220804104550.4600-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] Fixes for raw monochrome stream configurations 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 everyone These two small patches make configuration requests for raw monochrome streams work correctly. The first patch marks these formats as having a "raw" colour encoding rather than YUV. (I'm assuming *non*-raw monochrome streams aren't using these media bus formats?) The second patch just fixes a typo and adds the packed 10-bit variant to a table where it was missing. Thanks! David David Plowman (2): libcamera: formats: Fix colour encoding for "R" raw greyscale formats libcamera: Correct typos and omissions for packed 10-bit raw monochrome format src/libcamera/formats.cpp | 10 +++++----- src/libcamera/v4l2_pixelformat.cpp | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-)