Picture width and height.
More...
#include <resolution.hpp>
Inherits Printable.
Picture width and height.
◆ Resolution()
esp32cam::Resolution::Resolution |
( |
int |
frameSize = -1 | ) |
|
|
explicit |
Constructor.
- Parameters
-
frameSize | framesize_t value. |
◆ as()
template<typename T >
T esp32cam::Resolution::as |
( |
| ) |
const |
|
inline |
Convert to framesize_t (internal use).
- Template Parameters
-
◆ find()
Resolution esp32cam::Resolution::find |
( |
int |
minWidth, |
|
|
int |
minHeight |
|
) |
| |
|
static |
Find a resolution that satisfies given constraints.
This searches among all resolutions defined in the esp32-camera libary, which is not necessarily supported by the camera hardware.
◆ getHeight()
int esp32cam::Resolution::getHeight |
( |
| ) |
const |
Return picture height in pixels.
◆ getWidth()
int esp32cam::Resolution::getWidth |
( |
| ) |
const |
Return picture width in pixels.
◆ isValid()
bool esp32cam::Resolution::isValid |
( |
| ) |
const |
Determine if this resolution is valid.
◆ list()
Return an iterable collection of possible resolutions.
This list contains all resolutions defined in the esp32-camera library, but not necessarily supported by the camera hardware. Use Camera.listResolutions()
to retrieve supported resolutions.
◆ printTo()
size_t esp32cam::Resolution::printTo |
( |
Print & |
p | ) |
const |
|
override |
Print WxH to output stream.
◆ operator!=
◆ operator<
◆ operator==
◆ operator>
The documentation for this class was generated from the following files: