Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
|
#include <rs_processing.hpp>
Public Member Functions | |
frame | allocate_video_frame (const stream_profile &profile, const frame &original, int new_bpp=0, int new_width=0, int new_height=0, int new_stride=0, rs2_extension frame_type=RS2_EXTENSION_VIDEO_FRAME) const |
frame | allocate_motion_frame (const stream_profile &profile, const frame &original, rs2_extension frame_type=RS2_EXTENSION_MOTION_FRAME) const |
frame | allocate_points (const stream_profile &profile, const frame &original) const |
frame | allocate_composite_frame (std::vector< frame > frames) const |
void | frame_ready (frame result) const |
Public Attributes | |
rs2_source * | _source |
Friends | |
template<class T > | |
class | frame_processor_callback |
The source used to generate frames, which is usually done by the low level driver for each sensor. frame_source is one of the parameters of processing_block's callback function, which can be used to re-generate the frame and via frame_ready invoke another callback function to notify application frame is ready. Please refer to "video_processing_thread" code snippet in rs-measure.cpp for a detailed usage example.
Allocate composite frame with given params
[in] | frames | Frame vecotor used to create composite frame, the size of composite frame will be the same as vector size. |
|
inline |
Allocate a new motion frame with given params
[in] | profile | Stream profile going to allocate. |
[in] | original | Original frame. |
[in] | frame_type | Which frame type are going to create. |
|
inline |
|
inline |
Allocate a new video frame with given params
[in] | profile | Stream profile going to allocate. |
[in] | original | Original frame, if new_bpp, new_width, new_height or new_stride is zero, newly created frame will base on original frame's metadata to allocate new frame. If frame_type is RS2_EXTENSION_DEPTH_FRAME, the original of the returned frame will be set to it. |
[in] | new_bpp | Frame bit per pixel to create. |
[in] | new_width | Frame width to create. |
[in] | new_height | Frame height to create. |
[in] | new_stride | Frame stride to create. |
[in] | frame_type | Which frame type are going to create. |
|
inline |
Invoke the callback funtion informing the frame is ready.
[in] | frames | frame to send to callback function. |
|
friend |
rs2_source* rs2::frame_source::_source |