#include <rs_frame.hpp>
◆ video_frame()
rs2::video_frame::video_frame |
( |
const frame & |
f | ) |
|
|
inline |
Extends the frame class with additional video related attributes and functions
- Parameters
-
[in] | frame | - existing frame instance |
◆ extract_target_dimensions()
bool rs2::video_frame::extract_target_dimensions |
( |
rs2_calib_target_type |
calib_type, |
|
|
float * |
target_dims, |
|
|
unsigned int |
target_dims_size |
|
) |
| const |
|
inline |
Extract the dimensions on the specific target
- Parameters
-
[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 |
◆ get_bits_per_pixel()
int rs2::video_frame::get_bits_per_pixel |
( |
| ) |
const |
|
inline |
retrieve bits per pixel
- Returns
- number of bits per one pixel
◆ get_bytes_per_pixel()
int rs2::video_frame::get_bytes_per_pixel |
( |
| ) |
const |
|
inline |
retrieve bytes per pixel
- Returns
- number of bytes per one pixel
◆ get_height()
int rs2::video_frame::get_height |
( |
| ) |
const |
|
inline |
returns image height in pixels
- Returns
- frame height in pixels
◆ get_stride_in_bytes()
int rs2::video_frame::get_stride_in_bytes |
( |
| ) |
const |
|
inline |
retrieve frame stride, meaning the actual line width in memory in bytes (not the logical image width)
- Returns
- stride in bytes
◆ get_width()
int rs2::video_frame::get_width |
( |
| ) |
const |
|
inline |
returns image width in pixels
- Returns
- frame width in pixels
The documentation for this class was generated from the following file:
- C:/jenkins_sys_rsbuild/workspace/LRS_doxygen_pipeline/source/include/librealsense2/hpp/rs_frame.hpp