summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-22 03:08:15 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-06-06 00:25:04 +0300
commit08a75925d86605d63f115e76ad7644ba194812a4 (patch)
treee7b717d7e81a4b0a7954d842024f0c5d4c645df5 /src
parentc6e9c750f63bbfcd323287854513d967c57fe0b2 (diff)
libcamera: Rename pixelformats.{cpp,h} to pixel_format.{cpp,h}
The libcamera source files are named after class names, using snake_case. pixelformats.h and pixelformats.cpp don't comply with that rule. Fix them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/meson.build2
-rw-r--r--src/libcamera/pipeline/simple/converter.h2
-rw-r--r--src/libcamera/pixel_format.cpp (renamed from src/libcamera/pixelformats.cpp)8
-rw-r--r--src/libcamera/v4l2_pixelformat.cpp2
-rw-r--r--src/qcam/format_converter.h2
-rw-r--r--src/qcam/viewfinder.h2
6 files changed, 9 insertions, 9 deletions
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index b88f295d..611fc061 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -34,7 +34,7 @@ libcamera_sources = files([
'message.cpp',
'object.cpp',
'pipeline_handler.cpp',
- 'pixelformats.cpp',
+ 'pixel_format.cpp',
'process.cpp',
'pub_key.cpp',
'request.cpp',
diff --git a/src/libcamera/pipeline/simple/converter.h b/src/libcamera/pipeline/simple/converter.h
index 1f770eb8..ef18cf73 100644
--- a/src/libcamera/pipeline/simple/converter.h
+++ b/src/libcamera/pipeline/simple/converter.h
@@ -12,7 +12,7 @@
#include <queue>
#include <vector>
-#include <libcamera/pixelformats.h>
+#include <libcamera/pixel_format.h>
#include <libcamera/signal.h>
namespace libcamera {
diff --git a/src/libcamera/pixelformats.cpp b/src/libcamera/pixel_format.cpp
index 1330dc5a..d8718739 100644
--- a/src/libcamera/pixelformats.cpp
+++ b/src/libcamera/pixel_format.cpp
@@ -2,14 +2,14 @@
/*
* Copyright (C) 2019, Google Inc.
*
- * pixelformats.cpp - libcamera pixel formats
+ * pixel_format.cpp - libcamera Pixel Format
*/
-#include <libcamera/pixelformats.h>
+#include <libcamera/pixel_format.h>
/**
- * \file pixelformats.h
- * \brief libcamera pixel formats
+ * \file pixel_format.h
+ * \brief libcamera pixel format
*/
namespace libcamera {
diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp
index 36776be9..94fae470 100644
--- a/src/libcamera/v4l2_pixelformat.cpp
+++ b/src/libcamera/v4l2_pixelformat.cpp
@@ -14,7 +14,7 @@
#include <linux/drm_fourcc.h>
-#include <libcamera/pixelformats.h>
+#include <libcamera/pixel_format.h>
#include "libcamera/internal/formats.h"
#include "libcamera/internal/log.h"
diff --git a/src/qcam/format_converter.h b/src/qcam/format_converter.h
index 5e28adf0..e389b24a 100644
--- a/src/qcam/format_converter.h
+++ b/src/qcam/format_converter.h
@@ -11,7 +11,7 @@
#include <QSize>
-#include <libcamera/pixelformats.h>
+#include <libcamera/pixel_format.h>
class QImage;
diff --git a/src/qcam/viewfinder.h b/src/qcam/viewfinder.h
index b3f1d25d..26a13205 100644
--- a/src/qcam/viewfinder.h
+++ b/src/qcam/viewfinder.h
@@ -17,7 +17,7 @@
#include <QWidget>
#include <libcamera/buffer.h>
-#include <libcamera/pixelformats.h>
+#include <libcamera/pixel_format.h>
#include "format_converter.h"