|
RealSense Cross Platform API
RealSense Cross-platform API
|
#include <rs_frame.hpp>
Public Member Functions | |
| frame () | |
| frame (rs2_frame *ref) | |
| frame (frame &&other) noexcept | |
| frame & | operator= (frame other) |
| frame (const frame &other) | |
| void | swap (frame &other) |
| ~frame () | |
| void | keep () |
| operator bool () const | |
| rs2_sensor * | get_sensor () |
| double | get_timestamp () const |
| rs2_timestamp_domain | get_frame_timestamp_domain () const |
| rs2_metadata_type | get_frame_metadata (rs2_frame_metadata_value frame_metadata) const |
| bool | supports_frame_metadata (rs2_frame_metadata_value frame_metadata) const |
| unsigned long long | get_frame_number () const |
| const int | get_data_size () const |
| const void * | get_data () const |
| stream_profile | get_profile () const |
| template<class T> | |
| bool | is () const |
| template<class T> | |
| T | as () const |
| rs2_frame * | get () const |
| operator rs2_frame * () | |
| frame | apply_filter (filter_interface &filter) |
Protected Member Functions | |
| void | add_ref () const |
| void | reset () |
Friends | |
| class | rs2::frame_source |
| class | rs2::frame_queue |
| class | rs2::syncer |
| class | rs2::processing_block |
| class | rs2::pointcloud |
| class | rs2::points |
|
inline |
Base class for multiple frame extensions
|
inline |
Base class for multiple frame extensions with internal frame handle
| [in] | rs2_frame | frame_ref - internal frame instance |
|
inlinenoexcept |
Change the internal frame handle to the one in parameter, then put the other frame internal frame handle to nullptr
| [in] | frame | other - another frame instance to be pointed to |
|
inline |
Set the internal frame handle to the one in parameter, the function create additional reference if internal reference exist.
| [in] | frame | other - another frame instance to be pointed to |
|
inline |
releases the frame handle
|
inlineprotected |
add additional reference to a frame without duplicating frame data
| [out] | result | new frame reference, release by destructor |
|
inline |
|
inline |
Template function, cast current instance as the type of another class
|
inline |
Retrieve back the internal frame handle
|
inline |
retrieve data from frame handle
|
inline |
retrieve data size from frame handle
|
inline |
retrieve the current value of a single frame_metadata
| [in] | frame_metadata | the frame_metadata whose value should be retrieved |
|
inline |
retrieve frame number (from frame handle)
|
inline |
retrieve the timestamp domain
|
inline |
retrieve stream profile from frame handle
|
inline |
|
inline |
retrieve the time at which the frame was captured During the frame's lifetime it receives timestamps both at the device and host levels. The different timestamps are gathered and managed under the frame's Metadata attributes. Chronologically the list of timestamps comprises of: SENSOR_TIMESTAMP - Device clock. For video sensors designates the middle of exposure. Requires metadata support. FRAME_TIMESTAMP - Device clock. Stamped at the beginning of frame readout and transfer. Requires metadata support. BACKEND_TIMESTAMP - Host (EPOCH) clock in Kernel space. Frame transfer from USB Controller to the USB Driver. TIME_OF_ARRIVAL - Host (EPOCH) clock in User space. Frame transfer from the USB Driver to Librealsense.
During runtime the SDK dynamically selects the most correct representaion, based on both device and host capabilities: In case the frame metadata is not configured:
|
inline |
Template function, checking if current instance is the type of another class
|
inline |
keep the frame, otherwise if no refernce to the frame, the frame will be released.
|
inline |
Parenthesis operator check if internal frame handle is valid.
|
inlineexplicit |
Change the internal frame handle to the one in parameter, the function exchange the internal frame handle.
| [in] | frame | other - another frame instance to be pointed to |
|
inlineprotected |
|
inline |
determine if the device allows a specific metadata to be queried
| [in] | frame_metadata | the frame_metadata to check for support |
|
inline |
Swap the internal frame handle with the one in parameter
| [in] | frame | other - another frame instance to be swaped |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |