streaming.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2021 Intel Corporation. All Rights Reserved.
3 
4 #include "streaming.h"
5 #include "archive.h"
6 
7 namespace librealsense
8 {
10  {
11  return frame_to_string(*f.frame);
12  }
13 
15  {
16  std::ostringstream s;
17  auto composite = dynamic_cast<const composite_frame *>(&f);
18  if (composite)
19  {
20  s << "[";
21  for (int i = 0; i < composite->get_embedded_frames_count(); i++)
22  {
23  s << *composite->get_frame(i);
24  }
25  s << "]";
26  }
27  else
28  {
29  s << "[" << f.get_stream()->get_stream_type();
30  s << " " << f.get_stream()->get_unique_id();
31  s << " " << f.get_frame_number();
32  s << " " << std::fixed << (double)f.get_frame_timestamp();
33  s << "]";
34  }
35  return s.str();
36  }
37 }
38 
frame_interface * get_frame(int i) const
Definition: archive.h:201
GLdouble s
GLsizei const GLchar *const * string
GLdouble f
std::string frame_to_string(const frame_interface &f)
Definition: streaming.cpp:14
virtual rs2_time_t get_frame_timestamp() const =0
virtual std::shared_ptr< stream_profile_interface > get_stream() const =0
frame_interface * frame
Definition: streaming.h:126
std::string frame_holder_to_string(const frame_holder &f)
Definition: streaming.cpp:9
int i
virtual unsigned long long get_frame_number() const =0


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