{"id":14354,"url":"https://patchwork.libcamera.org/api/1.1/covers/14354/?format=json","web_url":"https://patchwork.libcamera.org/cover/14354/","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":"<20211027092803.3671096-1-naush@raspberrypi.com>","date":"2021-10-27T09:27:54","name":"[libcamera-devel,v3,0/9] Raspberry Pi: Conversion to media controller","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/1.1/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"mbox":"https://patchwork.libcamera.org/cover/14354/mbox/","series":[{"id":2660,"url":"https://patchwork.libcamera.org/api/1.1/series/2660/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2660","date":"2021-10-27T09:27:54","name":"Raspberry Pi: Conversion to media controller","version":3,"mbox":"https://patchwork.libcamera.org/series/2660/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/14354/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 17ACBBDB1C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 27 Oct 2021 09:28:10 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 46B4C64882;\n\tWed, 27 Oct 2021 11:28:09 +0200 (CEST)","from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com\n\t[IPv6:2a00:1450:4864:20::42f])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8556D60122\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Oct 2021 11:28:07 +0200 (CEST)","by mail-wr1-x42f.google.com with SMTP id v17so2944914wrv.9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Oct 2021 02:28:07 -0700 (PDT)","from naush-laptop.pitowers.org\n\t([2a00:1098:3142:14:6561:eb24:3f00:ce98])\n\tby smtp.gmail.com with ESMTPSA id\n\tx2sm2861360wmj.3.2021.10.27.02.28.06\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 27 Oct 2021 02:28:06 -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=\"j5K23oyR\"; 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=5lCJAYOCZUfyQjUmms7B0E6nQiLakN4tuP07gJSQxbs=;\n\tb=j5K23oyRAmoMzQvuCivSeUr3/T0FZlHlV4MNcMUPSfLIongul2KhwvxXaOVhcQ/QQe\n\tPCie4BsBLefazH5aFXYxwH6pomsT1xgqNQY+1AXmQk2MH3eoNkTvALfFllYtxzsEPSf0\n\tHsKPW3saB/60MnuB8DHf07HZ7Lu91Ly7DABIsO2jftvDqfiV9rBKe4FaLU81Y5j2IEah\n\twnR9pKIqRWFGYlqyUngg9WOEkQLxJMUUjKsPvvCqwbhMVeIpNu08iNEbz1GSH7MgZKb7\n\tyiX2IAxmGK//vj0iyHsvL/95EOTy0Ah6Rvm8o0WziI8W75NGjqPRfe/DNW74AplLiFEK\n\twJTQ==","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=5lCJAYOCZUfyQjUmms7B0E6nQiLakN4tuP07gJSQxbs=;\n\tb=wnbZpnT+aEiE0eExX+lCpyv2/A99jrm/RDvZcJM8NhUYiY2GScj4iByO6QZOk4lYuu\n\tHYWU2LRc8T8OGFnLAPIRSKsRBdddSO4p2Ut63Ln53uk8Yn5B3jdwi3oCEmVtU6Jmth1W\n\tURnSLHI2IGC79mhXz14ZnsbGq33cttUy1eL28KbO6ISp/3W/w3F377FiObBLFsXGL04N\n\tuw9I9PCLbrO2F4DZVv0Sl4YuLHb+6ay1+GeuPkpOJAqGXV5zHHlM/aghZPA04d+qPhwq\n\t7q4PXA4SqOAYeOZinTur/FcjBuzDDhU/Ye5HdPvCohMw4LWILKNoeumNlZDtS4/K7ywr\n\tntmw==","X-Gm-Message-State":"AOAM533GglLPo77vJUBz4SeGhSoLUCt64cG08Was8tQwGYBDOYYnOHId\n\tRjbRxwYdNMnkHKl1aP0O/XlVJtEEfcKQYwH2","X-Google-Smtp-Source":"ABdhPJw7Qae/yRtQwYJNIZd1UdMBoP52XVeeqmLgQmNgziUsksXhQa6xXjqaax9qqFK/8S8eyZpUaw==","X-Received":"by 2002:a5d:4ec2:: with SMTP id s2mr9460754wrv.119.1635326886933;\n\tWed, 27 Oct 2021 02:28:06 -0700 (PDT)","From":"Naushir Patuck <naush@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 27 Oct 2021 10:27:54 +0100","Message-Id":"<20211027092803.3671096-1-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 0/9] Raspberry Pi: Conversion to media\n\tcontroller","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,\n\nVersion 3 of this series makes the following changes over v2:\n\n- Add Laurent's patches for R10 and R12 mono image formats.\n- In 3/9, update the BayerFormat converstion table to include PixelFormat types.\n- In 4/9 add a BayerFormat::fromPixelFormat member function.\n- In 5/9 add a local mbusCodeToBayerFormat function for conversions instead of\nrelying on the BayerFormat class table. Also switch some labels from \"mode\" to\n\"format\" :-) Default to using CSI2 packing, as that duplicates existing behavior.\nAlso fixed up the various minors from the review feedback.\n- In 6/9 explicitly pass packing mode into toV4L2DeviceFormat().\n- In 9/9 move the h/v flip setup above the sensor->setFormat() call so we do not\nneed an extra sensor->getFormat() once the flips have been setup.\n\nThanks,\nNaush\n\nLaurent Pinchart (2):\n  include: drm_fourcc: Add R10 and R12 FourCC\n  libcamera: formats: Add R10 and R12 formats\n\nNaushir Patuck (7):\n  libcamera: bayer_format: Rework BayerFormat conversion table\n  libcamera: bayer_format: Add PixelFormat conversion helpers to\n    BayerFormat class\n  pipeline: raspberrypi: Convert the pipeline handler to use media\n    controller\n  pipeline: raspberrypi: Set packing formats for the Unicam image node\n  pipeline: raspberrypi: Remove \"unpacked\" format penalty in mode\n    selection\n  pipeline: raspberrypi: Account for a missing Unicam embedded data node\n  pipeline: raspberrypi: Apply sensor flips at the start of configure()\n\n include/libcamera/internal/bayer_format.h     |   4 +\n include/linux/drm_fourcc.h                    |   6 +\n src/libcamera/bayer_format.cpp                | 139 +++++++---\n src/libcamera/formats.cpp                     |  26 ++\n src/libcamera/formats.yaml                    |   4 +\n .../pipeline/raspberrypi/raspberrypi.cpp      | 247 +++++++++++-------\n src/libcamera/v4l2_pixelformat.cpp            |   4 +\n 7 files changed, 297 insertions(+), 133 deletions(-)"}