{"id":18882,"url":"https://patchwork.libcamera.org/api/covers/18882/?format=json","web_url":"https://patchwork.libcamera.org/cover/18882/","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":"<20230725085540.24863-1-naush@raspberrypi.com>","date":"2023-07-25T08:55:36","name":"[libcamera-devel,v2,0/4] Raspberry Pi: External buffer handling","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"mbox":"https://patchwork.libcamera.org/cover/18882/mbox/","series":[{"id":3984,"url":"https://patchwork.libcamera.org/api/series/3984/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3984","date":"2023-07-25T08:55:36","name":"Raspberry Pi: External buffer handling","version":2,"mbox":"https://patchwork.libcamera.org/series/3984/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/18882/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 903CEBDB13\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 25 Jul 2023 08:56:11 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 91F7D628C3;\n\tTue, 25 Jul 2023 10:56:10 +0200 (CEST)","from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com\n\t[IPv6:2a00:1450:4864:20::42a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 83BC1600F7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 25 Jul 2023 10:56:08 +0200 (CEST)","by mail-wr1-x42a.google.com with SMTP id\n\tffacd0b85a97d-31765aee31bso1152221f8f.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 25 Jul 2023 01:56:08 -0700 (PDT)","from localhost.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tl7-20020adfe587000000b0030c4d8930b1sm1951225wrm.91.2023.07.25.01.56.07\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 25 Jul 2023 01:56:07 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1690275370;\n\tbh=HxnLZ0pvFL1osMUrMwoRWDRFJEo9X9VZv81t3wpY5Vw=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=WqnrOZFHZWM3FsXlli4H8T/XxM5PWvbKMjlLAczx/gHE0Djpq9mtxagQtqg0MsSyu\n\twZb+GD84/vHJ+nxUYMtaZY5HuCr+X0nlt3yBYN8Whw03kqTvgCePetV2vG3evmYQlG\n\tEfiegry/T97ct2zBLSidBEDvmO5Co1ZXF/VDyTTU33JM2dVgrYhyxkin51iddwcfcj\n\tpvLzx39eLgqyd/KCmpOJUhVuAgOWS6ShZXIF/Bc1fTF8qnk1rqIzxFd0jobMDGZ+Vu\n\tIMQlqrF6uinzP42Bz/L/gxB35JU6z/txRNf7fvYKjHG2IWqAdzJC6CrDx6a2YhrOr0\n\tgJomNBYNSeskg==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1690275368; x=1690880168;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=qWBkQTdFHAEdU6nmosouLbrPgiH9K9J7Awo9cMnRgsE=;\n\tb=NDXeNblwuqkzwe37BMGnljcT+BCcTobPjIDqyhrUXC3YNXbxm3vQ/Vu12oMHslILLR\n\tLOAQYPKe69ml1M0SbYycMRRDbTF+Wn3IMKI2Z3Gc1lRs6IzacTBr8GN6o+cIPPNDycvb\n\tbBMfsonvbx1P7V3+C7kE6ex36URI4OEIhzuaQxfSYMlJsxZJXwxpcyGrAhHMLXeSoqgL\n\teFH9JnAjLj9y8UEauKQxk4mOF95/QbsRxtJQ8MABC2AaGlV0OP19W4YfvcJyA2MbUn8T\n\tz9DM3kopM3SRtBgPi+n+ptZrrLdDtSV5iAA2q3uxutDInjxNHd+j8UhAPKyeoS9RHQ8D\n\tqvdQ=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"NDXeNblw\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20221208; t=1690275368; x=1690880168;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=qWBkQTdFHAEdU6nmosouLbrPgiH9K9J7Awo9cMnRgsE=;\n\tb=HnJveOnlA1hEI9Yyo+PU5DrKPVwZLculNfVCs5NFsWTJvb6F2K10BkKtOTQZRnLyaQ\n\tUdCRHMhikABhCIrT2sh/grw5HYZ8DIOZmk36IreKuhs5qcD0FIKnOGayVdlJielhqLOs\n\tL31EBshFHQpINCIyL7BxvU0+X9ptaTjyb2Xk90dkRGg8qw3s0oZe7XIKsYOB3g1vN9le\n\t7k++fL/+1nNHPlWEgt0BDNDEq3ae4c6pZ1ViZOKk4pf0V+pCoiEm9zh6/cwGJWSFzGjK\n\tAkLq4NAyKq8Xcv9Lk4EZNUdtzemMa0KjnxHkldTSUspxCs92keW3//rzu7ONoG9c8K+x\n\teStg==","X-Gm-Message-State":"ABy/qLapnCRjDH2ZRMKO55QZvRH25MSeolZsZ9GAF4BhfCHM2NlAh9Cs\n\t+VwGwj6eNtSXyG4x0AOwvEcRAccumQH23SrU8KkNlQ==","X-Google-Smtp-Source":"APBJJlGvuin5EkpM16fWfh4sRVXJ3CTfLZmWGqN/wIzu6zKTib71FRyw/6LeMy+MGwebUXFPOfBRew==","X-Received":"by 2002:adf:f488:0:b0:314:311d:1b9 with SMTP id\n\tl8-20020adff488000000b00314311d01b9mr9019472wro.47.1690275367783; \n\tTue, 25 Jul 2023 01:56:07 -0700 (PDT)","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 25 Jul 2023 09:55:36 +0100","Message-Id":"<20230725085540.24863-1-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.34.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 0/4] Raspberry Pi: External buffer\n\thandling","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>","From":"Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Naushir Patuck <naush@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi,\n\nVery minor changes in v2 to address Jacopo's comments:\n\n1) Remove the \"count\" test in patch 1/4.\n2) Remove the CameraData::handleExternalBuffer() declaration in patch 2/4.\n3) Fix RPi::Stream() constructor for initial id value in patch 4/4.\n\nRegards,\nNaush\n\nNaushir Patuck (4):\n  pipeline: rpi: Increase buffer import count to 32\n  pipeline: rpi: Remove additional external dma buf handling logic\n  pipeline: rpi: Rename RPi::Stream::setExternalBuffer()\n  pipeline: rpi: Simplify buffer id generation\n\n .../pipeline/rpi/common/pipeline_base.cpp     | 18 +------\n .../pipeline/rpi/common/pipeline_base.h       |  1 -\n .../pipeline/rpi/common/rpi_stream.cpp        | 53 +++++--------------\n .../pipeline/rpi/common/rpi_stream.h          | 48 ++---------------\n 4 files changed, 17 insertions(+), 103 deletions(-)"}