MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::CameraMode Struct Reference

A requested capture mode offered by a source, for a chooser. More...

#include <CameraSource.hpp>

+ Collaboration diagram for MayaFlux::IO::CameraMode:

Public Member Functions

void apply (CameraConfig &config) const
 Write this mode's size and frame rate into config.
 

Public Attributes

double fps {}
 Requested frame rate, 0 leaves it to the device.
 
uint32_t height {}
 Requested height in pixels, 0 leaves it to the device.
 
bool high_end {}
 Needs a capable camera.
 
std::string label
 Caption for a chooser.
 
uint32_t width {}
 Requested width in pixels, 0 leaves it to the device.
 

Detailed Description

A requested capture mode offered by a source, for a chooser.

A mode is a request, not a guarantee: open() falls back to the nearest mode the device accepts. Modes marked high_end ask for more than most webcams deliver and are likely to fall back on ordinary cameras.

Definition at line 43 of file CameraSource.hpp.


The documentation for this struct was generated from the following file: