From patchwork Sun Feb 16 16:16:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 2835 Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 07D9960438 for ; Sun, 16 Feb 2020 17:17:33 +0100 (CET) X-Halon-ID: d256e041-50d7-11ea-9f85-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de [79.202.35.146]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id d256e041-50d7-11ea-9f85-005056917a89; Sun, 16 Feb 2020 17:17:32 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Sun, 16 Feb 2020 17:16:40 +0100 Message-Id: <20200216161642.152263-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: V4L2BufferCache: Improve cache eviction strategy 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: , X-List-Received-Date: Sun, 16 Feb 2020 16:17:34 -0000 Hello, This small series improves the function of the V4L2BufferCache and how it selects which cache entries to evict. The series also adds a test for the V4L2BufferCache. Niklas Söderlund (2): libcamera: V4L2BufferCache: Improve cache eviction strategy test: v4l2_videodevice: Add test for V4L2BufferCache src/libcamera/include/v4l2_videodevice.h | 1 + src/libcamera/v4l2_videodevice.cpp | 9 +- test/v4l2_videodevice/buffer_cache.cpp | 286 +++++++++++++++++++++++ test/v4l2_videodevice/meson.build | 1 + 4 files changed, 294 insertions(+), 3 deletions(-) create mode 100644 test/v4l2_videodevice/buffer_cache.cpp