{"id":15113,"url":"https://patchwork.libcamera.org/api/1.1/covers/15113/?format=json","web_url":"https://patchwork.libcamera.org/cover/15113/","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":"<20211210144424.14747-1-david.plowman@raspberrypi.com>","date":"2021-12-10T14:44:16","name":"[libcamera-devel,v12,0/8] 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/15113/mbox/","series":[{"id":2835,"url":"https://patchwork.libcamera.org/api/1.1/series/2835/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2835","date":"2021-12-10T14:44:16","name":"Colour spaces","version":12,"mbox":"https://patchwork.libcamera.org/series/2835/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15113/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 7B85ABF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 10 Dec 2021 14:44:39 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7FAB76089C;\n\tFri, 10 Dec 2021 15:44:38 +0100 (CET)","from mail-wr1-x434.google.com (mail-wr1-x434.google.com\n\t[IPv6:2a00:1450:4864:20::434])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 34AC660868\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 10 Dec 2021 15:44:37 +0100 (CET)","by mail-wr1-x434.google.com with SMTP id i5so15331799wrb.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 10 Dec 2021 06:44:37 -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\tw22sm3000515wmi.27.2021.12.10.06.44.35\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 10 Dec 2021 06:44:36 -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=\"rqFoWptA\"; 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=38ydoVzEjRyVk7uiwhO7tuBSUdQ5l1eOfswX5fta6Fk=;\n\tb=rqFoWptAQgf2m46nBnuUTJp2IqgB934ehFGZ8OXa1s62ATcj5am8zVMgUQLb8PRqzh\n\tagFGG1P5rsisKYqhlLeP7k7O9KBs/HlrDtbiRkS3EvP/dh7G9GeAcR9S94+uYvNSc3OR\n\twdNlVISSPUYqNcLYPgGIUpr1WD/Ej7kX08lJXtq3SDLfVItP+yivtKTD4zTAjSPt6MsA\n\t+bfwbYN/N4N/pY0ZrKeN/FpoH8VItLuBBMpJZi7f9eh6Mq9L7HNuF1D5kA02YHjiwD7x\n\tWRzPE22SzE7dl/DO1miorU2s/RqUMZ2AbAn9MWgYOjk+EjrgIxNkzCM3jQcxydySkL5B\n\tfugg==","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=38ydoVzEjRyVk7uiwhO7tuBSUdQ5l1eOfswX5fta6Fk=;\n\tb=HPgmcsTjD8bKj+OuGvfi3cbh4sCHY+SQLzoJffM8A+urDh2236tMS5PIFXX2SYuVuQ\n\t2NBtlNveruT627GVEpvC4U9pIIsqZubAsgMjARvg7DRpoSHA9FRk0uV0hUPGSpVRHoSZ\n\tYOrFHP68YFO5sj9NBcPFHj4uSPpXwPvyPsVDj47xWF/Vp9XgU39aKDMGYZ6GPHL2t5Uy\n\tSP9GpxQWjq6PI/LRwwkz8PIRkWBrf+xbjRVJEPb29P76PW4Cq04dy3xJ23pDptVrRIDo\n\tndSiyslmVAEXnHCCMk/vZgatFfrqpHzDboxIc1OiS+pg4ZiPThmblenXoLk3skGSCPmh\n\tCU6g==","X-Gm-Message-State":"AOAM533wPzdMVNFNPxTGC/nQgdIftOa1sjFYENkSQ+3HOU+MKBh8yLYV\n\tqJiDMm8CjE5zgMKdFgbqfidhvg==","X-Google-Smtp-Source":"ABdhPJwMIvrgRgDunbN+WvcJ/adVCSzXaVr0CAHKOnuQzmK/+RpRSIGGZKdqK50Umgb5p2Sst9/XwA==","X-Received":"by 2002:a5d:60d0:: with SMTP id\n\tx16mr15049877wrt.103.1639147476646; \n\tFri, 10 Dec 2021 06:44:36 -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 14:44:16 +0000","Message-Id":"<20211210144424.14747-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 v12 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\nv12 fixes a few small things over v11:\n\n* In patches 3/8, 4/8 and 5/8 the warning messages are moved into\n  those static member functions.\n\n* In patch 7/8 a bug crept into the validateColorSpaces method at some\n  point, so I've fixed that.\n\n* There were a few minor/cosmetic things that I'd missed, so apologies\n  for those. Hopefully I've got them all now!\n\nThanks again\n\nDavid\n\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                      |  83 +++++\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                 | 210 ++++++++++++\n src/libcamera/v4l2_subdevice.cpp              |  18 +\n src/libcamera/v4l2_videodevice.cpp            |  22 ++\n 18 files changed, 819 insertions(+), 6 deletions(-)\n create mode 100644 include/libcamera/color_space.h\n create mode 100644 src/libcamera/color_space.cpp"}