27 : _data( const_cast<
void * >( f.get_data() ))
28 , _nc( f.get_width() )
29 , _nr( f.get_height() )
34 throw std::runtime_error(
"unsupported Frame format" );
40 size_t size()
const {
return static_cast<size_t>(_nr *
_nc); }
46 long width_step()
const {
return _nc *
sizeof( pixel_type ); }
50 return reinterpret_cast< const pixel_type *
>( _data +
width_step() *
row );
97 template <
typename T,
int RS>
103 template <
typename T,
int RS>
105 template <
typename T,
int RS>
108 template <
typename T,
int RS>
116 template <
typename T,
int RS>
124 template <
typename T,
int RS>
rs_frame_image(rs2::video_frame const &f)
const void * image_data(const rs_frame_image< T, RS > &img)
GLenum GLenum GLsizei void * row
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
rs_frame_image & operator=(const rs_frame_image &)=default
stream_profile get_profile() const
long num_rows(const rs_frame_image< T, RS > &img)
long num_columns(const rs_frame_image< T, RS > &img)
void const * data() const
pixel_type const * operator[](unsigned const row) const
rs2_format format() const