From patchwork Wed Dec 10 13:09:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 25452 Return-Path: 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 D4BCABD1F1 for ; Wed, 10 Dec 2025 13:13:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 965466144F; Wed, 10 Dec 2025 14:13:09 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="hOtQ1whE"; dkim-atps=neutral Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D2547613F9 for ; Wed, 10 Dec 2025 14:13:06 +0100 (CET) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-42fa41ab783so77761f8f.1 for ; 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=1765372386; x=1765977186; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+HKOsXbeFnDaXB5V33Ov1KE5juYlsep1OB8dvM1Xc7A=; b=hOtQ1whEfvAsHGxTq60gWyDYMD3pyfdQysH+AAjJHS3zTTJbTSuG8TMYhq3CEkuLGn /QzB2oR2N4dNz1UELu4MS8VWarcDLBxcDgg3UA4U6Ba8pE3uePQG4tSHYGg0YcWbf6XM 1cHJwavdTgmgdVz7qU/iN09GgDOYylCJiCrZ9DzX1i2uT+TnZme5Hj13yszE63OCvg80 NvIZ1Jma41IqMtjTUDjiJwU3CYs18u426vdT1J+DiCoZw/hNqEGx/aFE0pB9Zs1Lu6ls JJXJJYHEySXqRHvNVNvtgWd3czt/i8rOAfJ9zA/Q3Io28Aki6+R3Jp2sVI3Xzi6y92nz 6icA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765372386; x=1765977186; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+HKOsXbeFnDaXB5V33Ov1KE5juYlsep1OB8dvM1Xc7A=; b=ooldQP/p8kG/8IDFMMU6TYWErXGy/BIk23ULxkWkGnbaR/6OT9ARyO1yh/Nno5hWUa X57r++bFVpxYxCJGQBmGZm1BpiMwX68yyzUv6+AM/j24hYLKEdcb8jPyVAbAc8e3hF+e 33echO/ctH7do8LnCzaWMjK/lS8kWJ9Il0TUv/fNMwu7L8S+Djg+URapQmSemRDIxd+q TXsJ+bRicKK2fl6e4V6xIavlXRu0QcXdN/nT9xwyUZDNjMICJBVsgkWQiYPMuvEMqJUX vl+H0cJzXedR4pJkRGnLd+XXfDd9ABTJW9g7qy6wS5MM+n3wDtypj9LfREXLe8BBeFdG ePTg== X-Gm-Message-State: AOJu0YwEi8+1Zten47ovI3nLpHIjPRZfjAJ0nkvexUS4qWRwvg3/Ux2j O/OgRC89nvRTyEI/V3P3ZKWhUT0Sy33OAa5jgQC5ESGFUl8m3iqV82G2sb5aERviGPvrQl2BRZj Yf76Id9k= X-Gm-Gg: ASbGnct/Atdut3jLAkgHemSoBEyqVC697FPbjabJVhBui+PC5Qyy8THbDHBsjFlMcy1 TKyTODcxc0Mg69+7XT7H0ulkpFz3lUsZ7T2qmDcymCfZcmfFSAN+TXu8LyWL0+C/1L0G0QTIeUI eyPyQ1CMPbswZQ6D3lhD3Lq43KcZ+vn/vSCuaYOOUpvrTS3480yGiiVilw53PvJV6EgLWOnP88z 6uZG/pyrwFBRAZ0eU9lx5EwK76kTuwF2FnbVq6jVd4R3UCx1zrjQvDMHvUdnuZ1xRQ/x91gfyES xCkLPqjWXeP9IxFGwhTJfw88len0QTXohjXAZoOj9z2q3fkWBNNzW4cp5/9R8QHWplfNcrVgGDL 3YIoyj1W03lpj6EuqX7EvD3VRTVFJaTzoZoFQpgFm1MxRd3mzrNutmM/XuSA8+BSqWn/CYb2hJK rzObNrJlEpBw1dd8r/ahHf0easGZaV0R4= X-Google-Smtp-Source: AGHT+IGZaio1Q8FcYSStHBwmTscIIMF0Crc0aBK/dzxwyEbZFKdnmyBTRHNepZtxN2zHzWPyDG+7+Q== X-Received: by 2002:a05:600c:1f89:b0:477:563a:fc9c with SMTP id 5b1f17b1804b1-47a837946eemr15091155e9.1.1765372386056; Wed, 10 Dec 2025 05:13:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Dec 2025 05:13:05 -0800 (PST) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [PATCH v1 1/2] pipeline: rpi: Rename Stream::prepareBuffers to Stream::allocateBuffers Date: Wed, 10 Dec 2025 13:09:13 +0000 Message-ID: <20251210131302.81887-2-naush@raspberrypi.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251210131302.81887-1-naush@raspberrypi.com> References: <20251210131302.81887-1-naush@raspberrypi.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This rename is in preparation for a subsequent change where only buffer allocations happen in this function. Signed-off-by: Naushir Patuck Reviewed-by: Barnabás Pőcze --- src/libcamera/pipeline/rpi/common/pipeline_base.cpp | 2 +- src/libcamera/pipeline/rpi/common/pipeline_base.h | 2 +- src/libcamera/pipeline/rpi/common/rpi_stream.cpp | 2 +- src/libcamera/pipeline/rpi/common/rpi_stream.h | 2 +- src/libcamera/pipeline/rpi/pisp/pisp.cpp | 6 +++--- src/libcamera/pipeline/rpi/vc4/vc4.cpp | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/libcamera/pipeline/rpi/common/pipeline_base.cpp b/src/libcamera/pipeline/rpi/common/pipeline_base.cpp index 9d65dc83573b..2b61b5d241c5 100644 --- a/src/libcamera/pipeline/rpi/common/pipeline_base.cpp +++ b/src/libcamera/pipeline/rpi/common/pipeline_base.cpp @@ -668,7 +668,7 @@ int PipelineHandlerBase::start(Camera *camera, const ControlList *controls) if (!data->buffersAllocated_) { /* Allocate buffers for internal pipeline usage. */ - ret = prepareBuffers(camera); + ret = allocateBuffers(camera); if (ret) { LOG(RPI, Error) << "Failed to allocate buffers"; data->freeBuffers(); diff --git a/src/libcamera/pipeline/rpi/common/pipeline_base.h b/src/libcamera/pipeline/rpi/common/pipeline_base.h index 15628259afc6..0c6354493548 100644 --- a/src/libcamera/pipeline/rpi/common/pipeline_base.h +++ b/src/libcamera/pipeline/rpi/common/pipeline_base.h @@ -242,7 +242,7 @@ private: } int queueAllBuffers(Camera *camera); - virtual int prepareBuffers(Camera *camera) = 0; + virtual int allocateBuffers(Camera *camera) = 0; }; class RPiCameraConfiguration final : public CameraConfiguration diff --git a/src/libcamera/pipeline/rpi/common/rpi_stream.cpp b/src/libcamera/pipeline/rpi/common/rpi_stream.cpp index accf59eb424e..e73f4b7d31af 100644 --- a/src/libcamera/pipeline/rpi/common/rpi_stream.cpp +++ b/src/libcamera/pipeline/rpi/common/rpi_stream.cpp @@ -106,7 +106,7 @@ void Stream::setExportedBuffer(FrameBuffer *buffer) bufferEmplace(++id_, buffer); } -int Stream::prepareBuffers(unsigned int count) +int Stream::allocateBuffers(unsigned int count) { int ret; diff --git a/src/libcamera/pipeline/rpi/common/rpi_stream.h b/src/libcamera/pipeline/rpi/common/rpi_stream.h index 0dba12961743..c267447e5ab5 100644 --- a/src/libcamera/pipeline/rpi/common/rpi_stream.h +++ b/src/libcamera/pipeline/rpi/common/rpi_stream.h @@ -125,7 +125,7 @@ public: void setExportedBuffer(FrameBuffer *buffer); - int prepareBuffers(unsigned int count); + int allocateBuffers(unsigned int count); int queueBuffer(FrameBuffer *buffer); void returnBuffer(FrameBuffer *buffer); diff --git a/src/libcamera/pipeline/rpi/pisp/pisp.cpp b/src/libcamera/pipeline/rpi/pisp/pisp.cpp index 77acd2f64092..7bcba32b9b58 100644 --- a/src/libcamera/pipeline/rpi/pisp/pisp.cpp +++ b/src/libcamera/pipeline/rpi/pisp/pisp.cpp @@ -864,7 +864,7 @@ private: return static_cast(camera->_d()); } - int prepareBuffers(Camera *camera) override; + int allocateBuffers(Camera *camera) override; int platformRegister(std::unique_ptr &cameraData, std::shared_ptr cfe, std::shared_ptr isp) override; @@ -958,7 +958,7 @@ bool PipelineHandlerPiSP::match(DeviceEnumerator *enumerator) return false; } -int PipelineHandlerPiSP::prepareBuffers(Camera *camera) +int PipelineHandlerPiSP::allocateBuffers(Camera *camera) { PiSPCameraData *data = cameraData(camera); unsigned int numRawBuffers = 0; @@ -1021,7 +1021,7 @@ int PipelineHandlerPiSP::prepareBuffers(Camera *camera) LOG(RPI, Debug) << "Preparing " << numBuffers << " buffers for stream " << stream->name(); - ret = stream->prepareBuffers(numBuffers); + ret = stream->allocateBuffers(numBuffers); if (ret < 0) return ret; } diff --git a/src/libcamera/pipeline/rpi/vc4/vc4.cpp b/src/libcamera/pipeline/rpi/vc4/vc4.cpp index f0cb99d59e74..8a80439e9082 100644 --- a/src/libcamera/pipeline/rpi/vc4/vc4.cpp +++ b/src/libcamera/pipeline/rpi/vc4/vc4.cpp @@ -158,7 +158,7 @@ private: return static_cast(camera->_d()); } - int prepareBuffers(Camera *camera) override; + int allocateBuffers(Camera *camera) override; int platformRegister(std::unique_ptr &cameraData, std::shared_ptr unicam, std::shared_ptr isp) override; @@ -219,7 +219,7 @@ bool PipelineHandlerVc4::match(DeviceEnumerator *enumerator) return false; } -int PipelineHandlerVc4::prepareBuffers(Camera *camera) +int PipelineHandlerVc4::allocateBuffers(Camera *camera) { Vc4CameraData *data = cameraData(camera); unsigned int numRawBuffers = 0; @@ -289,7 +289,7 @@ int PipelineHandlerVc4::prepareBuffers(Camera *camera) LOG(RPI, Debug) << "Preparing " << numBuffers << " buffers for stream " << stream->name(); - ret = stream->prepareBuffers(numBuffers); + ret = stream->allocateBuffers(numBuffers); if (ret < 0) return ret; } From patchwork Wed Dec 10 13:09:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 25453 Return-Path: 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 059BFC326B for ; Wed, 10 Dec 2025 13:13:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2785961469; Wed, 10 Dec 2025 14:13:10 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="m5hkXQ8Q"; dkim-atps=neutral Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 70579613F9 for ; Wed, 10 Dec 2025 14:13:07 +0100 (CET) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-42b2cff817aso653339f8f.0 for ; Wed, 10 Dec 2025 05:13:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1765372387; x=1765977187; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E7Y5d44nPuHEoo5H5eQlzNCzdHZ7U0jIFghRTYAhT9w=; b=m5hkXQ8Q1sYgZVaSskgyaOhl5fHPf8cvmkpm5YcdNrb2GdODk8CUVVmxAL7u9wwZMn 6IdWjqnnlc8HX3EjevmngzwAr0LPp3SMhW7R2RvIOIWuypXQkE9xJE7fIG3Dd9L6ttmq 2YDljzieuxdLEL7TN637FNG62ngt8Cra2qVP9x4xSGEbhcZg/CSQTVPRyQAwgd9J2rGM CCQaFDMeDAO2+uLvIDPyl4QmsvJ2ZPpwMmvpLB7vUEqi6TM60CZuid2wg0HmAL1xShrz YBPmCQMy/HEzX7JiYC5oiuAKd8Huxn0OYUlX7u2HaaMJ1hCYFDyWXI+Lwaw0PjbHLZaw a+kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765372387; x=1765977187; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=E7Y5d44nPuHEoo5H5eQlzNCzdHZ7U0jIFghRTYAhT9w=; b=ERgRqrH7y02vyBaU7kQnG87AxvewCbajXBQR2VVuMM6DIQ66+KtVLtlUviJBrZO0Ar rZtewzaIR9ys7bxEwKjvszzQYxJDERYWLoz3Aw3Aa3BXShV1adJeLAKyk1qND7NxhFDO ZyqwhQXdiAyLkgvGvu7Y+qt44dq509IbBaOcg3awaDrhCy5I2HzuOWHnGkseI99sM4Lj e9/ppXQlMAIgB8zbr27k0Yz70e2SCTJz/ICKol9k//ER9h9WfEWNGjKFUNH8EZsF6gMI czClVilxq7g3J3TAAP6Akt55SW/RVSQcB5//WCGosSbxPrjT8pASHFAe34u2VWpk0Vj8 tZ4w== X-Gm-Message-State: AOJu0YyWqGKS3XHzMTfIKBDPmzaFw/VRJceybEGnyczPEym/meDglBzC CMoNajRXg1sYTHbMcs5w7RUALU6UoGw57VPsuzYnFYZvqAC1OzCbO8mbf+FtK4vdPNNlrKJS/bL JcZM+dQc= X-Gm-Gg: AY/fxX40WeCGg8crGmwY56GcHrYTVMX14fRzH8qja+m0R3r4xg86hc0zNbS2CQhjW1+ BJpuQQZKD5r/jFDY9VV8Iz31xdjq6IJltmBGmbxmJahnvIx4hyoebL1HhiXzMNgg4Q2eD4hqEMK bA9IUeixgmNlhyokwUqzlPbRxPTJ8CnS2Un8HjRr7zFUnaCHil2PkgEEOLxwFH/9eD01kCwBJyG Qg7EeFgKtGzu0AygMiExhLnVgCJ4nBKct1cPLyAYLDussKuPsTx5VebuMdHlU5XEPSZp7j2bIDX qtszXBNc4SG+iDrMAOqdwn5HDYOotLaqfh6JXNWrM53sKC1jj5nX4+EGzEvouUTOTl+NC6DJTFr z3yRyATNV9ToxI2XfZdtXxbbRbokzHNjpcFy6CG2We7RJlGg4aPb+HAm+NmF9/zN3D2riM3AN+f yRWwJ0PQ0wIN7TeoMXJNefSHiclupz9iz9l2yBf4UsBg== X-Google-Smtp-Source: AGHT+IGPoHs7nhlJ1MGToD2ByYER9LjyKr0SJzAWKF6fBQjPohF7psOeechCc6vz9QUYwu9Vm1XAow== X-Received: by 2002:a05:6000:288a:b0:429:ebf5:ff1d with SMTP id ffacd0b85a97d-42fa399ba80mr1319332f8f.0.1765372386629; Wed, 10 Dec 2025 05:13:06 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Dec 2025 05:13:06 -0800 (PST) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [PATCH v1 2/2] pipeline: rpi: Rework internal buffer allocations Date: Wed, 10 Dec 2025 13:09:14 +0000 Message-ID: <20251210131302.81887-3-naush@raspberrypi.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251210131302.81887-1-naush@raspberrypi.com> References: <20251210131302.81887-1-naush@raspberrypi.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" In order to clear the V4L2VideoDevice cache, we must call V4L2VideoDevice::releaseBuffers() when stopping the camera. To do this without releasing the allocated buffers, we have to rework the internal buffer allocation logic. Remove calls to V4L2VideoDevice::importBuffers() and releaseBuffers() from within the RPi::Stream class. Instead, move these calls to the PipelineHandlerBase class, where we can call releaseBuffers(), i.e. clear the V4L2VideoDevice cache unconditionally on stop without de-allocating the internal buffers. The loigc Stream::clearBuffers() can be then moved into releaseBuffers() which will actually de-allocate the internal buffers when required. Closes: https://gitlab.freedesktop.org/camera/libcamera/-/issues/265 Signed-off-by: Naushir Patuck Tested-by: Barnabás Pőcze # rpi4 --- .../pipeline/rpi/common/pipeline_base.cpp | 8 ++++++- .../pipeline/rpi/common/rpi_stream.cpp | 23 ++++++------------- .../pipeline/rpi/common/rpi_stream.h | 1 - 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/src/libcamera/pipeline/rpi/common/pipeline_base.cpp b/src/libcamera/pipeline/rpi/common/pipeline_base.cpp index 2b61b5d241c5..aa0af367d301 100644 --- a/src/libcamera/pipeline/rpi/common/pipeline_base.cpp +++ b/src/libcamera/pipeline/rpi/common/pipeline_base.cpp @@ -719,8 +719,10 @@ void PipelineHandlerBase::stopDevice(Camera *camera) data->state_ = CameraData::State::Stopped; data->platformStop(); - for (auto const stream : data->streams_) + for (auto const stream : data->streams_) { stream->dev()->streamOff(); + stream->dev()->releaseBuffers(); + } /* Disable SOF event generation. */ data->frontendDevice()->setFrameStartEnabled(false); @@ -901,6 +903,10 @@ int PipelineHandlerBase::queueAllBuffers(Camera *camera) int ret; for (auto const stream : data->streams_) { + ret = stream->dev()->importBuffers(VIDEO_MAX_FRAME); + if (ret < 0) + return ret; + if (stream->getFlags() & StreamFlag::External) continue; diff --git a/src/libcamera/pipeline/rpi/common/rpi_stream.cpp b/src/libcamera/pipeline/rpi/common/rpi_stream.cpp index e73f4b7d31af..f420400dfe18 100644 --- a/src/libcamera/pipeline/rpi/common/rpi_stream.cpp +++ b/src/libcamera/pipeline/rpi/common/rpi_stream.cpp @@ -12,9 +12,6 @@ #include -/* Maximum number of buffer slots to allocate in the V4L2 device driver. */ -static constexpr unsigned int maxV4L2BufferCount = 32; - namespace libcamera { LOG_DEFINE_CATEGORY(RPISTREAM) @@ -108,7 +105,7 @@ void Stream::setExportedBuffer(FrameBuffer *buffer) int Stream::allocateBuffers(unsigned int count) { - int ret; + int ret = 0; if (!(flags_ & StreamFlag::ImportOnly)) { /* Export some frame buffers for internal use. */ @@ -121,7 +118,7 @@ int Stream::allocateBuffers(unsigned int count) resetBuffers(); } - return dev_->importBuffers(maxV4L2BufferCount); + return ret; } int Stream::queueBuffer(FrameBuffer *buffer) @@ -243,8 +240,11 @@ int Stream::queueAllBuffers() void Stream::releaseBuffers() { - dev_->releaseBuffers(); - clearBuffers(); + availableBuffers_ = std::queue{}; + requestBuffers_ = std::queue{}; + internalBuffers_.clear(); + bufferMap_.clear(); + id_ = 0; } void Stream::bufferEmplace(unsigned int id, FrameBuffer *buffer) @@ -257,15 +257,6 @@ void Stream::bufferEmplace(unsigned int id, FrameBuffer *buffer) std::forward_as_tuple(buffer, false)); } -void Stream::clearBuffers() -{ - availableBuffers_ = std::queue{}; - requestBuffers_ = std::queue{}; - internalBuffers_.clear(); - bufferMap_.clear(); - id_ = 0; -} - int Stream::queueToDevice(FrameBuffer *buffer) { LOG(RPISTREAM, Debug) << "Queuing buffer " << getBufferId(buffer) diff --git a/src/libcamera/pipeline/rpi/common/rpi_stream.h b/src/libcamera/pipeline/rpi/common/rpi_stream.h index c267447e5ab5..300a352a7d39 100644 --- a/src/libcamera/pipeline/rpi/common/rpi_stream.h +++ b/src/libcamera/pipeline/rpi/common/rpi_stream.h @@ -140,7 +140,6 @@ public: private: void bufferEmplace(unsigned int id, FrameBuffer *buffer); - void clearBuffers(); int queueToDevice(FrameBuffer *buffer); StreamFlags flags_;