From patchwork Mon Aug 9 13:29:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 13257 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 DAC80C3240 for ; Mon, 9 Aug 2021 13:29:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 53F7968889; Mon, 9 Aug 2021 15:29:35 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="eNWMWb8o"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 90E4660269 for ; Mon, 9 Aug 2021 15:29:33 +0200 (CEST) Received: from Monstersaurus.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1F504466; Mon, 9 Aug 2021 15:29:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1628515773; bh=c29TUqNzQC+4ziWoI4Sg2DAoE/EDDvhD0IWt5754WmY=; h=From:To:Cc:Subject:Date:From; b=eNWMWb8og/TGKeCN2SWIL7hFapPYG5qK1mEClPsu5gM7zunmjZgTRF8cyKsJ4QP9V C6YAuT7wojWGg6ClTtHAnWnNWXGRVSshtjxgqHwSgOutvK7VPUB87JW/Ix3tTgxE0e B+Gk1uF8k9gcprWYQlfxgwzU8HC24GeHz89bmfOk= From: Kieran Bingham To: libcamera devel Date: Mon, 9 Aug 2021 14:29:26 +0100 Message-Id: <20210809132929.1824114-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/3] MappedFrameBuffer: Move its own component. 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 series has grown from the original single patch, to now clean up the unused sys/mman.h usages throughout the code base, prior to moving MappedFrameBuffer to its own source component. After this, we convert the MappedFrameBuffer to use the new Flags class with scoped enum classes to represent the flags. Kieran Bingham (3): src: Remove all unused sys/mman.h inclusions libcamera: Give MappedFrameBuffer its own implementation libcamera: MappedFrameBuffer: Use typed Flags include/libcamera/internal/framebuffer.h | 36 ---- .../libcamera/internal/mapped_framebuffer.h | 63 ++++++ include/libcamera/internal/meson.build | 1 + src/android/camera_device.cpp | 1 - src/android/camera_device.h | 2 - src/android/camera_stream.cpp | 2 + src/android/camera_stream.h | 2 - src/android/jpeg/encoder_libjpeg.cpp | 4 +- src/android/jpeg/encoder_libjpeg.h | 1 - src/android/jpeg/post_processor_jpeg.h | 2 - src/android/jpeg/thumbnailer.cpp | 4 +- src/android/jpeg/thumbnailer.h | 2 +- src/android/mm/generic_camera_buffer.cpp | 3 +- src/android/post_processor.h | 2 - src/android/yuv/post_processor_yuv.cpp | 3 +- src/ipa/ipu3/ipu3.cpp | 5 +- src/ipa/raspberrypi/raspberrypi.cpp | 5 +- src/libcamera/framebuffer.cpp | 146 ------------- src/libcamera/ipa_module.cpp | 1 - src/libcamera/mapped_framebuffer.cpp | 195 ++++++++++++++++++ src/libcamera/meson.build | 1 + .../pipeline/raspberrypi/raspberrypi.cpp | 1 - src/libcamera/v4l2_videodevice.cpp | 1 - src/v4l2/v4l2_camera_proxy.h | 1 - src/v4l2/v4l2_compat_manager.h | 1 - test/mapped-buffer.cpp | 8 +- 26 files changed, 281 insertions(+), 212 deletions(-) create mode 100644 include/libcamera/internal/mapped_framebuffer.h create mode 100644 src/libcamera/mapped_framebuffer.cpp