{"id":14424,"url":"https://patchwork.libcamera.org/api/covers/14424/?format=json","web_url":"https://patchwork.libcamera.org/cover/14424/","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":"<20211029132343.1629-1-david.plowman@raspberrypi.com>","date":"2021-10-29T13:23:36","name":"[libcamera-devel,v4,0/7] 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/14424/mbox/","series":[{"id":2682,"url":"https://patchwork.libcamera.org/api/series/2682/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2682","date":"2021-10-29T13:23:36","name":"Colour spaces","version":4,"mbox":"https://patchwork.libcamera.org/series/2682/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/14424/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 DC494BF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 29 Oct 2021 13:23:49 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2417C600C3;\n\tFri, 29 Oct 2021 15:23:49 +0200 (CEST)","from mail-wr1-x435.google.com (mail-wr1-x435.google.com\n\t[IPv6:2a00:1450:4864:20::435])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 449C1600B8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 29 Oct 2021 15:23:47 +0200 (CEST)","by mail-wr1-x435.google.com with SMTP id d3so16129270wrh.8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 29 Oct 2021 06:23:47 -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\tl7sm111934wrf.31.2021.10.29.06.23.46\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 29 Oct 2021 06:23:46 -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=\"L3DDAWaU\"; 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=Qw41KQSfW7aa/vXGngLbTdP+L5PzLptf6NbrBzZopiU=;\n\tb=L3DDAWaUhSmXLllz2bmYqUifKwa8R4ejWMKXUvE0abCx/z++xwfI4TPvDKqEEjEGmG\n\t4JBMFqGhLs3uu7o4kg6WNhOJwkTmDntoWpGuVDL22enVVI6Gwd7sFqRz2I5qiqff79Qd\n\tPjso2S9L5F4ye60z0BWi/aZHqmb8eTK1YVAqJcGZN9wEaWgkp3fl/pcuRjbUDv6FFO/C\n\th4KG015m00VydEqIGcVPGZ/HsPvF0iCYGiY/E7TiHQHfRkWDrIfhIOnX0AuVErshM1T4\n\t5DKixEy9YXiVP1xCZX4gl0gIIrb3vJ86+e/WDCT8gDd7JS5otExzUDwZ6gDzj9EASGzO\n\tjyzw==","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=Qw41KQSfW7aa/vXGngLbTdP+L5PzLptf6NbrBzZopiU=;\n\tb=eZgge9r37MCrvA8k2ekJCDTZLflYH3dp9M2MSrE/yBZ8B6E+9NE3uut0DboNtiPcDH\n\tlv8RHaDjGpJWaKm2D8cG4xFOEq81/sH/kuyZEY68tHPRRZyOMkqnp+d5dvcn/727Warm\n\tDX/v/qksmBkM+fcMDBIVF0AnrHgCZSNdN6/Z10TistlgpeCZu1Fuc7lOuQheF7ihjEJw\n\t1jkNIL6CvsBvrxtzFBsNazudjIdAv4X5rYXREv/W11DuFyuZNGDSU9uSXKaxFdWNgrys\n\tacoVCHZqPd2feuoJqfN8uhTEJ0O63pRACxY4AjDn9NtGmut7wwGCEhgtDelchjxA1CUG\n\t89JQ==","X-Gm-Message-State":"AOAM533IYc9IVNjJhOIZiEEmtw5jDoFVUJX1HlU8xmII0SGmyx8euFoz\n\trIL5qmiU7yGpJlLPHdpKgPbiQecBRj+/pw==","X-Google-Smtp-Source":"ABdhPJzJyyVJb8kXcSj6NJ/HvvY9lzv/EKdio8iECmn5dPw2MNYYl4mjqn9nPdzxfT662exdt1kAMg==","X-Received":"by 2002:adf:a350:: with SMTP id\n\td16mr14496483wrb.136.1635513826710; \n\tFri, 29 Oct 2021 06:23:46 -0700 (PDT)","From":"David Plowman <david.plowman@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Fri, 29 Oct 2021 14:23:36 +0100","Message-Id":"<20211029132343.1629-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 v4 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 everyone\n\nA fairly small update to this set, to adopt a couple of things from\nNaush and to fix a minor conflict. Mostly things are unchanged, so the\nhighlights are:\n\n* ColorSpace class as before.\n\n* Two ColorSpace fields in the StreamConfiguration, so that\n  validate() can't cause a configuration to become unusable.\n\n* I'm not currently signalling errors if the V4L2 classes get passed\n  undefined ColorSpaces. Perhaps something to add once all pipeline\n  handlers are upgraded?\n\n* And I'm happy to add commits to fill in a basic level of colour\n  space handling in other pipeline handlers (please let me know).\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              |  37 ++-\n src/libcamera/v4l2_videodevice.cpp            |  67 ++++-\n 16 files changed, 753 insertions(+), 5 deletions(-)\n create mode 100644 include/libcamera/color_space.h\n create mode 100644 src/libcamera/color_space.cpp"}