Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
common
metadata-helper.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
namespace
rs2
6
{
7
// Helper class that is responsible for enabling per-frame metadata on different platforms
8
// Currently implemented for Windows
9
class
metadata_helper
10
{
11
public
:
12
static
metadata_helper
&
instance
();
13
14
// Check if metadata is enabled using Physical Port ID
15
// (can be retrieved with device::get_info(RS2_CAMERA_INFO_PHYSICAL_PORT))
16
// throws runtime_error in case of errors
17
virtual
bool
is_enabled
(
std::string
id
)
const
{
return
true
; }
18
19
// Enable metadata for all connected devices
20
// throws runtime_error in case of errors
21
virtual
void
enable_metadata
() { }
22
23
static
bool
can_support_metadata
(
const
std::string
& product)
24
{
25
return
product ==
"D400"
|| product ==
"SR300"
|| product ==
"L500"
;
26
}
27
28
// This is the command-line parameter that gets passed to another process (running as admin) in order to enable metadata -- see WinMain
29
static
std::string
get_command_line_param
() {
return
"--enable_metadata"
; }
30
};
31
}
rs2::metadata_helper::get_command_line_param
static std::string get_command_line_param()
Definition:
metadata-helper.h:29
rs2::metadata_helper::can_support_metadata
static bool can_support_metadata(const std::string &product)
Definition:
metadata-helper.h:23
rs2
Definition:
cah-model.h:10
rs2::metadata_helper::instance
static metadata_helper & instance()
Definition:
metadata-helper.cpp:352
string
GLsizei const GLchar *const * string
Definition:
glad/glad/glad.h:2862
rs2::metadata_helper::enable_metadata
virtual void enable_metadata()
Definition:
metadata-helper.h:21
rs2::metadata_helper::is_enabled
virtual bool is_enabled(std::string id) const
Definition:
metadata-helper.h:17
rs2::metadata_helper
Definition:
metadata-helper.h:9
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:21