SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
Loading...
Searching...
No Matches
presage::smartspectra::video_source::file_stream::FileStreamVideoSource Class Reference
Inheritance diagram for presage::smartspectra::video_source::file_stream::FileStreamVideoSource:
presage::smartspectra::video_source::VideoSource

Public Member Functions

absl::Status Initialize (const VideoSourceSettings &settings)
bool SupportsExactFrameTimestamp () const override
int64_t GetFrameTimestamp () const override
int GetWidth () override
int GetHeight () override
Public Member Functions inherited from presage::smartspectra::video_source::VideoSource
VideoSourceoperator>> (cv::Mat &frame)
virtual absl::Status TurnOnAutoExposure ()
 Enable automatic exposure mode.
virtual absl::Status TurnOffAutoExposure ()
 Disable automatic exposure and switch to manual mode.
virtual absl::Status ToggleAutoExposure ()
 Toggle between automatic and manual exposure modes.
virtual absl::StatusOr< bool > IsAutoExposureOn ()
 Check if automatic exposure is currently enabled.
virtual absl::Status IncreaseExposure ()
 Increase exposure by a fixed hardware-specific step.
virtual absl::Status DecreaseExposure ()
 Decrease exposure by a fixed hardware-specific step.
virtual absl::Status SetExposure (double value)
 Set exposure to a normalized value.
virtual absl::StatusOr< double > GetExposure ()
 Get current exposure as a normalized value.
virtual bool SupportsExposureControls ()
 Check if this video source supports exposure controls.
virtual bool SupportsWhiteBalanceControls ()
 Check if this video source supports white balance controls.
virtual absl::Status TurnOnAutoWhiteBalance ()
 Enable automatic white balance mode.
virtual absl::Status TurnOffAutoWhiteBalance ()
 Disable automatic white balance and switch to manual mode.
virtual absl::Status ToggleAutoWhiteBalance ()
 Toggle between automatic and manual white balance modes.
virtual absl::StatusOr< bool > IsAutoWhiteBalanceOn ()
 Check if automatic white balance is currently enabled.
virtual absl::Status IncreaseWhiteBalance ()
 Increase white balance temperature by a fixed hardware-specific step.
virtual absl::Status DecreaseWhiteBalance ()
 Decrease white balance temperature by a fixed hardware-specific step.
virtual absl::Status SetWhiteBalance (double value)
 Set white balance temperature to a normalized value.
virtual absl::StatusOr< double > GetWhiteBalance ()
 Get current white balance temperature as a normalized value.
virtual bool SupportsGainControl ()
 Check if this video source supports gain controls.
virtual absl::Status IncreaseGain ()
 Increase gain by a fixed hardware-specific step.
virtual absl::Status DecreaseGain ()
 Decrease gain by a fixed hardware-specific step.
virtual absl::Status SetGain (double value)
 Set gain to a normalized value.
virtual absl::StatusOr< double > GetGain ()
 Get current gain as a normalized value.
virtual InputTransformMode GetDefaultInputTransformMode ()
bool HasFrameDimensions ()
virtual bool SupportsCompressedOutput ()
virtual bool ProduceCompressedFrame (std::vector< uint8_t > &jpeg_data)

Protected Member Functions

void ProducePreTransformFrame (cv::Mat &frame) override

Additional Inherited Members

Protected Attributes inherited from presage::smartspectra::video_source::VideoSource
InputTransformer input_transformer

Member Function Documentation

◆ GetFrameTimestamp()

int64_t presage::smartspectra::video_source::file_stream::FileStreamVideoSource::GetFrameTimestamp ( ) const
nodiscardoverridevirtual

return the current frame's timestamp, in microseconds

Implements presage::smartspectra::video_source::VideoSource.

◆ GetHeight()

int presage::smartspectra::video_source::file_stream::FileStreamVideoSource::GetHeight ( )
overridevirtual

◆ GetWidth()

int presage::smartspectra::video_source::file_stream::FileStreamVideoSource::GetWidth ( )
overridevirtual

◆ Initialize()

absl::Status presage::smartspectra::video_source::file_stream::FileStreamVideoSource::Initialize ( const VideoSourceSettings & settings)
virtual

Configure the source with provided settings.

Reimplemented from presage::smartspectra::video_source::VideoSource.

◆ ProducePreTransformFrame()

void presage::smartspectra::video_source::file_stream::FileStreamVideoSource::ProducePreTransformFrame ( cv::Mat & frame)
overrideprotectedvirtual

◆ SupportsExactFrameTimestamp()

bool presage::smartspectra::video_source::file_stream::FileStreamVideoSource::SupportsExactFrameTimestamp ( ) const
nodiscardoverridevirtual

The documentation for this class was generated from the following files:
  • smartspectra/video_source/file_stream/file_stream.hpp
  • smartspectra/video_source/file_stream/file_stream.cpp