TinyUVC 0.1.0
Header-only USB Video Class (UVC) device: turn an MCU into a USB webcam
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tinyuvc::UVCFrameSpec Struct Reference

One resolution (UVC frame descriptor) with its supported frame rates. More...

#include <UVCDefs.h>

Public Member Functions

bool hasInterval (uint32_t interval) const
 true if the interval is listed
 
uint32_t closestInterval (uint32_t interval) const
 Supported interval that is closest to the requested one.
 
uint32_t minInterval () const
 
uint32_t maxInterval () const
 

Public Attributes

uint16_t width = 0
 
uint16_t height = 0
 
uint32_t maxFrameSize = 0
 Max size of one frame in bytes, reported to the host for buffer sizing.
 
uint8_t intervalCount = 0
 Number of valid entries in intervals[].
 
uint32_t intervals [4] = {}
 Supported frame intervals in 100ns units; intervals[0] is the default.
 

Detailed Description

One resolution (UVC frame descriptor) with its supported frame rates.

Member Function Documentation

◆ closestInterval()

uint32_t tinyuvc::UVCFrameSpec::closestInterval ( uint32_t  interval) const
inline

Supported interval that is closest to the requested one.

◆ hasInterval()

bool tinyuvc::UVCFrameSpec::hasInterval ( uint32_t  interval) const
inline

true if the interval is listed

◆ maxInterval()

uint32_t tinyuvc::UVCFrameSpec::maxInterval ( ) const
inline

◆ minInterval()

uint32_t tinyuvc::UVCFrameSpec::minInterval ( ) const
inline

Member Data Documentation

◆ height

uint16_t tinyuvc::UVCFrameSpec::height = 0

◆ intervalCount

uint8_t tinyuvc::UVCFrameSpec::intervalCount = 0

Number of valid entries in intervals[].

◆ intervals

uint32_t tinyuvc::UVCFrameSpec::intervals[4] = {}

Supported frame intervals in 100ns units; intervals[0] is the default.

◆ maxFrameSize

uint32_t tinyuvc::UVCFrameSpec::maxFrameSize = 0

Max size of one frame in bytes, reported to the host for buffer sizing.

◆ width

uint16_t tinyuvc::UVCFrameSpec::width = 0

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