SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
Loading...
Searching...
No Matches
Video Sources

Interfaces and helpers for obtaining frames for processing. More...

Classes

struct  presage::smartspectra::video_source::VideoSourceSettings
 Configuration options for constructing a VideoSource. More...
class  presage::smartspectra::video_source::VideoSource
 Abstract interface for camera/video input sources. More...

Enumerations

enum class  presage::smartspectra::video_source::InputTransformMode : int {
  None , Clockwise90 , Counterclockwise90 , Rotate180 ,
  MirrorHorizontal , MirrorVertical , Unspecified_EnumEnd
}
 Transformation applied to frames prior to processing.
enum class  presage::smartspectra::video_source::ResolutionSelectionMode : int { Auto , Exact , Range , Unknown_EnumEnd }

Functions

absl::StatusOr< std::shared_ptr< VideoSource > > presage::smartspectra::video_source::BuildVideoSource (const VideoSourceSettings &settings)
 Factory helper for constructing the appropriate VideoSource implementation based on the provided settings.
std::string presage::smartspectra::video_source::AbslUnparseFlag (InputTransformMode mode)
bool presage::smartspectra::video_source::AbslParseFlag (absl::string_view text, InputTransformMode *mode, std::string *error)
std::string presage::smartspectra::video_source::AbslUnparseFlag (ResolutionSelectionMode mode)
bool presage::smartspectra::video_source::AbslParseFlag (absl::string_view text, ResolutionSelectionMode *mode, std::string *error)
std::vector< std::string > presage::smartspectra::video_source::GetResolutionSelectionModeNames ()

Variables

const std::vector< std::string > presage::smartspectra::video_source::kInputTransformModeNames
const std::string presage::smartspectra::video_source::kInputTransformModeNameList = absl::StrJoin(kInputTransformModeNames, ", ")

Detailed Description

Interfaces and helpers for obtaining frames for processing.

Enumeration Type Documentation

◆ ResolutionSelectionMode

How capture resolution should be selected.

Function Documentation

◆ AbslParseFlag() [1/2]

bool presage::smartspectra::video_source::AbslParseFlag ( absl::string_view text,
InputTransformMode * mode,
std::string * error )

Parse an input transform mode from a flag string.

◆ AbslParseFlag() [2/2]

bool presage::smartspectra::video_source::AbslParseFlag ( absl::string_view text,
ResolutionSelectionMode * mode,
std::string * error )

Parse a resolution selection mode from a flag.

◆ AbslUnparseFlag() [1/2]

std::string presage::smartspectra::video_source::AbslUnparseFlag ( InputTransformMode mode)

Convert an input transform mode to a string for flags.

◆ AbslUnparseFlag() [2/2]

std::string presage::smartspectra::video_source::AbslUnparseFlag ( ResolutionSelectionMode mode)

Convert a resolution selection mode to a string for flags.

◆ GetResolutionSelectionModeNames()

std::vector< std::string > presage::smartspectra::video_source::GetResolutionSelectionModeNames ( )

Names of the available resolution selection modes.

Variable Documentation

◆ kInputTransformModeNameList

const std::string presage::smartspectra::video_source::kInputTransformModeNameList = absl::StrJoin(kInputTransformModeNames, ", ")

Comma separated list of mode names.

◆ kInputTransformModeNames

const std::vector< std::string > presage::smartspectra::video_source::kInputTransformModeNames
Initial value:
= []() {
std::vector<std::string> names;
for (
InputTransformMode mode = static_cast<InputTransformMode>(0);
mode < InputTransformMode::Unspecified_EnumEnd;
++(int & )mode
) {
names.push_back(AbslUnparseFlag(mode));
}
return names;
}()
std::string AbslUnparseFlag(InputTransformMode mode)
Definition input_transform.cpp:16
InputTransformMode
Transformation applied to frames prior to processing.
Definition input_transform.hpp:19

List of input transform mode names.