OpenCV for Unity 3.0.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/5.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.Extensions.SourceToMat.CameraResolutionUtils Class Reference

Optional helpers for working with CameraResolution lists returned by camera sources. More...

Static Public Member Functions

static bool AreModesEquivalent (CameraResolution a, CameraResolution b)
 Returns whether two capture modes refer to the same width, height, and FPS bucket. Unknown FPS values (less than or equal to zero) match each other for the same size.
 
static bool AreModesEquivalent (int width, int height, float fps, CameraResolution other)
 Returns whether two capture modes refer to the same width, height, and FPS bucket. Unknown FPS values (less than or equal to zero) match each other for the same size.
 
static IReadOnlyList< CameraResolution > NormalizeDistinctSorted (IReadOnlyList< CameraResolution > resolutions)
 Returns a distinct copy sorted for stable UI display. Does not modify the input sequence. Order is width, height, then FPS ascending; FPS less than or equal to zero sorts after known FPS values for the same size.
 

Detailed Description

Optional helpers for working with CameraResolution lists returned by camera sources.

Member Function Documentation

◆ AreModesEquivalent() [1/2]

static bool OpenCVForUnity.Extensions.SourceToMat.CameraResolutionUtils.AreModesEquivalent ( CameraResolution a,
CameraResolution b )
static

Returns whether two capture modes refer to the same width, height, and FPS bucket. Unknown FPS values (less than or equal to zero) match each other for the same size.

◆ AreModesEquivalent() [2/2]

static bool OpenCVForUnity.Extensions.SourceToMat.CameraResolutionUtils.AreModesEquivalent ( int width,
int height,
float fps,
CameraResolution other )
static

Returns whether two capture modes refer to the same width, height, and FPS bucket. Unknown FPS values (less than or equal to zero) match each other for the same size.

◆ NormalizeDistinctSorted()

static IReadOnlyList< CameraResolution > OpenCVForUnity.Extensions.SourceToMat.CameraResolutionUtils.NormalizeDistinctSorted ( IReadOnlyList< CameraResolution > resolutions)
static

Returns a distinct copy sorted for stable UI display. Does not modify the input sequence. Order is width, height, then FPS ascending; FPS less than or equal to zero sorts after known FPS values for the same size.

Parameters
resolutionsSource list. May be null or empty.
Returns
A new read-only list. Never null.

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