| Message ID | 20251210131302.81887-1-naush@raspberrypi.com |
|---|---|
| Headers | show
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 [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id C54BABD1F1 for <parsemail@patchwork.libcamera.org>; Wed, 10 Dec 2025 13:13:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A38726146D; Wed, 10 Dec 2025 14:13:08 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="IhJ2lIVl"; dkim-atps=neutral Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 52A81613CB for <libcamera-devel@lists.libcamera.org>; Wed, 10 Dec 2025 14:13:06 +0100 (CET) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-47928022b93so14922415e9.0 for <libcamera-devel@lists.libcamera.org>; Wed, 10 Dec 2025 05:13:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1765372385; x=1765977185; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4HqMTkA0AYhfIaBXjgYT5BfM4YkwZVwI+OCQaMVQQ9M=; b=IhJ2lIVllVKvpVmE5ms/4vLAfk8B36IzmUHigSMBb0Z88G5HXVBMzvPndZkC6y1OSC wVRKmMChZfWLkSdpuBkXkWTl9Z6F//TQGU9RnYr0aLrAKGwWItufk9JcbuBrj4afmmC+ BXBFihqOwcBbyn8TNqNf2syjlFGUY6GVwCFwdnLbEZGyafD3dL56f3kzfjEOZxm3Zx1d 9ENV/VhJNnApIKNtCejikvliMwjYuM6twmALXkAqKGdzu4dLhWetrBVleV6TZoU8BqJQ 35sStSf0AWxXZ86sQTgwVbjyF/tSddtGjhn/GhJeupR7q2P9GHQoCfXX5GhAuXGai+2V e5MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765372385; x=1765977185; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4HqMTkA0AYhfIaBXjgYT5BfM4YkwZVwI+OCQaMVQQ9M=; b=u+s96+SaPkBZTO3ipODCbQL2x70sHjN5CxeuMqd1wohyYBxEEMS+5erS9bC35m+hwt t7wUElwZSn8P3ZbHPupPB3VbMIVrJKxbZAx72DbOD4pW6PoEIsI2crQWeGTQV2JXpNw2 xaeyjN5oulfJVjWnp9yXjG8+UgcryHUzFQ1jpdFuhs4HeWKOo4F4q024gCARf/U/kDpI qqAuO6DqjRegNzH4X8VBVVIxy2jqM4VWySUILP/1SVghfwRlg2f+MGhf/FUyi6q4XyS6 Vu6YuoXA+LVo7dnZTf8323r3k56F0xk5lm9sKC7yuU4GpN298qGaUqh1ajNGeMHWBMX4 JRyw== X-Gm-Message-State: AOJu0YwIxam++YOgt4Wvy4eDbrzcpuoya49WGHNMWkDYNk4xPcOXFZH2 ms26FF+ek6gJp7rAu8yRf73MBcDeDsWSelIulGDCB1O1KtNA/PLgApbOJerBRgi7SAE/h9U4kBX gPDkQnE4= X-Gm-Gg: ASbGncsV03i6H8scZ8yPvJy7TIUZt8P3youcJQtiE0o2gsRjZk1dOmYtsJcBJS+uK8Q MmWv59g53mu9MlvEgMTrVHrZbjf5KUWd8+UI/2NL4NO802m5FQjR5o5mwThOkSVrcQ8PbuYqzlX 6O7xgyAemyAHPP9WPsm+Oe8139a3MJEoIfTb/NqgUuGXYtUt9OeEz1HbqOPvK3nhVwVstBm8MbK oGpThFtN9feaS/65oJOg4Nnmp16Nix5VXjubyn02h/L1q/DpHZUARnbEoVDd/K7QkFCLmpaxgak 6HQf8F7WoQbfH+kZJyy0s2EYSrDq55mg+fjXHVQjkmHMJoin0r8JPXyy5RImeD7TTOCmU0A1MVn sktUB/NP7lpsa/kcPtMfZPE78EDpJ8dviW0EyH8BxyLzwmiS7DZvnHLNgF7yNjc3tmujQkL50/D f1q9TDCvori9BxDw5zttb40pHd+Wn7MN4= X-Google-Smtp-Source: AGHT+IFMEc3GNOAtNOWLCFzlUKEWL1A86TaL3qMiQD4Aq/YdQIb23tFeDqyHrKv6xlYCU/eYjWaCqA== X-Received: by 2002:a05:600c:3105:b0:477:9f61:8c20 with SMTP id 5b1f17b1804b1-47a8376dcbbmr13548765e9.2.1765372385471; Wed, 10 Dec 2025 05:13:05 -0800 (PST) Received: from naush-dell.pitowers.org ([2a00:1098:3142:1f:2883:e222:5478:b981]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42f7cbfee71sm37871852f8f.15.2025.12.10.05.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Dec 2025 05:13:05 -0800 (PST) From: Naushir Patuck <naush@raspberrypi.com> To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck <naush@raspberrypi.com> Subject: [PATCH v1 0/2] RPi: Internal buffer alloaction rework Date: Wed, 10 Dec 2025 13:09:12 +0000 Message-ID: <20251210131302.81887-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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>, <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>, <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> |
| Series |
|
| Related |
show
|
Hi, This minor series addresses the issue raised at [1], where the RPi pipeline handlers don't release the buffers from the V4L2VideoDevice cache when stopping the camera. The rework is faily minor, and with these changes, we now release the buffers from the V4L2VideoDevice cache, but keep the allocations around where needed. Thanks, Naush [1]: https://gitlab.freedesktop.org/camera/libcamera/-/issues/265 Naushir Patuck (2): pipeline: rpi: Rename Stream::prepareBuffers to Stream::allocateBuffers pipeline: rpi: Rework internal buffer allocations .../pipeline/rpi/common/pipeline_base.cpp | 10 ++++++-- .../pipeline/rpi/common/pipeline_base.h | 2 +- .../pipeline/rpi/common/rpi_stream.cpp | 25 ++++++------------- .../pipeline/rpi/common/rpi_stream.h | 3 +-- src/libcamera/pipeline/rpi/pisp/pisp.cpp | 6 ++--- src/libcamera/pipeline/rpi/vc4/vc4.cpp | 6 ++--- 6 files changed, 24 insertions(+), 28 deletions(-)