summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/formats.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/libcamera/internal/formats.h b/include/libcamera/internal/formats.h
index 51a8a6b8..a07de6bc 100644
--- a/include/libcamera/internal/formats.h
+++ b/include/libcamera/internal/formats.h
@@ -19,12 +19,6 @@
namespace libcamera {
-struct PixelFormatPlaneInfo
-{
- unsigned int bytesPerGroup;
- unsigned int verticalSubSampling;
-};
-
class PixelFormatInfo
{
public:
@@ -34,6 +28,11 @@ public:
ColourEncodingRAW,
};
+ struct Plane {
+ unsigned int bytesPerGroup;
+ unsigned int verticalSubSampling;
+ };
+
bool isValid() const { return format.isValid(); }
static const PixelFormatInfo &info(const PixelFormat &format);
@@ -58,7 +57,7 @@ public:
unsigned int pixelsPerGroup;
- std::array<PixelFormatPlaneInfo, 3> planes;
+ std::array<Plane, 3> planes;
};
} /* namespace libcamera */