{"id":15104,"url":"https://patchwork.libcamera.org/api/covers/15104/?format=json","web_url":"https://patchwork.libcamera.org/cover/15104/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20211210112142.18441-1-david.plowman@raspberrypi.com>","date":"2021-12-10T11:21:34","name":"[libcamera-devel,v11,0/8] Colour spaces","submitter":{"id":42,"url":"https://patchwork.libcamera.org/api/people/42/?format=json","name":"David Plowman","email":"david.plowman@raspberrypi.com"},"mbox":"https://patchwork.libcamera.org/cover/15104/mbox/","series":[{"id":2834,"url":"https://patchwork.libcamera.org/api/series/2834/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2834","date":"2021-12-10T11:21:34","name":"Colour spaces","version":11,"mbox":"https://patchwork.libcamera.org/series/2834/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15104/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id D9A4FBF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 10 Dec 2021 11:22:05 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id F058A60897;\n\tFri, 10 Dec 2021 12:22:04 +0100 (CET)","from mail-wm1-x335.google.com (mail-wm1-x335.google.com\n\t[IPv6:2a00:1450:4864:20::335])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5284F60868\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 10 Dec 2021 12:22:03 +0100 (CET)","by mail-wm1-x335.google.com with SMTP id\n\td72-20020a1c1d4b000000b00331140f3dc8so6394554wmd.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 10 Dec 2021 03:22:03 -0800 (PST)","from pi4-davidp.pitowers.org\n\t([2a00:1098:3142:14:e4a2:3070:eea4:e434])\n\tby smtp.gmail.com with ESMTPSA id\n\tz18sm2198469wrq.11.2021.12.10.03.22.02\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 10 Dec 2021 03:22:02 -0800 (PST)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"H3JplUB6\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=2jloSvCky1XZpMKAVDD/veonE94c99Tu0OnU7LPgcZY=;\n\tb=H3JplUB6C4ZfMWi13nOLEvu21GhOXnklcbSscGTnyhh4vZrN8oA2kQIJPgK1G3sFfx\n\tvuqVnAwLG4ze7iK795CAHLcNwOzN6vSLd2F/U2fBuN7ctB1Fo21RxTVa7bZpojrTbgGU\n\tNqSaquTIJbetYRGY1f21MumKWJmHtdG/IAfBJ0fet10Xv0O+kZZNmzaNc9XwJhD04oKS\n\tRVSHjDBibm7vYglY6mDOmP6tTt5A72QxycoRQoOqmoaSznpApjXn99P/8Xgmv5t/cL8b\n\tS8WCieok07sK4GiNFLoLiu5VK3e6vvVUPl0TOmHwVrdvDSxdqS3IciqNwzTm8UMSxWQe\n\tK8zg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=2jloSvCky1XZpMKAVDD/veonE94c99Tu0OnU7LPgcZY=;\n\tb=3k/KAm++T3xOT8EaXj4oPw5yjftVS1nHmHHFbRVtwRb4bRLtgWZDJdgiPYhUMgq/EA\n\tDS4VJQ3fKoHScXC4RhyYBFitx+RmlV0Ha6yKueTD3FF1/hdPkQVho6FOp/v8NenoPJi1\n\taiJFxdjXEZOmkprOU41+/4SCHOL7IYP/17ALu6sMtRDKtSxT9lo/YDcAYb8iwmk2aOYA\n\tuGKYb6dhhcIVTISMBAcxGQmk8HRFGoaY27naekpbCitTlLWRaJ9vchKdli5ROdo5s6op\n\tAt/DBEpLfouXN+K1+AZtkueku2yDgq3GljSdAcPaVia7TaY+aJjJfCYdJXA2e67CvFs9\n\tgyAQ==","X-Gm-Message-State":"AOAM532H88nzX/bJPLBtqBgHN+bOwBN9msiCWWWN7g8TjNoTTVSHp64z\n\tfg26Oebp2h87xAiXgUXrRqL9zg==","X-Google-Smtp-Source":"ABdhPJyio3Ex0a3J3yXHHyh4E2Tl6q75zp2oYcFfHUpJkQgwtoUGvomLsjDShH+aWJT2Ks0hdygReg==","X-Received":"by 2002:a05:600c:3788:: with SMTP id\n\to8mr15379427wmr.82.1639135322816; \n\tFri, 10 Dec 2021 03:22:02 -0800 (PST)","From":"David Plowman <david.plowman@raspberrypi.com>","To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>,\n\tHans Verkuil <hverkuil-cisco@xs4all.nl>, Tomasz Figa <tfiga@google.com>, \n\tJacopo Mondi <jacopo@jmondi.org>,\n\tNaushir Patuck <naush@raspberrypi.com>, \n\tlibcamera-devel@lists.libcamera.org","Date":"Fri, 10 Dec 2021 11:21:34 +0000","Message-Id":"<20211210112142.18441-1-david.plowman@raspberrypi.com>","X-Mailer":"git-send-email 2.30.2","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v11 0/8] Colour spaces","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi again\n\nSo here now is v11, which has just hoovered up those mostly minor\nitems from Laurent, so thank you very much for those.\n\nThe only point of note is that I made the to/fromColorSpace methods\nprotected, only to discover that I then couldn't move the logging\nmessages in there because they're static member functions. Is there\nsome cunning workaround for this?\n\nOther than that, I think we're getting pretty close!\n\nThanks again and best regards\n\nDavid\n\nDavid Plowman (8):\n  libcamera: Add ColorSpace class\n  libcamera: stream: Add ColorSpace fields to StreamConfiguration\n  libcamera: video_device: Convert between ColorSpace class and V4L2\n    formats\n  libcamera: video_device: Support passing ColorSpaces to V4L2 video\n    devices\n  libcamera: v4l2_subdevice: Add colorSpace field to V4L2SubdeviceFormat\n  libcamera: v4l2_subdevice: Support passing ColorSpaces to V4L2\n    subdevices\n  libcamera: Add validateColorSpaces to CameraConfiguration class\n  libcamera: pipeline: raspberrypi: Support color spaces\n\n include/libcamera/camera.h                    |  10 +\n include/libcamera/color_space.h               |  70 ++++\n include/libcamera/internal/v4l2_device.h      |   8 +\n include/libcamera/internal/v4l2_subdevice.h   |   3 +\n include/libcamera/internal/v4l2_videodevice.h |   3 +\n include/libcamera/meson.build                 |   1 +\n include/libcamera/stream.h                    |   3 +\n src/libcamera/camera.cpp                      |  80 +++++\n src/libcamera/camera_sensor.cpp               |   1 +\n src/libcamera/color_space.cpp                 | 317 ++++++++++++++++++\n src/libcamera/meson.build                     |   1 +\n src/libcamera/pipeline/ipu3/cio2.cpp          |   7 +-\n .../pipeline/raspberrypi/raspberrypi.cpp      |  40 +++\n src/libcamera/pipeline/simple/simple.cpp      |   8 +-\n src/libcamera/stream.cpp                      |  20 ++\n src/libcamera/v4l2_device.cpp                 | 194 +++++++++++\n src/libcamera/v4l2_subdevice.cpp              |  25 +-\n src/libcamera/v4l2_videodevice.cpp            |  32 ++\n 18 files changed, 816 insertions(+), 7 deletions(-)\n create mode 100644 include/libcamera/color_space.h\n create mode 100644 src/libcamera/color_space.cpp"}