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>
This commit is contained in:
parent
da9b6bb196
commit
6a31a8d8e2
44 changed files with 62 additions and 62 deletions
|
@ -2,10 +2,10 @@
|
|||
/*
|
||||
* Copyright (C) 2019, Google Inc.
|
||||
*
|
||||
* buffer.h - Buffer handling
|
||||
* framebuffer.h - Frame buffer handling
|
||||
*/
|
||||
#ifndef __LIBCAMERA_BUFFER_H__
|
||||
#define __LIBCAMERA_BUFFER_H__
|
||||
#ifndef __LIBCAMERA_FRAMEBUFFER_H__
|
||||
#define __LIBCAMERA_FRAMEBUFFER_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
|
@ -71,4 +71,4 @@ private:
|
|||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_BUFFER_H__ */
|
||||
#endif /* __LIBCAMERA_FRAMEBUFFER_H__ */
|
|
@ -2,10 +2,10 @@
|
|||
/*
|
||||
* Copyright (C) 2020, Google Inc.
|
||||
*
|
||||
* buffer.h - Internal buffer handling
|
||||
* framebuffer.h - Internal frame buffer handling
|
||||
*/
|
||||
#ifndef __LIBCAMERA_INTERNAL_BUFFER_H__
|
||||
#define __LIBCAMERA_INTERNAL_BUFFER_H__
|
||||
#ifndef __LIBCAMERA_INTERNAL_FRAMEBUFFER_H__
|
||||
#define __LIBCAMERA_INTERNAL_FRAMEBUFFER_H__
|
||||
|
||||
#include <sys/mman.h>
|
||||
#include <vector>
|
||||
|
@ -13,7 +13,7 @@
|
|||
#include <libcamera/base/class.h>
|
||||
#include <libcamera/base/span.h>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
|
||||
namespace libcamera {
|
||||
|
||||
|
@ -49,4 +49,4 @@ public:
|
|||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_INTERNAL_BUFFER_H__ */
|
||||
#endif /* __LIBCAMERA_INTERNAL_FRAMEBUFFER_H__ */
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <libcamera/base/log.h>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/control_ids.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/geometry.h>
|
||||
#include <libcamera/ipa/ipa_interface.h>
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ libcamera_tracepoint_header = custom_target(
|
|||
|
||||
libcamera_internal_headers = files([
|
||||
'bayer_format.h',
|
||||
'buffer.h',
|
||||
'byte_stream_buffer.h',
|
||||
'camera_controls.h',
|
||||
'camera_sensor.h',
|
||||
|
@ -23,6 +22,7 @@ libcamera_internal_headers = files([
|
|||
'device_enumerator_sysfs.h',
|
||||
'device_enumerator_udev.h',
|
||||
'formats.h',
|
||||
'framebuffer.h',
|
||||
'ipa_manager.h',
|
||||
'ipa_module.h',
|
||||
'ipa_proxy.h',
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* request.tp - Tracepoints for the request object
|
||||
*/
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/request.h>
|
||||
|
||||
TRACEPOINT_EVENT_CLASS(
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <libcamera/base/log.h>
|
||||
#include <libcamera/base/signal.h>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/geometry.h>
|
||||
#include <libcamera/pixel_format.h>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
|
||||
#include <libcamera/base/signal.h>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/controls.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/geometry.h>
|
||||
|
||||
namespace libcamera {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
libcamera_public_headers = files([
|
||||
'buffer.h',
|
||||
'camera.h',
|
||||
'camera_manager.h',
|
||||
'compiler.h',
|
||||
'controls.h',
|
||||
'file_descriptor.h',
|
||||
'framebuffer.h',
|
||||
'framebuffer_allocator.h',
|
||||
'geometry.h',
|
||||
'logging.h',
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/geometry.h>
|
||||
#include <libcamera/pixel_format.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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <libcamera/base/span.h>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/stream.h>
|
||||
|
||||
class Encoder
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include <libcamera/geometry.h>
|
||||
|
||||
#include "libcamera/internal/buffer.h"
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
|
||||
class CameraDevice;
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include <libcamera/base/log.h>
|
||||
|
||||
#include "libcamera/internal/buffer.h"
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
|
||||
class BufferWriter
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 {
|
|
@ -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"
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
#include <QList>
|
||||
#include <QSize>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/formats.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
|
||||
struct MappedBuffer {
|
||||
void *memory;
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include <QOpenGLWidget>
|
||||
#include <QSize>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/formats.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
|
||||
#include "viewfinder.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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <libcamera/framebuffer_allocator.h>
|
||||
|
||||
#include "libcamera/internal/buffer.h"
|
||||
#include "libcamera/internal/framebuffer.h"
|
||||
|
||||
#include "camera_test.h"
|
||||
#include "test.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef __LIBCAMERA_V4L2_SUBDEVICE_TEST_H__
|
||||
#define __LIBCAMERA_V4L2_SUBDEVICE_TEST_H__
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
|
||||
#include "libcamera/internal/device_enumerator.h"
|
||||
#include "libcamera/internal/media_device.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
|
||||
#include <libcamera/base/event_dispatcher.h>
|
||||
#include <libcamera/base/thread.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
|
||||
#include <libcamera/base/event_dispatcher.h>
|
||||
#include <libcamera/base/thread.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
|
||||
#include <libcamera/base/event_dispatcher.h>
|
||||
#include <libcamera/base/thread.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#include <libcamera/buffer.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
|
||||
#include "libcamera/internal/camera_sensor.h"
|
||||
#include "libcamera/internal/device_enumerator.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue