summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/formats.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libcamera/internal/formats.h b/include/libcamera/internal/formats.h
index a07de6bc..b2869c93 100644
--- a/include/libcamera/internal/formats.h
+++ b/include/libcamera/internal/formats.h
@@ -41,6 +41,10 @@ public:
unsigned int stride(unsigned int width, unsigned int plane,
unsigned int align = 1) const;
+ unsigned int planeSize(const Size &size, unsigned int plane,
+ unsigned int align = 1) const;
+ unsigned int planeSize(unsigned int height, unsigned int plane,
+ unsigned int stride) const;
unsigned int frameSize(const Size &size, unsigned int align = 1) const;
unsigned int frameSize(const Size &size,
const std::array<unsigned int, 3> &strides) const;