esp32cam
OV2640 camera on ESP32-CAM
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | List of all members
esp32cam::ResolutionList Class Reference

A collection of resolutions. More...

#include <resolution.hpp>

Classes

class  Iterator
 

Public Member Functions

 ResolutionList (int max=0)
 Constructor. More...
 
Iterator begin () const
 
Iterator end () const
 
Resolution find (int minWidth, int minHeight) const
 Find a resolution that satisfies given constraints. More...
 

Detailed Description

A collection of resolutions.

for (const auto& resolution : Resolution::list()) {
Serial.println(resolution);
}
static ResolutionList list()
Return an iterable collection of possible resolutions.
Definition: resolution.cpp:32

Constructor & Destructor Documentation

◆ ResolutionList()

esp32cam::ResolutionList::ResolutionList ( int  max = 0)
explicit

Constructor.

Parameters
maxexclusive maximum framesize_t.

Member Function Documentation

◆ begin()

ResolutionList::Iterator esp32cam::ResolutionList::begin ( ) const

◆ end()

ResolutionList::Iterator esp32cam::ResolutionList::end ( ) const

◆ find()

Resolution esp32cam::ResolutionList::find ( int  minWidth,
int  minHeight 
) const

Find a resolution that satisfies given constraints.


The documentation for this class was generated from the following files: