|
RealSense Cross Platform API
RealSense Cross-platform API
|
#include <rs_frame.hpp>
Public Member Functions | |
| video_frame (const frame &f) | |
| int | get_width () const |
| int | get_height () const |
| int | get_stride_in_bytes () const |
| int | get_bits_per_pixel () const |
| int | get_bytes_per_pixel () const |
| bool | extract_target_dimensions (rs2_calib_target_type calib_type, float *target_dims, unsigned int target_dims_size) const |
| Public Member Functions inherited from rs2::frame | |
| 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) |
Additional Inherited Members | |
| Protected Member Functions inherited from rs2::frame | |
| void | add_ref () const |
| void | reset () |
|
inline |
Extends the frame class with additional video related attributes and functions
| [in] | frame | - existing frame instance |
|
inline |
Extract the dimensions on the specific target
| [in] | frame | Left or right camera frame of specified size based on the target type |
| [in] | calib_type | Calibration target type |
| [in] | target_dims_size | Target dimension array size. 4 for RS2_CALIB_TARGET_RECT_GAUSSIAN_DOT_VERTICES and 8 for RS2_CALIB_TARGET_POS_GAUSSIAN_DOT_VERTICES |
| [out] | target_dims | The array to hold the result target dimensions calculated. For type RS2_CALIB_TARGET_RECT_GAUSSIAN_DOT_VERTICES and RS2_CALIB_TARGET_ROI_RECT_GAUSSIAN_DOT_VERTICES, the four rectangle side sizes in pixels with the order of top, bottom, left, and right For type RS2_CALIB_TARGET_POS_GAUSSIAN_DOT_VERTICES, the four vertices coordinates in pixels with the order of top, bottom, left, and right |
| [out] | error | If non-null, receives any error that occurs during this call, otherwise, errors are ignored |
|
inline |
retrieve bits per pixel
|
inline |
retrieve bytes per pixel
|
inline |
returns image height in pixels
|
inline |
retrieve frame stride, meaning the actual line width in memory in bytes (not the logical image width)
|
inline |
returns image width in pixels