{"id":14457,"url":"https://patchwork.libcamera.org/api/1.1/covers/14457/?format=json","web_url":"https://patchwork.libcamera.org/cover/14457/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20211104135805.5269-1-david.plowman@raspberrypi.com>","date":"2021-11-04T13:57:58","name":"[libcamera-devel,v5,0/7] Colour spaces","submitter":{"id":42,"url":"https://patchwork.libcamera.org/api/1.1/people/42/?format=json","name":"David Plowman","email":"david.plowman@raspberrypi.com"},"mbox":"https://patchwork.libcamera.org/cover/14457/mbox/","series":[{"id":2691,"url":"https://patchwork.libcamera.org/api/1.1/series/2691/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2691","date":"2021-11-04T13:57:58","name":"Colour spaces","version":5,"mbox":"https://patchwork.libcamera.org/series/2691/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/14457/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 97907BDB1C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  4 Nov 2021 13:58:25 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A24976034A;\n\tThu,  4 Nov 2021 14:58:24 +0100 (CET)","from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com\n\t[IPv6:2a00:1450:4864:20::32a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7959B60128\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  4 Nov 2021 14:58:23 +0100 (CET)","by mail-wm1-x32a.google.com with SMTP id z200so4605981wmc.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 04 Nov 2021 06:58:23 -0700 (PDT)","from pi4-davidp.pitowers.org\n\t([2a00:1098:3142:14:1ce1:9965:4328:89c4])\n\tby smtp.gmail.com with ESMTPSA id\n\ti20sm2264736wmq.41.2021.11.04.06.58.22\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 04 Nov 2021 06:58:22 -0700 (PDT)"],"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=\"ZMTxzb2S\"; 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=OGhBopQLmTgCRTw4zwjmL+TmK9CHbij8/zfdvyDPTHg=;\n\tb=ZMTxzb2SbhDbPfEn8TMMp3cEqmip6LK0odY3F7zKH3HIm7Z/wLMWiex9UxULzQtpdp\n\tDeq0L/iHmLmlME7b4dfuamt2W9VVZne6bguoMLsU670pEeRnDD5LWx0OCUW9kIjYjsn3\n\tTVECEdugjNw/NiuSZgQdSbbzWBDU+PXfKxJk9HsIRBUzWNhjPLxquEZvJhqgQYrLz9br\n\tFXIntG/ZvqEborIlvtRvNIFd92eOdqhxxZi/BgX2JDeJv4tHv8WuI5RdP0HYI2AIIZ+k\n\t7wwmBLbojmqzA97Bv8RmHz6IlH5nCl3Q9Qhf2VeUXZZeUGPSLpfSJISc37tlDJ5vRaCl\n\tlLNA==","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=OGhBopQLmTgCRTw4zwjmL+TmK9CHbij8/zfdvyDPTHg=;\n\tb=RjHAK/JW4uyWIAEpGsMd/8xGUHfxuIxePvF8V05cazLAoPjTmKOX1JfPxU2p94cCND\n\tZ/7/S+3L/mKAHdOm6EpYa+MBVSYDoZ+53QfJ604sVLDktYRFVfDFVooKM8GSDRPoOJPn\n\tfa5LNBmodZtSdA4pQs61gFiUpWYulihUPCKCY7BrIsDJHyRLjwi7mOg4IL64QnZcNv78\n\t8H0hj0RjBjWaCy0+Sm4SoPgSMZ2CXTJk/qt6i1IfyBhVxt83g678YuBr3sBsnrpZpj2E\n\tHda9LGlkebOYHbImi3uJ4VtpM5+tsIJks/0RJtExeVALr/+kwnyuD3eN8gUWW96htbbj\n\t6Ijg==","X-Gm-Message-State":"AOAM533VzTQVfqGl/Oem7vNvITX9yIhvmNKsd9BtUn7qLDmGxtm3/GpP\n\tA3PPaXCFKQT7jGzDh+EkLgGEk+UaEvbsnw==","X-Google-Smtp-Source":"ABdhPJwk3QqcwNdhVYUKDCk1sAdiDkDoZJOCT78CqNhGefKfvwefVbGcArpCDVFTqkdMzY9syAK+YA==","X-Received":"by 2002:a1c:6a0e:: with SMTP id\n\tf14mr22814616wmc.58.1636034302853; \n\tThu, 04 Nov 2021 06:58:22 -0700 (PDT)","From":"David Plowman <david.plowman@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu,  4 Nov 2021 13:57:58 +0000","Message-Id":"<20211104135805.5269-1-david.plowman@raspberrypi.com>","X-Mailer":"git-send-email 2.20.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v5 0/7] 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\nHere's v5, which is different to v4 only in that I've rebased the\nRaspberry Pi PH changes (the final commit) on top of its recent\nmedia-controller-ification. It's not a big change, but things are very\nslightly different there now.\n\nThis has shown up one little niggle, which is that the V4L2 subdevice\nnow complains about retrieving an undefined colour space - from the\nmetadata pad! Currently I've left the warning in but added the pad\nnumber in the message. The metadata pad is easy to spot in practice\nbecause it always has a non-zero pad number. But is there a proper way\nto know this?\n\nThanks\n\nDavid\n\nDavid Plowman (7):\n  libcamera: Add ColorSpace class\n  libcamera: Add ColorSpace fields to StreamConfiguration\n  libcamera: Convert between ColorSpace class and V4L2 formats\n  libcamera: Support passing ColorSpaces to V4L2 video devices\n  libcamera: Support passing ColorSpaces to V4L2 subdevices\n  libcamera: Add validateColorSpaces to CameraConfiguration class\n  libcamera: pipeline: raspberrypi: Support color spaces\n\n include/libcamera/camera.h                    |   2 +\n include/libcamera/color_space.h               |  88 ++++++\n include/libcamera/internal/v4l2_device.h      |   7 +\n include/libcamera/internal/v4l2_subdevice.h   |   2 +\n include/libcamera/internal/v4l2_videodevice.h |   2 +\n include/libcamera/meson.build                 |   1 +\n include/libcamera/stream.h                    |   4 +\n src/libcamera/camera.cpp                      |  51 ++++\n src/libcamera/camera_sensor.cpp               |   1 +\n src/libcamera/color_space.cpp                 | 257 ++++++++++++++++++\n src/libcamera/meson.build                     |   1 +\n .../pipeline/raspberrypi/raspberrypi.cpp      |  42 +++\n src/libcamera/stream.cpp                      |  25 ++\n src/libcamera/v4l2_device.cpp                 | 171 ++++++++++++\n src/libcamera/v4l2_subdevice.cpp              |  42 ++-\n src/libcamera/v4l2_videodevice.cpp            |  67 ++++-\n 16 files changed, 758 insertions(+), 5 deletions(-)\n create mode 100644 include/libcamera/color_space.h\n create mode 100644 src/libcamera/color_space.cpp"}