libcamera: geometry: Sort classes alphabetically
Move the Size class before the SizeRange class. No functional change. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
9c90781332
commit
e7f446e1ed
2 changed files with 44 additions and 44 deletions
|
@ -21,6 +21,21 @@ struct Rectangle {
|
||||||
const std::string toString() const;
|
const std::string toString() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct Size {
|
||||||
|
Size()
|
||||||
|
: Size(0, 0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
Size(unsigned int w, unsigned int h)
|
||||||
|
: width(w), height(h)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned int width;
|
||||||
|
unsigned int height;
|
||||||
|
};
|
||||||
|
|
||||||
struct SizeRange {
|
struct SizeRange {
|
||||||
SizeRange()
|
SizeRange()
|
||||||
: SizeRange(0, 0, 0, 0)
|
: SizeRange(0, 0, 0, 0)
|
||||||
|
@ -40,21 +55,6 @@ struct SizeRange {
|
||||||
unsigned int maxHeight;
|
unsigned int maxHeight;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Size {
|
|
||||||
Size()
|
|
||||||
: Size(0, 0)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Size(unsigned int w, unsigned int h)
|
|
||||||
: width(w), height(h)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned int width;
|
|
||||||
unsigned int height;
|
|
||||||
};
|
|
||||||
|
|
||||||
} /* namespace libcamera */
|
} /* namespace libcamera */
|
||||||
|
|
||||||
#endif /* __LIBCAMERA_GEOMETRY_H__ */
|
#endif /* __LIBCAMERA_GEOMETRY_H__ */
|
||||||
|
|
|
@ -62,6 +62,35 @@ const std::string Rectangle::toString() const
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \struct Size
|
||||||
|
* \brief Describe a two-dimensional size
|
||||||
|
*
|
||||||
|
* The Size structure defines a two-dimensional size with integer precision.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \fn Size::Size()
|
||||||
|
* \brief Construct a Size with width and height set to 0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \fn Size::Size(unsigned int width, unsigned int height)
|
||||||
|
* \brief Construct a Size with given \a width and \a height
|
||||||
|
* \param width The Size width
|
||||||
|
* \param height The Size height
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \var Size::width
|
||||||
|
* \brief The Size width
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \var Size::height
|
||||||
|
* \brief The Size height
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \struct SizeRange
|
* \struct SizeRange
|
||||||
* \brief Describe a range of image sizes
|
* \brief Describe a range of image sizes
|
||||||
|
@ -105,33 +134,4 @@ const std::string Rectangle::toString() const
|
||||||
* \brief The maximum image height
|
* \brief The maximum image height
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* \struct Size
|
|
||||||
* \brief Describe a two-dimensional size
|
|
||||||
*
|
|
||||||
* The Size structure defines a two-dimensional size with integer precision.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \fn Size::Size()
|
|
||||||
* \brief Construct a Size with width and height set to 0
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \fn Size::Size(unsigned int width, unsigned int height)
|
|
||||||
* \brief Construct a Size with given \a width and \a height
|
|
||||||
* \param width The Size width
|
|
||||||
* \param height The Size height
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \var Size::width
|
|
||||||
* \brief The Size width
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \var Size::height
|
|
||||||
* \brief The Size height
|
|
||||||
*/
|
|
||||||
|
|
||||||
} /* namespace libcamera */
|
} /* namespace libcamera */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue