summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/libcamera/internal/formats.h2
-rw-r--r--include/libcamera/internal/v4l2_pixelformat.h2
-rw-r--r--include/libcamera/internal/v4l2_videodevice.h2
-rw-r--r--include/libcamera/meson.build2
-rw-r--r--include/libcamera/pixel_format.h (renamed from include/libcamera/pixelformats.h)8
-rw-r--r--include/libcamera/stream.h2
6 files changed, 9 insertions, 9 deletions
diff --git a/include/libcamera/internal/formats.h b/include/libcamera/internal/formats.h
index 4092a93e..4455b0f9 100644
--- a/include/libcamera/internal/formats.h
+++ b/include/libcamera/internal/formats.h
@@ -12,7 +12,7 @@
#include <vector>
#include <libcamera/geometry.h>
-#include <libcamera/pixelformats.h>
+#include <libcamera/pixel_format.h>
#include "libcamera/internal/v4l2_pixelformat.h"
diff --git a/include/libcamera/internal/v4l2_pixelformat.h b/include/libcamera/internal/v4l2_pixelformat.h
index 0fe8a017..4d0e034b 100644
--- a/include/libcamera/internal/v4l2_pixelformat.h
+++ b/include/libcamera/internal/v4l2_pixelformat.h
@@ -13,7 +13,7 @@
#include <linux/videodev2.h>
-#include <libcamera/pixelformats.h>
+#include <libcamera/pixel_format.h>
namespace libcamera {
diff --git a/include/libcamera/internal/v4l2_videodevice.h b/include/libcamera/internal/v4l2_videodevice.h
index cbaee614..45c3404c 100644
--- a/include/libcamera/internal/v4l2_videodevice.h
+++ b/include/libcamera/internal/v4l2_videodevice.h
@@ -17,7 +17,7 @@
#include <libcamera/buffer.h>
#include <libcamera/geometry.h>
-#include <libcamera/pixelformats.h>
+#include <libcamera/pixel_format.h>
#include <libcamera/signal.h>
#include "libcamera/internal/formats.h"
diff --git a/include/libcamera/meson.build b/include/libcamera/meson.build
index 27760c19..73c5b999 100644
--- a/include/libcamera/meson.build
+++ b/include/libcamera/meson.build
@@ -13,7 +13,7 @@ libcamera_public_headers = files([
'geometry.h',
'logging.h',
'object.h',
- 'pixelformats.h',
+ 'pixel_format.h',
'request.h',
'signal.h',
'span.h',
diff --git a/include/libcamera/pixelformats.h b/include/libcamera/pixel_format.h
index 89966e5e..e3b371ef 100644
--- a/include/libcamera/pixelformats.h
+++ b/include/libcamera/pixel_format.h
@@ -2,10 +2,10 @@
/*
* Copyright (C) 2019, Google Inc.
*
- * pixelformats.h - libcamera pixel formats
+ * pixel_format.h - libcamera Pixel Format
*/
-#ifndef __LIBCAMERA_PIXEL_FORMATS_H__
-#define __LIBCAMERA_PIXEL_FORMATS_H__
+#ifndef __LIBCAMERA_PIXEL_FORMAT_H__
+#define __LIBCAMERA_PIXEL_FORMAT_H__
#include <set>
#include <stdint.h>
@@ -40,4 +40,4 @@ private:
} /* namespace libcamera */
-#endif /* __LIBCAMERA_PIXEL_FORMATS_H__ */
+#endif /* __LIBCAMERA_PIXEL_FORMAT_H__ */
diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index b3cbea3d..1a68bd23 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -14,7 +14,7 @@
#include <libcamera/buffer.h>
#include <libcamera/geometry.h>
-#include <libcamera/pixelformats.h>
+#include <libcamera/pixel_format.h>
namespace libcamera {