From patchwork Thu Aug 5 14:21:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 13211 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 DB8B9C3237 for ; Thu, 5 Aug 2021 14:22:00 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 24C486026D; Thu, 5 Aug 2021 16:22:00 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="VSx4BIie"; dkim-atps=neutral Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B10106026D for ; Thu, 5 Aug 2021 16:21:58 +0200 (CEST) Received: by mail-wr1-x435.google.com with SMTP id j2so6771527wrx.9 for ; Thu, 05 Aug 2021 07:21:58 -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=xm5LLNex7PzNWDgg79tSJ5Cng1pkdmPeJLLDQRZuvnQ=; b=VSx4BIieR2I7uudJQ5L60YQDCGaEZA4dnJsUXPGsWEDymRJggkJzuhknkd1QfmcXnt T88QlAmULOVh7m3gxRaF4n2tA6lhOuXG16z8WEqf47n46TzU5RPH7PQNCYQ3VDfaisPe 4S3sUu2zFG1LLDHmIf3ZIm9TCGZCtSVzPVEDkQS6WtJlinscJzdLOtQUb4g/T0WEHOWw DNfGiNe24BkjEZjeGtD+kNXaR+PBCWZdwScuq7bNU385uDCvVynYhNXFTzha0vtzKW1/ NmeHpm7ftsNYBW3UJsv9B/3FAp5GgSD5xxKQe8dSmIz1/IK7kd54DFQaaD0SBb7JLHku SUYw== 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=xm5LLNex7PzNWDgg79tSJ5Cng1pkdmPeJLLDQRZuvnQ=; b=dOL2m1ZOJw9yS/VSNRNnLCiIL61xuqBWr0QJopvy6KTMqUt/zMjqe7ZJx7CFTWaz/M gk3M/QvdWESyegd/yZQu6pdTGwQtlRxPHZEa3HOn9kEHASmvu03J8k+/oMH+DI4OZDTG y8oXtd43Z+Sd19N4RWy5zwXQ2YvlMwIvXHOmjabb1jrkJlSRGr8bU3xjEAVjWH/4CK/W Zo8eqUuhzWohMXdfxngi7dvHvRxSkPlm7A4xF0roXM7ixpy9SMnUspkRhjsxqc2AIOBr jTwZ6rEp6Z9Yi/PYN+YqclP+oGRCDIaEMahcfw+5JhbNWLAAJ6A09oTYUqftRnNwKng0 3lPg== X-Gm-Message-State: AOAM531MaAHDy/uC5zRKivLJl9mO0b1OaZcZ72WRl+9IfoMWzQ1HOvPu kazHgV4TM+iLMj0p+ooPYynsFE3cDjpZ0A== X-Google-Smtp-Source: ABdhPJzBmF3R1BT9fdZHdrM9L5ax8iQ8Tj4LqQIBMuwFZBrtFVga2XViiBOPD1WQlCOlMLBzzAxNHg== X-Received: by 2002:a5d:4f0c:: with SMTP id c12mr5750376wru.63.1628173318126; Thu, 05 Aug 2021 07:21:58 -0700 (PDT) Received: from pi4-davidp.pitowers.org ([2a00:1098:3142:14:1ce1:9965:4328:89c4]) by smtp.gmail.com with ESMTPSA id k17sm6410004wrw.53.2021.08.05.07.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 07:21:57 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Thu, 5 Aug 2021 15:21:51 +0100 Message-Id: <20210805142154.20324-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] Colour spaces 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" Hi everyone In view of the discussion the other day, I thought perhaps I should "de-RFC" these patches. There are no code changes beyond a very few cosmetic things, and I added the missing documentation. As such the patches are still: 1. Add the ColorSpace class. 2. Support the ColorSpace in V4L2VideoDevice. 3. Add ColorSpace support to RPi pipeline handler. Thanks! David David Plowman (3): libcamera: Add ColorSpace class libcamera: Support passing ColorSpaces to V4L2 drivers libcamera: pipeline: raspberrypi: Support colour spaces include/libcamera/color_space.h | 94 +++++++++ include/libcamera/internal/v4l2_videodevice.h | 2 + include/libcamera/meson.build | 1 + include/libcamera/stream.h | 3 + src/libcamera/color_space.cpp | 180 ++++++++++++++++++ src/libcamera/meson.build | 1 + .../pipeline/raspberrypi/raspberrypi.cpp | 84 ++++++++ src/libcamera/v4l2_videodevice.cpp | 117 ++++++++++++ 8 files changed, 482 insertions(+) create mode 100644 include/libcamera/color_space.h create mode 100644 src/libcamera/color_space.cpp