Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
Public Member Functions | List of all members
rs2::video_frame Class Reference

#include <rs_frame.hpp>

Inheritance diagram for rs2::video_frame:
rs2::frame rs2::depth_frame rs2::disparity_frame

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
 
- Public Member Functions inherited from rs2::frame
 frame ()
 
 frame (rs2_frame *frame_ref)
 
 frame (frame &&other) noexcept
 
frameoperator= (frame other)
 
 frame (const frame &other)
 
void swap (frame &other)
 
 ~frame ()
 
void keep ()
 
 operator bool () const
 
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 void * get_data () const
 
stream_profile get_profile () const
 
template<class T >
bool is () const
 
template<class T >
as () const
 
rs2_frameget () const
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::frame
void add_ref () const
 
void reset ()
 

Constructor & Destructor Documentation

◆ video_frame()

rs2::video_frame::video_frame ( const frame f)
inline

Member Function Documentation

◆ 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

◆ 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: