diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/internal/formats.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libcamera/internal/formats.h b/include/libcamera/internal/formats.h index f59ac8fe..4e90e5ac 100644 --- a/include/libcamera/internal/formats.h +++ b/include/libcamera/internal/formats.h @@ -8,6 +8,7 @@ #ifndef __LIBCAMERA_INTERNAL_FORMATS_H__ #define __LIBCAMERA_INTERNAL_FORMATS_H__ +#include <array> #include <map> #include <vector> @@ -32,6 +33,12 @@ private: std::map<unsigned int, std::vector<SizeRange>> data_; }; +struct PixelFormatPlaneInfo +{ + unsigned int bytesPerGroup; + unsigned int verticalSubSampling; +}; + class PixelFormatInfo { public: @@ -52,6 +59,10 @@ public: unsigned int bitsPerPixel; enum ColourEncoding colourEncoding; bool packed; + + unsigned int pixelsPerGroup; + + std::array<PixelFormatPlaneInfo, 3> planes; }; } /* namespace libcamera */ |