#include <Frame.hpp>
|
std::unique_ptr< FrameImpl > | impl_ |
|
Definition at line 42 of file Frame.hpp.
◆ Frame() [1/2]
ob::Frame::Frame |
( |
std::unique_ptr< FrameImpl > |
impl | ) |
|
|
explicit |
◆ Frame() [2/2]
ob::Frame::Frame |
( |
Frame & |
frame | ) |
|
◆ ~Frame()
virtual ob::Frame::~Frame |
( |
| ) |
|
|
virtualnoexcept |
◆ type()
Get the type of frame.
- Returns
- OBFrameType The type of frame.
◆ format()
Get the format of the frame.
- Returns
- OBFormat The format of the frame.
◆ index()
virtual uint64_t ob::Frame::index |
( |
| ) |
|
|
virtual |
Get the sequence number of the frame.
- Returns
- uint64_t The sequence number of the frame.
◆ data()
virtual void * ob::Frame::data |
( |
| ) |
|
|
virtual |
Get the frame data.
- Returns
- void* The frame data.
◆ dataSize()
virtual uint32_t ob::Frame::dataSize |
( |
| ) |
|
|
virtual |
Get the size of the frame data.
- Returns
- uint32_t The size of the frame data. For point cloud data, this returns the number of bytes occupied by all point sets. To find the number of points, divide the dataSize by the structure size of the corresponding point type.
◆ timeStamp()
uint64_t ob::Frame::timeStamp |
( |
| ) |
|
Get the hardware timestamp of the frame in milliseconds.
The hardware timestamp is the time point when the frame was captured by the device, on device clock domain.
- Returns
- uint64_t The hardware timestamp of the frame in milliseconds.
◆ timeStampUs()
uint64_t ob::Frame::timeStampUs |
( |
| ) |
|
Get the hardware timestamp of the frame in microseconds.
The hardware timestamp is the time point when the frame was captured by the device, on device clock domain.
- Returns
- uint64_t The hardware timestamp of the frame in microseconds.
◆ systemTimeStamp()
uint64_t ob::Frame::systemTimeStamp |
( |
| ) |
|
Get the system timestamp of the frame in milliseconds.
The system timestamp is the time point when the frame was received by the host, on host clock domain.
- Returns
- uint64_t The system timestamp of the frame in milliseconds.
◆ systemTimeStampUs()
uint64_t ob::Frame::systemTimeStampUs |
( |
| ) |
|
Get the system timestamp of the frame in microseconds.
The system timestamp is the time point when the frame was received by the host, on host clock domain.
- Returns
- uint64_t The system timestamp of the frame in microseconds.
◆ globalTimeStampUs()
uint64_t ob::Frame::globalTimeStampUs |
( |
| ) |
|
Get the global timestamp of the frame in microseconds.
The global timestamp is the time point when the frame was was captured by the device, and has been converted to the host clock domain. The conversion process base on the device timestamp and can eliminate the timer drift of the device
- Attention
- Only some devices support getting the global timestamp. If the device does not support it, this function will return 0. Check the device support status by Device::isGlobalTimestampSupported() function.
- Returns
- uint64_t The global timestamp of the frame in microseconds.
◆ metadata()
void * ob::Frame::metadata |
( |
| ) |
|
Get the metadata of the frame.
- Returns
- void* The metadata of the frame.
◆ metadataSize()
uint32_t ob::Frame::metadataSize |
( |
| ) |
|
Get the size of the metadata of the frame.
- Returns
- uint32_t The size of the metadata of the frame.
◆ hasMetadata()
Check if the frame object has metadata of a given type.
- Parameters
-
- Returns
- bool The result.
◆ getMetadataValue()
Get the metadata value.
- Parameters
-
- Returns
- int64_t The metadata value.
◆ getStreamProfile()
get StreamProfile of the frame
- Returns
- std::shared_ptr<StreamProfile> The StreamProfile of the frame, may return nullptr if the frame is not captured from a stream.
◆ getSensor()
std::shared_ptr< Sensor > ob::Frame::getSensor |
( |
| ) |
|
get owner sensor of the frame
- Returns
- std::shared_ptr<Sensor> The owner sensor of the frame, return nullptr if the frame is not owned by any sensor or the sensor is destroyed
◆ getDevice()
std::shared_ptr< Device > ob::Frame::getDevice |
( |
| ) |
|
get owner device of the frame
- Returns
- std::shared_ptr<Device> The owner device of the frame, return nullptr if the frame is not owned by any device or the device is destroyed
◆ is()
Check if the runtime type of the frame object is compatible with a given type.
- Template Parameters
-
- Returns
- bool The result.
Definition at line 512 of file Frame.hpp.
◆ as()
template<typename T >
std::shared_ptr< T > ob::Frame::as |
( |
| ) |
|
|
inline |
Convert the frame object to a target type.
- Template Parameters
-
- Returns
- std::shared_ptr<T> The result. If it cannot be converted, an exception will be thrown.
Definition at line 198 of file Frame.hpp.
◆ Filter
◆ Recorder
◆ FrameHelper
◆ CoordinateTransformHelper
◆ impl_
std::unique_ptr<FrameImpl> ob::Frame::impl_ |
|
protected |
The documentation for this class was generated from the following file:
- E:/Projects/Jenkins/workspace/OrbbecSDK/libobsensor/include/libobsensor/hpp/Frame.hpp