RsCommon.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "string.h"
7 #include <librealsense2/rs.hpp>
8 
9 #pragma pack(push, 1)
10 
11 union RsNetworkHeader { //IMPORTANT:: RsNetworkHeader should be alligned to 16 bytes, this enables frame data to start on 16 bit alligned address
12  char maxHeaderSize[128];
13  struct
14  {
16  } data;
17 };
18 
19 union RsMetadataHeader { //IMPORTANT:: RsNetworkHeader should be alligned to 16 bytes, this enables frame data to start on 16 bit alligned address
20  char maxHeaderSize[128];
21  struct
22  {
23  double timestamp;
24  long long frameCounter;
25  int actualFps;
27  } data;
28 };
29 
31 {
34 };
35 
37 {
38  int sensorId;
41 };
42 
43 const std::string STEREO_SENSOR_NAME("Stereo Module");
44 const std::string RGB_SENSOR_NAME("RGB Camera");
45 const std::string L500_SENSOR_NAME("L500 Depth Sensor");
46 const std::string RS_MEDIA_TYPE("RS_VIDEO");
47 const std::string RS_PAYLOAD_FORMAT("RS_FORMAT");
48 const int MAX_WIDTH = 1280;
49 const int MAX_HEIGHT = 720;
50 const int MAX_BPP = 3;
53 const unsigned int SDP_MAX_LINE_LENGHT = 4000;
54 const unsigned int RTP_TIMESTAMP_FREQ = 90000;
55 
56 int getStreamProfileBpp(rs2_format t_format);
57 
58 #pragma pack(pop)
const int MAX_MESSAGE_SIZE
Definition: RsCommon.h:52
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
Definition: rs_option.h:22
uint32_t frameSize
Definition: RsCommon.h:15
rs2_option option
Definition: RsCommon.h:39
struct RsNetworkHeader::@4 data
const std::string RS_MEDIA_TYPE("RS_VIDEO")
const std::string RGB_SENSOR_NAME("RGB Camera")
const int MAX_FRAME_SIZE
Definition: RsCommon.h:51
const unsigned int RTP_TIMESTAMP_FREQ
Definition: RsCommon.h:54
const int MAX_WIDTH
Definition: RsCommon.h:48
char maxHeaderSize[128]
Definition: RsCommon.h:12
GLsizei const GLchar *const * string
RsNetworkHeader networkHeader
Definition: RsCommon.h:32
rs2_timestamp_domain timestampDomain
Definition: RsCommon.h:26
rs2::option_range range
Definition: RsCommon.h:40
unsigned int uint32_t
Definition: stdint.h:80
const std::string STEREO_SENSOR_NAME("Stereo Module")
const unsigned int SDP_MAX_LINE_LENGHT
Definition: RsCommon.h:53
rs2_format
A stream&#39;s format identifies how binary data is encoded within a frame.
Definition: rs_sensor.h:59
const int MAX_BPP
Definition: RsCommon.h:50
const std::string L500_SENSOR_NAME("L500 Depth Sensor")
RsMetadataHeader metadataHeader
Definition: RsCommon.h:33
const std::string RS_PAYLOAD_FORMAT("RS_FORMAT")
const int MAX_HEIGHT
Definition: RsCommon.h:49
double timestamp
Definition: RsCommon.h:23
int getStreamProfileBpp(rs2_format t_format)
Definition: RsCommon.cpp:6
long long frameCounter
Definition: RsCommon.h:24
rs2_timestamp_domain
Specifies the clock in relation to which the frame timestamp was measured.
Definition: rs_frame.h:19


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