{"id":14252,"url":"https://patchwork.libcamera.org/api/1.1/covers/14252/?format=json","web_url":"https://patchwork.libcamera.org/cover/14252/","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":"<20211022115537.2964533-1-naush@raspberrypi.com>","date":"2021-10-22T11:55:31","name":"[libcamera-devel,0/6] 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/14252/mbox/","series":[{"id":2649,"url":"https://patchwork.libcamera.org/api/1.1/series/2649/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2649","date":"2021-10-22T11:55:31","name":"Raspberry Pi: Conversion to media controller","version":1,"mbox":"https://patchwork.libcamera.org/series/2649/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/14252/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 AB569BF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 22 Oct 2021 11:55:44 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id B1A5168F5B;\n\tFri, 22 Oct 2021 13:55:43 +0200 (CEST)","from mail-wm1-x331.google.com (mail-wm1-x331.google.com\n\t[IPv6:2a00:1450:4864:20::331])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6C7B66012A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 22 Oct 2021 13:55:41 +0200 (CEST)","by mail-wm1-x331.google.com with SMTP id\n\tz11-20020a1c7e0b000000b0030db7b70b6bso3138898wmc.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 22 Oct 2021 04:55:41 -0700 (PDT)","from naush-laptop.pitowers.org\n\t([2a00:1098:3142:14:f00d:ddf0:61b0:a4cd])\n\tby smtp.gmail.com with ESMTPSA id\n\tl5sm7853364wru.24.2021.10.22.04.55.39\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 22 Oct 2021 04:55:39 -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=\"MaXp1+SD\"; 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=ahHZlHXrkPYSWSdYRv1k0R3D8kso4G/ib5h2dknzPBM=;\n\tb=MaXp1+SD0uVE2i5fKJyURrbLZ17CC1fQ+e6KUP82UMbA82XziIkglvU6qt09v4Yt17\n\tjxwEsRYhc6BCX6WctcTT2GF3ewZvxC8Jm64tzlpDGMGw6EWgdcwioZuqhI4vDoUvRYAB\n\t6sXDskBCyaNHXzd18XOhW+0o3GUebto4wo5XCVN9jU3uh3RLV/254DR8PwpR9VjvwuIZ\n\tjvy0hjaUFPuqmRJRzoPfLF2v2t7j2KaKCA7k/tAzhAKdCd+wpNa/GN8evjBTRL8NH3G9\n\t3helE/8/pfU/udeaCFJJEVDibXrG43l90I7tw+kTvdpD4N9ZqKzZ10Pnb0vYKbgaxasR\n\t2xWw==","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=ahHZlHXrkPYSWSdYRv1k0R3D8kso4G/ib5h2dknzPBM=;\n\tb=V8VBj0tIaEAeo69NkAra5FBEN8X42JQZdIfS6jGa7oLo7HqNL290zjtemWsNgKIa+q\n\tI+4li3lCCjTRfoqd3HMIEabg/I6HuhKtwQFxaaECbYqbyisRC4fxlt8kVuBzrHtoumb6\n\tShf5culZN70qg84JZ2rZhCyCezMBhnljwZbzYpgL8NHLEbKc8HrGjmsjWvXvjVqAtJoq\n\tXHmubdvz/ESrUKwZm/sBkfC+Z3zonfDXZqX7tWT7mJb/VKuhorJwFJJig9BYu0cH2y5e\n\t1QBI3PPQ4qTEaBsbdvhJCX6LnrQOPI3mCFsNX4WGl8KyXMljUSOETn55TZKSm+nVMqUs\n\ti/Fg==","X-Gm-Message-State":"AOAM532au4xAsmJ+1a8PlrUUV9rcR4zWJBhL7DLh+i+q8qwUc/nt1+XV\n\t1Yz4DuCsfVK97JQ1hTCaHif66IR8Iy2+qfjP","X-Google-Smtp-Source":"ABdhPJyPjZRXY4x/oKf4oWdsgBDwYY7aJ6DEktRA5WlACmQxPnbj8Q/Rdl/x5TVMeI2wYBwbGSG4nw==","X-Received":"by 2002:a7b:c76d:: with SMTP id\n\tx13mr13106925wmk.149.1634903740733; \n\tFri, 22 Oct 2021 04:55:40 -0700 (PDT)","From":"Naushir Patuck <naush@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Fri, 22 Oct 2021 12:55:31 +0100","Message-Id":"<20211022115537.2964533-1-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/6] 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\nThis series of patches convert the Raspberry Pi pipeline handler to a more\nmedia controller centric mode of operation.  In particular, we set/get formats\nand controls directly on the sensor subdevice instead of proxying through the\nunicam driver node.\n\nNote that these changes rely on https://github.com/raspberrypi/linux/pull/4645\nbeing merged into our kernel tree.  That merge will need to be synchronised with\nmerging this change into the libcamera upstream tree else we will have a mismatch\nbetween kernel and userland.  In such cases, the pipeline handler will throw an\nerror and fail to start.\n\nThanks,\nNaush\n\nNaushir Patuck (6):\n  libcamera: bayer_format: Add conversion helpers to the BayerFormat\n    class\n  pipeline: raspberrypi: Convert the pipeline handler to use media\n    controller\n  pipeline: raspberrypi: Return a PixelFormat from findBestMode()\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 src/libcamera/bayer_format.cpp                |  31 +++\n .../pipeline/raspberrypi/raspberrypi.cpp      | 229 +++++++++++-------\n 3 files changed, 170 insertions(+), 94 deletions(-)"}