rs_rtp_callback.hh
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 "rs_rtp_stream.hh"
7 
8 #include <memory>
9 #include <mutex>
10 #include <queue>
11 #include <time.h>
12 
14 {
15 private:
16  std::shared_ptr<rs_rtp_stream> m_rtp_stream;
17 
19 
21 
22 public:
23  rs_rtp_callback(std::shared_ptr<rs_rtp_stream> rtp_stream)
24  {
25  m_rtp_stream = rtp_stream;
26  m_stream_uid = m_rtp_stream.get()->m_rs_stream.uid;
27  }
28 
30 
31  void on_frame(unsigned char* buffer, ssize_t size, struct timeval presentationTime);
32 
34  {
35  return arrive_frames_counter;
36  }
37 };
GLenum GLfloat * buffer
void on_frame(unsigned char *buffer, ssize_t size, struct timeval presentationTime)
std::shared_ptr< rs_rtp_stream > m_rtp_stream
GLsizeiptr size
rs_rtp_callback(std::shared_ptr< rs_rtp_stream > rtp_stream)


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