8 #ifndef __LIBCAMERA_INTERNAL_FORMATS_H__ 9 #define __LIBCAMERA_INTERNAL_FORMATS_H__ 37 bool isValid()
const {
return format.isValid(); }
43 unsigned int stride(
unsigned int width,
unsigned int plane,
44 unsigned int align = 1)
const;
45 unsigned int frameSize(
const Size &size,
unsigned int align = 1)
const;
46 unsigned int frameSize(
const Size &size,
47 const std::array<unsigned int, 3> &strides)
const;
49 unsigned int numPlanes()
const;
61 std::array<PixelFormatPlaneInfo, 3>
planes;
Top-level libcamera namespace.
Definition: bound_method.h:15
Describe a two-dimensional size.
Definition: geometry.h:50
Data structures related to geometric objects.