rs_rtp_callback.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #include "rs_rtp_callback.hh"
5 
6 #include <iostream>
7 
8 void rs_rtp_callback::on_frame(unsigned char* buffer, ssize_t size, struct timeval presentationTime)
9 {
10  m_rtp_stream.get()->insert_frame(new Raw_Frame((char*)buffer, (int)size, presentationTime));
11 }
12 
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


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