Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::platform::uvc_parser Class Reference

#include <uvc-parser.h>

Public Member Functions

uint16_t get_bcd_uvc ()
 
int get_clock_frequency ()
 
const std::map< int, std::vector< uvc_format_desc_t > > & get_formats ()
 
uvc_input_terminal_t get_input_terminal ()
 
uvc_processing_unit_t get_processing_unit ()
 
 uvc_parser (const rs_usb_device &usb_device, const uvc_device_info &info)
 
virtual ~uvc_parser ()
 

Private Member Functions

void parse_video_control (const std::vector< uint8_t > &block)
 
void parse_video_control_extension_unit (const std::vector< uint8_t > &block)
 
void parse_video_control_header (const std::vector< uint8_t > &block)
 
void parse_video_control_input_terminal (const std::vector< uint8_t > &block)
 
void parse_video_control_processing_unit (const std::vector< uint8_t > &block)
 
void parse_video_control_selector_unit (const std::vector< uint8_t > &block)
 
void parse_video_stream_format (int interface_number, int index)
 
void parse_video_stream_format_mjpeg (const std::vector< uint8_t > &block, uvc_format_desc_t &format)
 
void parse_video_stream_format_uncompressed (const std::vector< uint8_t > &block, uvc_format_desc_t &format)
 
void parse_video_stream_frame (int interface_number, int index)
 
void parse_video_stream_frame_format (const std::vector< uint8_t > &block, uvc_format_desc_t &format)
 
void parse_video_stream_frame_frame (const std::vector< uint8_t > &block, uvc_format_desc_t &format)
 
void parse_video_stream_frame_uncompressed (const std::vector< uint8_t > &block, uvc_format_desc_t &format)
 
void parse_video_stream_input_header (const std::vector< uint8_t > &block)
 
void scan_control (int interface_number)
 
void scan_streaming (int interface_number)
 

Private Attributes

uint16_t _bcd_uvc
 
int _clock_frequency
 
uint8_t _endpoint_address
 
uvc_extension_unit_t _extension_unit
 
std::map< int, std::vector< uvc_format_desc_t > > _formats
 
const uvc_device_info _info
 
uvc_input_terminal_t _input_terminal
 
uvc_processing_unit_t _processing_unit
 
uvc_selector_unit_t _selector_unit
 
uint8_t _terminal_link
 
rs_usb_device _usb_device = nullptr
 

Detailed Description

Definition at line 22 of file uvc-parser.h.

Constructor & Destructor Documentation

librealsense::platform::uvc_parser::uvc_parser ( const rs_usb_device usb_device,
const uvc_device_info info 
)

Definition at line 23 of file uvc-parser.cpp.

librealsense::platform::uvc_parser::~uvc_parser ( )
virtual

Definition at line 29 of file uvc-parser.cpp.

Member Function Documentation

uint16_t librealsense::platform::uvc_parser::get_bcd_uvc ( )
inline

Definition at line 30 of file uvc-parser.h.

int librealsense::platform::uvc_parser::get_clock_frequency ( )
inline

Definition at line 31 of file uvc-parser.h.

const std::map<int,std::vector<uvc_format_desc_t> >& librealsense::platform::uvc_parser::get_formats ( )
inline

Definition at line 32 of file uvc-parser.h.

uvc_input_terminal_t librealsense::platform::uvc_parser::get_input_terminal ( )
inline

Definition at line 29 of file uvc-parser.h.

uvc_processing_unit_t librealsense::platform::uvc_parser::get_processing_unit ( )
inline

Definition at line 28 of file uvc-parser.h.

void librealsense::platform::uvc_parser::parse_video_control ( const std::vector< uint8_t > &  block)
private

Definition at line 312 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_control_extension_unit ( const std::vector< uint8_t > &  block)
private

Definition at line 296 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_control_header ( const std::vector< uint8_t > &  block)
private

Definition at line 242 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_control_input_terminal ( const std::vector< uint8_t > &  block)
private

Definition at line 265 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_control_processing_unit ( const std::vector< uint8_t > &  block)
private

Definition at line 287 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_control_selector_unit ( const std::vector< uint8_t > &  block)
private

Definition at line 282 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_stream_format ( int  interface_number,
int  index 
)
private

Definition at line 147 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_stream_format_mjpeg ( const std::vector< uint8_t > &  block,
uvc_format_desc_t format 
)
private

Definition at line 55 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_stream_format_uncompressed ( const std::vector< uint8_t > &  block,
uvc_format_desc_t format 
)
private

Definition at line 40 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_stream_frame ( int  interface_number,
int  index 
)
private

Definition at line 175 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_stream_frame_format ( const std::vector< uint8_t > &  block,
uvc_format_desc_t format 
)
private

Definition at line 69 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_stream_frame_frame ( const std::vector< uint8_t > &  block,
uvc_format_desc_t format 
)
private

Definition at line 117 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_stream_frame_uncompressed ( const std::vector< uint8_t > &  block,
uvc_format_desc_t format 
)
private

Definition at line 84 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::parse_video_stream_input_header ( const std::vector< uint8_t > &  block)
private

Definition at line 34 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::scan_control ( int  interface_number)
private

Definition at line 365 of file uvc-parser.cpp.

void librealsense::platform::uvc_parser::scan_streaming ( int  interface_number)
private
Todo:
handle JPEG and maybe still frames or even DV...

Definition at line 196 of file uvc-parser.cpp.

Member Data Documentation

uint16_t librealsense::platform::uvc_parser::_bcd_uvc
private

Definition at line 63 of file uvc-parser.h.

int librealsense::platform::uvc_parser::_clock_frequency
private

Definition at line 64 of file uvc-parser.h.

uint8_t librealsense::platform::uvc_parser::_endpoint_address
private

Definition at line 65 of file uvc-parser.h.

uvc_extension_unit_t librealsense::platform::uvc_parser::_extension_unit
private

Definition at line 70 of file uvc-parser.h.

std::map<int,std::vector<uvc_format_desc_t> > librealsense::platform::uvc_parser::_formats
private

Definition at line 72 of file uvc-parser.h.

const uvc_device_info librealsense::platform::uvc_parser::_info
private

Definition at line 58 of file uvc-parser.h.

uvc_input_terminal_t librealsense::platform::uvc_parser::_input_terminal
private

Definition at line 67 of file uvc-parser.h.

uvc_processing_unit_t librealsense::platform::uvc_parser::_processing_unit
private

Definition at line 69 of file uvc-parser.h.

uvc_selector_unit_t librealsense::platform::uvc_parser::_selector_unit
private

Definition at line 68 of file uvc-parser.h.

uint8_t librealsense::platform::uvc_parser::_terminal_link
private

Definition at line 66 of file uvc-parser.h.

rs_usb_device librealsense::platform::uvc_parser::_usb_device = nullptr
private

Definition at line 60 of file uvc-parser.h.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:39