libcamera: formats: Move plane info structure to PixelFormatInfo
Move the PixelFormatPlaneInfo structure within the PixelFormatInfo class definition and rename it to Plane, to align the naming scheme with other parts of libcamera, such as FrameBuffer::Plane or FrameMetadata::Plane. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user