Optional helpers for working with CameraResolution lists returned by camera sources.
More...
|
| 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.
|
| |
Optional helpers for working with CameraResolution lists returned by camera sources.
◆ AreModesEquivalent() [1/2]
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
-
| resolutions | Source 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: