#include "types.h"
#include <vector>
#include <unordered_map>
Go to the source code of this file.
Classes | |
struct | backend_frame |
struct | uvc_device_descriptor |
struct | uvc_extension_unit |
struct | uvc_format |
struct | uvc_format_desc |
struct | uvc_frame_desc |
struct | uvc_input_terminal |
struct | uvc_processing_unit |
struct | uvc_selector_unit |
struct | uvc_stream_ctrl |
Macros | |
#define | B_TO_BYTE(p) ((int8_t)(p)[0]) |
#define | DW_TO_INT(p) |
#define | INT_TO_DW(i, p) |
#define | QUAD_TO_QW(i, p) |
#define | QW_TO_QUAD(p) |
#define | SHORT_TO_SW(s, p) |
#define | SW_TO_SHORT(p) |
Typedefs | |
typedef std::unique_ptr< backend_frame, cleanup_ptr > | backend_frame_ptr |
typedef librealsense::small_heap< backend_frame, 10 > | backend_frames_archive |
typedef single_consumer_queue< backend_frame_ptr > | backend_frames_queue |
typedef void(* | cleanup_ptr) (backend_frame *) |
typedef struct uvc_device_descriptor | uvc_device_descriptor_t |
typedef struct uvc_extension_unit | uvc_extension_unit_t |
typedef struct uvc_format_desc | uvc_format_desc_t |
typedef struct uvc_format | uvc_format_t |
typedef struct uvc_frame_desc | uvc_frame_desc_t |
typedef struct uvc_input_terminal | uvc_input_terminal_t |
typedef struct uvc_processing_unit | uvc_processing_unit_t |
typedef struct uvc_selector_unit | uvc_selector_unit_t |
typedef struct uvc_stream_ctrl | uvc_stream_ctrl_t |
Functions | |
template<typename T > | |
T | as (const std::vector< uint8_t > &data, size_t index) |
Variables | |
const std::unordered_map< uint32_t, uint32_t > | fourcc_map |
Converts an unaligned one-byte integer into an int8
Definition at line 12 of file uvc-types.h.
#define DW_TO_INT | ( | p | ) |
Converts an unaligned four-byte little-endian integer into an int32
Definition at line 19 of file uvc-types.h.
Converts an int32 into an unaligned four-byte little-endian integer
Definition at line 41 of file uvc-types.h.
Converts an int64 into an unaligned eight-byte little-endian integer
Definition at line 48 of file uvc-types.h.
#define QW_TO_QUAD | ( | p | ) |
Converts an unaligned eight-byte little-endian integer into an int64
Definition at line 25 of file uvc-types.h.
Converts an int16 into an unaligned two-byte little-endian integer
Definition at line 36 of file uvc-types.h.
#define SW_TO_SHORT | ( | p | ) |
Converts an unaligned two-byte little-endian integer into an int16
Definition at line 15 of file uvc-types.h.
typedef std::unique_ptr<backend_frame, cleanup_ptr> backend_frame_ptr |
Definition at line 440 of file uvc-types.h.
typedef librealsense::small_heap<backend_frame, 10> backend_frames_archive |
Definition at line 417 of file uvc-types.h.
Definition at line 441 of file uvc-types.h.
typedef void(* cleanup_ptr) (backend_frame *) |
Definition at line 437 of file uvc-types.h.
typedef struct uvc_device_descriptor uvc_device_descriptor_t |
typedef struct uvc_extension_unit uvc_extension_unit_t |
Custom processing or camera-control functions
typedef struct uvc_format_desc uvc_format_desc_t |
Format descriptor
A "format" determines a stream's image type (e.g., raw YUYV or JPEG) and includes many "frame" configurations.
typedef struct uvc_format uvc_format_t |
typedef struct uvc_frame_desc uvc_frame_desc_t |
typedef struct uvc_input_terminal uvc_input_terminal_t |
typedef struct uvc_processing_unit uvc_processing_unit_t |
Represents post-capture processing functions
typedef struct uvc_selector_unit uvc_selector_unit_t |
Represents selector unit to connect other units
typedef struct uvc_stream_ctrl uvc_stream_ctrl_t |
enum uvc_ct_ctrl_selector |
Camera terminal control selector (A.9.4)
Definition at line 145 of file uvc-types.h.
enum uvc_et_type |
External terminal type (B.4)
Enumerator | |
---|---|
UVC_EXTERNAL_VENDOR_SPECIFIC | |
UVC_COMPOSITE_CONNECTOR | |
UVC_SVIDEO_CONNECTOR | |
UVC_COMPONENT_CONNECTOR |
Definition at line 214 of file uvc-types.h.
enum uvc_frame_format |
Color coding of stream, transport-independent
Definition at line 71 of file uvc-types.h.
enum uvc_it_type |
Input terminal type (B.2)
Enumerator | |
---|---|
UVC_ITT_VENDOR_SPECIFIC | |
UVC_ITT_CAMERA | |
UVC_ITT_MEDIA_TRANSPORT_INPUT |
Definition at line 200 of file uvc-types.h.
enum uvc_ot_type |
Output terminal type (B.3)
Enumerator | |
---|---|
UVC_OTT_VENDOR_SPECIFIC | |
UVC_OTT_DISPLAY | |
UVC_OTT_MEDIA_TRANSPORT_OUTPUT |
Definition at line 207 of file uvc-types.h.
enum uvc_pu_ctrl_selector |
Processing unit control selector (A.9.5)
Definition at line 170 of file uvc-types.h.
enum uvc_req_code |
UVC request code (A.8)
Enumerator | |
---|---|
UVC_RC_UNDEFINED | |
UVC_SET_CUR | |
UVC_GET_CUR | |
UVC_GET_MIN | |
UVC_GET_MAX | |
UVC_GET_RES | |
UVC_GET_LEN | |
UVC_GET_INFO | |
UVC_GET_DEF | |
UVC_REQ_TYPE_GET | |
UVC_REQ_TYPE_SET |
Definition at line 123 of file uvc-types.h.
enum uvc_status_attribute |
Enumerator | |
---|---|
UVC_STATUS_ATTRIBUTE_VALUE_CHANGE | |
UVC_STATUS_ATTRIBUTE_INFO_CHANGE | |
UVC_STATUS_ATTRIBUTE_FAILURE_CHANGE | |
UVC_STATUS_ATTRIBUTE_UNKNOWN |
Definition at line 227 of file uvc-types.h.
enum uvc_status_class |
Enumerator | |
---|---|
UVC_STATUS_CLASS_CONTROL | |
UVC_STATUS_CLASS_CONTROL_CAMERA | |
UVC_STATUS_CLASS_CONTROL_PROCESSING |
Definition at line 221 of file uvc-types.h.
enum uvc_term_type |
USB terminal type (B.1)
Enumerator | |
---|---|
UVC_TT_VENDOR_SPECIFIC | |
UVC_TT_STREAMING |
Definition at line 194 of file uvc-types.h.
enum uvc_vc_ctrl_selector |
VideoControl interface control selector (A.9.1)
Enumerator | |
---|---|
UVC_VC_CONTROL_UNDEFINED | |
UVC_VC_VIDEO_POWER_MODE_CONTROL | |
UVC_VC_REQUEST_ERROR_CODE_CONTROL |
Definition at line 138 of file uvc-types.h.
enum uvc_vc_desc_subtype |
VideoControl interface descriptor subtype (A.5)
Enumerator | |
---|---|
UVC_VC_DESCRIPTOR_UNDEFINED | |
UVC_VC_HEADER | |
UVC_VC_INPUT_TERMINAL | |
UVC_VC_OUTPUT_TERMINAL | |
UVC_VC_SELECTOR_UNIT | |
UVC_VC_PROCESSING_UNIT | |
UVC_VC_EXTENSION_UNIT |
Definition at line 94 of file uvc-types.h.
enum uvc_vs_ctrl_selector |
Definition at line 234 of file uvc-types.h.
enum uvc_vs_desc_subtype |
VideoStreaming interface descriptor subtype (A.6)
Definition at line 105 of file uvc-types.h.
Definition at line 407 of file uvc-types.h.
Definition at line 59 of file uvc-types.h.