From patchwork Mon Dec 6 10:50:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 15041 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 EFA59BDB13 for ; Mon, 6 Dec 2021 10:51:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 254566086C; Mon, 6 Dec 2021 11:51:22 +0100 (CET) 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="aWQvuvXq"; dkim-atps=neutral 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 0B85F6011A for ; Mon, 6 Dec 2021 11:51:21 +0100 (CET) Received: by mail-wm1-x32e.google.com with SMTP id 137so7787487wma.1 for ; Mon, 06 Dec 2021 02:51:20 -0800 (PST) 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=wCrf/DePoFHYwfX0mzW9hntrkA7qVeVCvPGSs3vboMA=; b=aWQvuvXqmw05nzZZ7HZKr4PUA+a+af4Al+rtM+Hf1RYAbHJKtglHbAdjN90vudoeQo KboIwNT4d8MQRe6TOTD2mDbSmiNkZMfNVFuwdPOiU+7JNQleNLqrWMka8+S9fKaw0quf bb9TH6Al25CvsoyqA2O7koxJvYsu6crcZkdD6XH4QXlwWe/btrjDttrtEAxN91UxtpZr /Nac+zraB+D5f97toJGaMRSiCZ6tkVmUX9hxvpNTA4trypAvSk3Bp57EtrD/Gh73zV5V IpINPX0bE9lrGREtWfxMx5GKERDaJ8pagvld7LE/tRqr0mfQckZWYWolIaDoHzOGy+um QUNw== 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=wCrf/DePoFHYwfX0mzW9hntrkA7qVeVCvPGSs3vboMA=; b=S3B6y+u7NgGCo9bS15NXuawAHjh++vHfmupZnGetD+pKVxexdmFXFKxr8e+ig1N98f DLAydoFiA9/ZMoY1JOJrok0BNmv7S6mRGXyFhLKOd1VUgJ6JrcHyDKb5YKUo4gGKzHVQ 1zXWSzr1C5UQerEGLiYvHzOj3sKx0+Xtgkx5pSCK1BptZ1NAI8re0IVLhCkzP+M1mp7p ptGnBSpcYLMgP4umrfgC+rh+syWfuT2b5knNpDW+GJsOEk/ipQSpKTXZ/3AQgxtCaDjy WFfvg1LzwSTk1B9ljvBEPkrTxrhxbRQBFbwmOCjC7kmJ4eLfhGBDOGHlfLSzQ/2iTfuX 3Y/w== X-Gm-Message-State: AOAM531Y1DeEuR4I1IMluSxe4qXCYZJ3bgCclQUr1IDrxjnErIQ9a3Yw sa7zKrXwIGA2I9zSPoPqNsZ9kOWsSch73wzd X-Google-Smtp-Source: ABdhPJxxOWilHmgLOMkU2OFMUiuEkOhM7TO+pk2oVw0JAVNMLOytJ7BGknPg+yUsfpR3OmnMPHoc0A== X-Received: by 2002:a05:600c:3c91:: with SMTP id bg17mr38565336wmb.80.1638787880504; Mon, 06 Dec 2021 02:51:20 -0800 (PST) Received: from pi4-davidp.pitowers.org ([2a00:1098:3142:14:1ce1:9965:4328:89c4]) by smtp.gmail.com with ESMTPSA id r7sm10878186wrq.29.2021.12.06.02.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 02:51:20 -0800 (PST) From: David Plowman To: libcamera-devel@lists.libcamera.org, naush@raspberrypi.com, jacopo@jmondi.org, tfiga@google.com, hverkuil-cisco@xs4all.nl, kieran.bingham@ideasonboard.com, laurent.pinchart@ideasonboard.com Date: Mon, 6 Dec 2021 10:50:23 +0000 Message-Id: <20211206105032.13876-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v9 0/8] 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 No great changes here, just a couple of updates from Jacopo - so thanks for those! - and fixing a minor conflict in one of the build files. Best regards David David Plowman (8): libcamera: Add ColorSpace class libcamera: Add ColorSpace fields to StreamConfiguration libcamera: Convert between ColorSpace class and V4L2 formats libcamera: Support passing ColorSpaces to V4L2 video devices libcamera: Add colorSpace field to V4L2SubdeviceFormat libcamera: Support passing ColorSpaces to V4L2 subdevices libcamera: Add validateColorSpaces to CameraConfiguration class libcamera: pipeline: raspberrypi: Support color spaces include/libcamera/camera.h | 2 + include/libcamera/color_space.h | 69 ++++ include/libcamera/internal/v4l2_device.h | 7 + include/libcamera/internal/v4l2_subdevice.h | 2 + include/libcamera/internal/v4l2_videodevice.h | 2 + include/libcamera/meson.build | 1 + include/libcamera/stream.h | 3 + src/libcamera/camera.cpp | 59 ++++ src/libcamera/camera_sensor.cpp | 2 + src/libcamera/color_space.cpp | 305 ++++++++++++++++++ src/libcamera/meson.build | 1 + src/libcamera/pipeline/ipu3/cio2.cpp | 7 +- .../pipeline/raspberrypi/raspberrypi.cpp | 43 +++ src/libcamera/pipeline/simple/simple.cpp | 8 +- src/libcamera/stream.cpp | 20 ++ src/libcamera/v4l2_device.cpp | 192 +++++++++++ src/libcamera/v4l2_subdevice.cpp | 21 +- src/libcamera/v4l2_videodevice.cpp | 32 ++ 18 files changed, 769 insertions(+), 7 deletions(-) create mode 100644 include/libcamera/color_space.h create mode 100644 src/libcamera/color_space.cpp