diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-03-15 18:22:46 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-03-18 18:02:40 +0100 |
commit | 8c0bbcd3d3751a716eb8bf03e703aa6fdbe1bd3f (patch) | |
tree | 579d0822f08b07770329800b07a219aad6723803 /src/libcamera/pipeline/vimc.cpp | |
parent | 4bc262ecaa736b956cf8878d8f3459c9caf7c37e (diff) |
libcamera: PixelFormat: Turn into a class
Create a class to represent a pixel format. This is done to add support
for modifiers for the formats. So far no modifiers are added by any
pipeline handler, all plumbing to deal with them is however in place.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/vimc.cpp')
-rw-r--r-- | src/libcamera/pipeline/vimc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp index 82649952..00cb7389 100644 --- a/src/libcamera/pipeline/vimc.cpp +++ b/src/libcamera/pipeline/vimc.cpp @@ -105,7 +105,7 @@ private: namespace { -constexpr std::array<PixelFormat, 3> pixelformats{ +static const std::array<PixelFormat, 3> pixelformats{ DRM_FORMAT_RGB888, DRM_FORMAT_BGR888, DRM_FORMAT_BGRA8888, |