![]() |
Zivid C++ API 2.19.0+b5c53d0f-1
|
Transfer Time is the duration from when the capture is sent to the camera to when the last of the frame's data has arrived on the host. Acquisition Time ends when the camera has acquired the last image; Transfer Time ends when that image has reached the host. Both are part of Capture Time, which also includes the processing of the data. More...
#include <Zivid/FrameInfo.h>
Public Types | |
| using | ValueType = std::chrono::microseconds |
| The type of the underlying value. | |
Public Member Functions | |
| TransferTime ()=default | |
| Default constructor. | |
| constexpr | TransferTime (std::chrono::microseconds value) |
| Constructor. | |
| std::chrono::microseconds | value () const |
| Get the value. | |
| bool | hasValue () const |
| Check if the value is set. | |
| void | reset () |
| Reset the node to unset state. | |
| std::string | toString () const |
| Get the value as string. | |
| bool | operator== (const TransferTime &other) const |
| Comparison operator. | |
| bool | operator!= (const TransferTime &other) const |
| Comparison operator. | |
| bool | operator< (const TransferTime &other) const |
| Comparison operator. | |
| bool | operator> (const TransferTime &other) const |
| Comparison operator. | |
| bool | operator<= (const TransferTime &other) const |
| Comparison operator. | |
| bool | operator>= (const TransferTime &other) const |
| Comparison operator. | |
Static Public Member Functions | |
| static constexpr Range< std::chrono::microseconds > | validRange () |
| The range of valid values for TransferTime. | |
Static Public Attributes | |
| static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::leafValue |
| The type of this node. | |
| static constexpr const char * | path { "Metrics/TransferTime" } |
| The full path for this value. | |
| static constexpr const char * | name { "TransferTime" } |
| The name of this value. | |
| static constexpr const char * | description |
| The description for this value. | |
Friends | |
| struct | DataModel::Detail::Befriend< TransferTime > |
| std::ostream & | operator<< (std::ostream &stream, const TransferTime &value) |
| Operator to serialize the value to a stream. | |
Transfer Time is the duration from when the capture is sent to the camera to when the last of the frame's data has arrived on the host. Acquisition Time ends when the camera has acquired the last image; Transfer Time ends when that image has reached the host. Both are part of Capture Time, which also includes the processing of the data.
Transfer Time is unset for a frame that did not cross a network, such as one from a file camera or one loaded from a file saved by an SDK older than 2.19.0, and for a camera whose transport does not time the transfer.
| using Zivid::FrameInfo::Metrics::TransferTime::ValueType = std::chrono::microseconds |
The type of the underlying value.
|
default |
Default constructor.
|
inlineexplicitconstexpr |
Constructor.
| bool Zivid::FrameInfo::Metrics::TransferTime::hasValue | ( | ) | const |
Check if the value is set.
|
inline |
Comparison operator.
|
inline |
Comparison operator.
|
inline |
Comparison operator.
|
inline |
Comparison operator.
|
inline |
Comparison operator.
|
inline |
Comparison operator.
| void Zivid::FrameInfo::Metrics::TransferTime::reset | ( | ) |
Reset the node to unset state.
| std::string Zivid::FrameInfo::Metrics::TransferTime::toString | ( | ) | const |
Get the value as string.
|
inlinestaticconstexpr |
The range of valid values for TransferTime.
| std::chrono::microseconds Zivid::FrameInfo::Metrics::TransferTime::value | ( | ) | const |
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
|
friend |
|
friend |
Operator to serialize the value to a stream.
|
staticconstexpr |
The description for this value.
|
staticconstexpr |
The name of this value.
|
staticconstexpr |
The type of this node.
|
staticconstexpr |
The full path for this value.