libcamera: Give MappedFrameBuffer its own implementation
The MappedFrameBuffer is a convenience feature which sits on top of the FrameBuffer and facilitates mapping it to CPU accessible memory with mmap. This implementation is internal and currently sits in the same internal files as the internal FrameBuffer, thus exposing those internals to users of the MappedFramebuffer implementation. Move the MappedFrameBuffer and MappedBuffer implementation to its own implementation files, and fix the sources throughout to use that accordingly. Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -24,8 +24,6 @@
|
||||
#include <libcamera/request.h>
|
||||
#include <libcamera/stream.h>
|
||||
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
|
||||
#include "camera_capabilities.h"
|
||||
#include "camera_metadata.h"
|
||||
#include "camera_stream.h"
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "camera_stream.h"
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include "camera_buffer.h"
|
||||
#include "camera_device.h"
|
||||
#include "camera_metadata.h"
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
#include <libcamera/geometry.h>
|
||||
#include <libcamera/pixel_format.h>
|
||||
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
|
||||
class CameraDevice;
|
||||
class CameraMetadata;
|
||||
class PostProcessor;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <libcamera/pixel_format.h>
|
||||
|
||||
#include "libcamera/internal/formats.h"
|
||||
#include "libcamera/internal/mapped_framebuffer.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "encoder.h"
|
||||
|
||||
#include "libcamera/internal/formats.h"
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
|
||||
#include <jpeglib.h>
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
|
||||
#include <libcamera/geometry.h>
|
||||
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
|
||||
class CameraDevice;
|
||||
|
||||
class PostProcessorJpeg : public PostProcessor
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
#include <libcamera/formats.h>
|
||||
|
||||
#include "libcamera/internal/mapped_framebuffer.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
LOG_DEFINE_CATEGORY(Thumbnailer)
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
#ifndef __ANDROID_JPEG_THUMBNAILER_H__
|
||||
#define __ANDROID_JPEG_THUMBNAILER_H__
|
||||
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/geometry.h>
|
||||
|
||||
#include "libcamera/internal/formats.h"
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
|
||||
class Thumbnailer
|
||||
{
|
||||
|
||||
@@ -7,11 +7,12 @@
|
||||
|
||||
#include "../camera_buffer.h"
|
||||
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <libcamera/base/log.h>
|
||||
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
#include "libcamera/internal/mapped_framebuffer.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/stream.h>
|
||||
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
|
||||
#include "camera_buffer.h"
|
||||
|
||||
class CameraMetadata;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <libcamera/pixel_format.h>
|
||||
|
||||
#include "libcamera/internal/formats.h"
|
||||
#include "libcamera/internal/mapped_framebuffer.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user