summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-06-28 01:54:17 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-11 17:42:02 +0300
commit6a31a8d8e2742990f3b3a3dbf5157a9e1cb835ea (patch)
tree3495aa720795eae5c342194ac9d6ffb19971e315 /src
parentda9b6bb196e0165342a414657edfc5aaf165baa5 (diff)
libcamera: buffer: Rename buffer.h to framebuffer.h
libcamera names header files based on the classes they define. The buffer.h file is an exception. Rename it to framebuffer.h. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/android/camera_device.h4
-rw-r--r--src/android/camera_stream.h4
-rw-r--r--src/android/camera_worker.h2
-rw-r--r--src/android/jpeg/encoder.h2
-rw-r--r--src/android/jpeg/encoder_libjpeg.h2
-rw-r--r--src/android/jpeg/post_processor_jpeg.h2
-rw-r--r--src/android/jpeg/thumbnailer.h2
-rw-r--r--src/android/mm/generic_camera_buffer.cpp2
-rw-r--r--src/android/post_processor.h4
-rw-r--r--src/cam/buffer_writer.h2
-rw-r--r--src/cam/capture.h2
-rw-r--r--src/ipa/ipu3/ipu3.cpp4
-rw-r--r--src/ipa/raspberrypi/raspberrypi.cpp4
-rw-r--r--src/ipa/rkisp1/rkisp1.cpp2
-rw-r--r--src/libcamera/framebuffer.cpp (renamed from src/libcamera/buffer.cpp)14
-rw-r--r--src/libcamera/framebuffer_allocator.cpp2
-rw-r--r--src/libcamera/meson.build2
-rw-r--r--src/libcamera/pipeline/ipu3/frames.cpp2
-rw-r--r--src/libcamera/pipeline/raspberrypi/raspberrypi.cpp2
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1.cpp2
-rw-r--r--src/libcamera/pipeline/simple/converter.cpp2
-rw-r--r--src/libcamera/pipeline_handler.cpp2
-rw-r--r--src/libcamera/request.cpp2
-rw-r--r--src/qcam/dng_writer.h2
-rw-r--r--src/qcam/main_window.h2
-rw-r--r--src/qcam/viewfinder.h2
-rw-r--r--src/qcam/viewfinder_gl.h2
-rw-r--r--src/qcam/viewfinder_qt.h2
-rw-r--r--src/v4l2/v4l2_camera.h2
29 files changed, 40 insertions, 40 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index d085a27f..089a6204 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -19,12 +19,12 @@
#include <libcamera/base/message.h>
#include <libcamera/base/thread.h>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/request.h>
#include <libcamera/stream.h>
-#include "libcamera/internal/buffer.h"
+#include "libcamera/internal/framebuffer.h"
#include "camera_capabilities.h"
#include "camera_metadata.h"
diff --git a/src/android/camera_stream.h b/src/android/camera_stream.h
index 8ecc6e34..629d9e00 100644
--- a/src/android/camera_stream.h
+++ b/src/android/camera_stream.h
@@ -13,13 +13,13 @@
#include <hardware/camera3.h>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/framebuffer_allocator.h>
#include <libcamera/geometry.h>
#include <libcamera/pixel_format.h>
-#include "libcamera/internal/buffer.h"
+#include "libcamera/internal/framebuffer.h"
class CameraDevice;
class CameraMetadata;
diff --git a/src/android/camera_worker.h b/src/android/camera_worker.h
index 6e1aee4a..67ae50bd 100644
--- a/src/android/camera_worker.h
+++ b/src/android/camera_worker.h
@@ -12,8 +12,8 @@
#include <libcamera/base/object.h>
#include <libcamera/base/thread.h>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/request.h>
#include <libcamera/stream.h>
diff --git a/src/android/jpeg/encoder.h b/src/android/jpeg/encoder.h
index 28e7f92a..a28522f4 100644
--- a/src/android/jpeg/encoder.h
+++ b/src/android/jpeg/encoder.h
@@ -9,7 +9,7 @@
#include <libcamera/base/span.h>
-#include <libcamera/buffer.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/stream.h>
class Encoder
diff --git a/src/android/jpeg/encoder_libjpeg.h b/src/android/jpeg/encoder_libjpeg.h
index 838da772..14bf8922 100644
--- a/src/android/jpeg/encoder_libjpeg.h
+++ b/src/android/jpeg/encoder_libjpeg.h
@@ -9,8 +9,8 @@
#include "encoder.h"
-#include "libcamera/internal/buffer.h"
#include "libcamera/internal/formats.h"
+#include "libcamera/internal/framebuffer.h"
#include <jpeglib.h>
diff --git a/src/android/jpeg/post_processor_jpeg.h b/src/android/jpeg/post_processor_jpeg.h
index 5d2d4ab2..5c399be9 100644
--- a/src/android/jpeg/post_processor_jpeg.h
+++ b/src/android/jpeg/post_processor_jpeg.h
@@ -13,7 +13,7 @@
#include <libcamera/geometry.h>
-#include "libcamera/internal/buffer.h"
+#include "libcamera/internal/framebuffer.h"
class CameraDevice;
diff --git a/src/android/jpeg/thumbnailer.h b/src/android/jpeg/thumbnailer.h
index 4e9226c3..68cbf743 100644
--- a/src/android/jpeg/thumbnailer.h
+++ b/src/android/jpeg/thumbnailer.h
@@ -9,8 +9,8 @@
#include <libcamera/geometry.h>
-#include "libcamera/internal/buffer.h"
#include "libcamera/internal/formats.h"
+#include "libcamera/internal/framebuffer.h"
class Thumbnailer
{
diff --git a/src/android/mm/generic_camera_buffer.cpp b/src/android/mm/generic_camera_buffer.cpp
index 326fdc06..166be36e 100644
--- a/src/android/mm/generic_camera_buffer.cpp
+++ b/src/android/mm/generic_camera_buffer.cpp
@@ -11,7 +11,7 @@
#include <libcamera/base/log.h>
-#include "libcamera/internal/buffer.h"
+#include "libcamera/internal/framebuffer.h"
using namespace libcamera;
diff --git a/src/android/post_processor.h b/src/android/post_processor.h
index 547fda37..689f85d9 100644
--- a/src/android/post_processor.h
+++ b/src/android/post_processor.h
@@ -7,10 +7,10 @@
#ifndef __ANDROID_POST_PROCESSOR_H__
#define __ANDROID_POST_PROCESSOR_H__
-#include <libcamera/buffer.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/stream.h>
-#include "libcamera/internal/buffer.h"
+#include "libcamera/internal/framebuffer.h"
#include "camera_buffer.h"
diff --git a/src/cam/buffer_writer.h b/src/cam/buffer_writer.h
index 47e26103..604ce870 100644
--- a/src/cam/buffer_writer.h
+++ b/src/cam/buffer_writer.h
@@ -10,7 +10,7 @@
#include <map>
#include <string>
-#include <libcamera/buffer.h>
+#include <libcamera/framebuffer.h>
class BufferWriter
{
diff --git a/src/cam/capture.h b/src/cam/capture.h
index 59d13876..de478c98 100644
--- a/src/cam/capture.h
+++ b/src/cam/capture.h
@@ -11,8 +11,8 @@
#include <stdint.h>
#include <vector>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/framebuffer_allocator.h>
#include <libcamera/request.h>
#include <libcamera/stream.h>
diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp
index f43f8620..71698d36 100644
--- a/src/ipa/ipu3/ipu3.cpp
+++ b/src/ipa/ipu3/ipu3.cpp
@@ -13,14 +13,14 @@
#include <libcamera/base/log.h>
-#include <libcamera/buffer.h>
#include <libcamera/control_ids.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/ipa/ipa_interface.h>
#include <libcamera/ipa/ipa_module_info.h>
#include <libcamera/ipa/ipu3_ipa_interface.h>
#include <libcamera/request.h>
-#include "libcamera/internal/buffer.h"
+#include "libcamera/internal/framebuffer.h"
#include "ipu3_agc.h"
#include "ipu3_awb.h"
diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index 4d09a84f..4ae81f35 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -18,17 +18,17 @@
#include <libcamera/base/log.h>
#include <libcamera/base/span.h>
-#include <libcamera/buffer.h>
#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
#include <libcamera/file_descriptor.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/ipa/ipa_interface.h>
#include <libcamera/ipa/ipa_module_info.h>
#include <libcamera/ipa/raspberrypi.h>
#include <libcamera/ipa/raspberrypi_ipa_interface.h>
#include <libcamera/request.h>
-#include "libcamera/internal/buffer.h"
+#include "libcamera/internal/framebuffer.h"
#include "agc_algorithm.hpp"
#include "agc_status.h"
diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp
index cdfb4d13..b881d42e 100644
--- a/src/ipa/rkisp1/rkisp1.cpp
+++ b/src/ipa/rkisp1/rkisp1.cpp
@@ -17,8 +17,8 @@
#include <libcamera/base/log.h>
-#include <libcamera/buffer.h>
#include <libcamera/control_ids.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/ipa/ipa_interface.h>
#include <libcamera/ipa/ipa_module_info.h>
#include <libcamera/ipa/rkisp1_ipa_interface.h>
diff --git a/src/libcamera/buffer.cpp b/src/libcamera/framebuffer.cpp
index e4c345d5..4bde556c 100644
--- a/src/libcamera/buffer.cpp
+++ b/src/libcamera/framebuffer.cpp
@@ -2,11 +2,11 @@
/*
* Copyright (C) 2019, Google Inc.
*
- * buffer.cpp - Buffer handling
+ * framebuffer.cpp - Frame buffer handling
*/
-#include <libcamera/buffer.h>
-#include "libcamera/internal/buffer.h"
+#include <libcamera/framebuffer.h>
+#include "libcamera/internal/framebuffer.h"
#include <errno.h>
#include <string.h>
@@ -16,11 +16,11 @@
#include <libcamera/base/log.h>
/**
- * \file libcamera/buffer.h
- * \brief Buffer handling
+ * \file libcamera/framebuffer.h
+ * \brief Frame buffer handling
*
- * \file libcamera/internal/buffer.h
- * \brief Internal buffer handling support
+ * \file libcamera/internal/framebuffer.h
+ * \brief Internal frame buffer handling support
*/
namespace libcamera {
diff --git a/src/libcamera/framebuffer_allocator.cpp b/src/libcamera/framebuffer_allocator.cpp
index 86a57923..695073fd 100644
--- a/src/libcamera/framebuffer_allocator.cpp
+++ b/src/libcamera/framebuffer_allocator.cpp
@@ -11,8 +11,8 @@
#include <libcamera/base/log.h>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/stream.h>
#include "libcamera/internal/pipeline_handler.h"
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index 517e763d..4f085801 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -2,7 +2,6 @@
libcamera_sources = files([
'bayer_format.cpp',
- 'buffer.cpp',
'byte_stream_buffer.cpp',
'camera.cpp',
'camera_controls.cpp',
@@ -17,6 +16,7 @@ libcamera_sources = files([
'device_enumerator_sysfs.cpp',
'file_descriptor.cpp',
'formats.cpp',
+ 'framebuffer.cpp',
'framebuffer_allocator.cpp',
'geometry.cpp',
'ipa_controls.cpp',
diff --git a/src/libcamera/pipeline/ipu3/frames.cpp b/src/libcamera/pipeline/ipu3/frames.cpp
index d9a2249b..ce5ccbf1 100644
--- a/src/libcamera/pipeline/ipu3/frames.cpp
+++ b/src/libcamera/pipeline/ipu3/frames.cpp
@@ -7,7 +7,7 @@
#include "frames.h"
-#include <libcamera/buffer.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/request.h>
#include "libcamera/internal/pipeline_handler.h"
diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index 082eb1ee..4f1a5985 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -30,10 +30,10 @@
#include <linux/videodev2.h>
#include "libcamera/internal/bayer_format.h"
-#include "libcamera/internal/buffer.h"
#include "libcamera/internal/camera_sensor.h"
#include "libcamera/internal/delayed_controls.h"
#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/framebuffer.h"
#include "libcamera/internal/ipa_manager.h"
#include "libcamera/internal/media_device.h"
#include "libcamera/internal/pipeline_handler.h"
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index 00df4f0b..42911a8f 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -17,10 +17,10 @@
#include <libcamera/base/log.h>
#include <libcamera/base/utils.h>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
#include <libcamera/control_ids.h>
#include <libcamera/formats.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/ipa/core_ipa_interface.h>
#include <libcamera/ipa/rkisp1_ipa_interface.h>
#include <libcamera/ipa/rkisp1_ipa_proxy.h>
diff --git a/src/libcamera/pipeline/simple/converter.cpp b/src/libcamera/pipeline/simple/converter.cpp
index 3baf78f9..b5e34c4c 100644
--- a/src/libcamera/pipeline/simple/converter.cpp
+++ b/src/libcamera/pipeline/simple/converter.cpp
@@ -14,7 +14,7 @@
#include <libcamera/base/signal.h>
#include <libcamera/base/utils.h>
-#include <libcamera/buffer.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/geometry.h>
#include <libcamera/stream.h>
diff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp
index 0ed172dc..c9928d44 100644
--- a/src/libcamera/pipeline_handler.cpp
+++ b/src/libcamera/pipeline_handler.cpp
@@ -12,9 +12,9 @@
#include <libcamera/base/log.h>
#include <libcamera/base/utils.h>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
+#include <libcamera/framebuffer.h>
#include "libcamera/internal/device_enumerator.h"
#include "libcamera/internal/media_device.h"
diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp
index 518384eb..5faf3c71 100644
--- a/src/libcamera/request.cpp
+++ b/src/libcamera/request.cpp
@@ -12,9 +12,9 @@
#include <libcamera/base/log.h>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
#include <libcamera/control_ids.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/stream.h>
#include "libcamera/internal/camera_controls.h"
diff --git a/src/qcam/dng_writer.h b/src/qcam/dng_writer.h
index bf44c879..20905f37 100644
--- a/src/qcam/dng_writer.h
+++ b/src/qcam/dng_writer.h
@@ -10,9 +10,9 @@
#ifdef HAVE_TIFF
#define HAVE_DNG
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
#include <libcamera/controls.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/stream.h>
using namespace libcamera;
diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h
index 27131461..85d56ce4 100644
--- a/src/qcam/main_window.h
+++ b/src/qcam/main_window.h
@@ -18,10 +18,10 @@
#include <QQueue>
#include <QTimer>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
#include <libcamera/controls.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/framebuffer_allocator.h>
#include <libcamera/request.h>
#include <libcamera/stream.h>
diff --git a/src/qcam/viewfinder.h b/src/qcam/viewfinder.h
index e33dc452..46747c22 100644
--- a/src/qcam/viewfinder.h
+++ b/src/qcam/viewfinder.h
@@ -11,8 +11,8 @@
#include <QList>
#include <QSize>
-#include <libcamera/buffer.h>
#include <libcamera/formats.h>
+#include <libcamera/framebuffer.h>
struct MappedBuffer {
void *memory;
diff --git a/src/qcam/viewfinder_gl.h b/src/qcam/viewfinder_gl.h
index bce94c87..4a0f8ca5 100644
--- a/src/qcam/viewfinder_gl.h
+++ b/src/qcam/viewfinder_gl.h
@@ -21,8 +21,8 @@
#include <QOpenGLWidget>
#include <QSize>
-#include <libcamera/buffer.h>
#include <libcamera/formats.h>
+#include <libcamera/framebuffer.h>
#include "viewfinder.h"
diff --git a/src/qcam/viewfinder_qt.h b/src/qcam/viewfinder_qt.h
index d7554288..501c72a7 100644
--- a/src/qcam/viewfinder_qt.h
+++ b/src/qcam/viewfinder_qt.h
@@ -14,8 +14,8 @@
#include <QSize>
#include <QWidget>
-#include <libcamera/buffer.h>
#include <libcamera/formats.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/pixel_format.h>
#include "format_converter.h"
diff --git a/src/v4l2/v4l2_camera.h b/src/v4l2/v4l2_camera.h
index dbe0573b..a095f4e2 100644
--- a/src/v4l2/v4l2_camera.h
+++ b/src/v4l2/v4l2_camera.h
@@ -14,9 +14,9 @@
#include <libcamera/base/semaphore.h>
-#include <libcamera/buffer.h>
#include <libcamera/camera.h>
#include <libcamera/file_descriptor.h>
+#include <libcamera/framebuffer.h>
#include <libcamera/framebuffer_allocator.h>
using namespace libcamera;