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>
This commit is contained in:
Laurent Pinchart 2020-05-22 03:08:15 +03:00
parent c6e9c750f6
commit 08a75925d8
12 changed files with 18 additions and 18 deletions

View file

@ -12,7 +12,7 @@
#include <vector> #include <vector>
#include <libcamera/geometry.h> #include <libcamera/geometry.h>
#include <libcamera/pixelformats.h> #include <libcamera/pixel_format.h>
#include "libcamera/internal/v4l2_pixelformat.h" #include "libcamera/internal/v4l2_pixelformat.h"

View file

@ -13,7 +13,7 @@
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <libcamera/pixelformats.h> #include <libcamera/pixel_format.h>
namespace libcamera { namespace libcamera {

View file

@ -17,7 +17,7 @@
#include <libcamera/buffer.h> #include <libcamera/buffer.h>
#include <libcamera/geometry.h> #include <libcamera/geometry.h>
#include <libcamera/pixelformats.h> #include <libcamera/pixel_format.h>
#include <libcamera/signal.h> #include <libcamera/signal.h>
#include "libcamera/internal/formats.h" #include "libcamera/internal/formats.h"

View file

@ -13,7 +13,7 @@ libcamera_public_headers = files([
'geometry.h', 'geometry.h',
'logging.h', 'logging.h',
'object.h', 'object.h',
'pixelformats.h', 'pixel_format.h',
'request.h', 'request.h',
'signal.h', 'signal.h',
'span.h', 'span.h',

View file

@ -2,10 +2,10 @@
/* /*
* Copyright (C) 2019, Google Inc. * Copyright (C) 2019, Google Inc.
* *
* pixelformats.h - libcamera pixel formats * pixel_format.h - libcamera Pixel Format
*/ */
#ifndef __LIBCAMERA_PIXEL_FORMATS_H__ #ifndef __LIBCAMERA_PIXEL_FORMAT_H__
#define __LIBCAMERA_PIXEL_FORMATS_H__ #define __LIBCAMERA_PIXEL_FORMAT_H__
#include <set> #include <set>
#include <stdint.h> #include <stdint.h>
@ -40,4 +40,4 @@ private:
} /* namespace libcamera */ } /* namespace libcamera */
#endif /* __LIBCAMERA_PIXEL_FORMATS_H__ */ #endif /* __LIBCAMERA_PIXEL_FORMAT_H__ */

View file

@ -14,7 +14,7 @@
#include <libcamera/buffer.h> #include <libcamera/buffer.h>
#include <libcamera/geometry.h> #include <libcamera/geometry.h>
#include <libcamera/pixelformats.h> #include <libcamera/pixel_format.h>
namespace libcamera { namespace libcamera {

View file

@ -34,7 +34,7 @@ libcamera_sources = files([
'message.cpp', 'message.cpp',
'object.cpp', 'object.cpp',
'pipeline_handler.cpp', 'pipeline_handler.cpp',
'pixelformats.cpp', 'pixel_format.cpp',
'process.cpp', 'process.cpp',
'pub_key.cpp', 'pub_key.cpp',
'request.cpp', 'request.cpp',

View file

@ -12,7 +12,7 @@
#include <queue> #include <queue>
#include <vector> #include <vector>
#include <libcamera/pixelformats.h> #include <libcamera/pixel_format.h>
#include <libcamera/signal.h> #include <libcamera/signal.h>
namespace libcamera { namespace libcamera {

View file

@ -2,14 +2,14 @@
/* /*
* Copyright (C) 2019, Google Inc. * 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 * \file pixel_format.h
* \brief libcamera pixel formats * \brief libcamera pixel format
*/ */
namespace libcamera { namespace libcamera {

View file

@ -14,7 +14,7 @@
#include <linux/drm_fourcc.h> #include <linux/drm_fourcc.h>
#include <libcamera/pixelformats.h> #include <libcamera/pixel_format.h>
#include "libcamera/internal/formats.h" #include "libcamera/internal/formats.h"
#include "libcamera/internal/log.h" #include "libcamera/internal/log.h"

View file

@ -11,7 +11,7 @@
#include <QSize> #include <QSize>
#include <libcamera/pixelformats.h> #include <libcamera/pixel_format.h>
class QImage; class QImage;

View file

@ -17,7 +17,7 @@
#include <QWidget> #include <QWidget>
#include <libcamera/buffer.h> #include <libcamera/buffer.h>
#include <libcamera/pixelformats.h> #include <libcamera/pixel_format.h>
#include "format_converter.h" #include "format_converter.h"