NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
NvSIPLTrace.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 #ifndef NVSIPLTRACE_HPP
14 #define NVSIPLTRACE_HPP
15 
23 namespace nvsipl
24 {
25 
34 #if !NV_IS_SAFETY
36 {
37 public:
38 
41  {
42  LevelNone = 0,
47  };
48 
49  using TraceFuncPtr = void(*)(const char*, int);
50 
76  static INvSIPLTrace* GetInstance(void);
77 
107  virtual void SetHook(TraceFuncPtr pfnTraceHook,
108  bool bCallDefaultRenderer) = 0;
109 
140  virtual void SetLevel(TraceLevel eLevel) = 0;
141 
167  virtual void DisableLineInfo(void) = 0;
168 
170  virtual ~INvSIPLTrace() = default;
171 };
172 #endif
173 
174 
176 } // namespace nvsipl
177 
178 #endif // NVSIPLTRACE_HPP
nvsipl::INvSIPLTrace::TraceLevel
TraceLevel
Defines the tracing/logging levels.
Definition: NvSIPLTrace.hpp:40
nvsipl::INvSIPLTrace::LevelNone
@ LevelNone
Definition: NvSIPLTrace.hpp:42
nvsipl::INvSIPLTrace
Defines the public interfaces to control the logging/tracing of SIPL.
Definition: NvSIPLTrace.hpp:35
nvsipl::INvSIPLTrace::DisableLineInfo
virtual void DisableLineInfo(void)=0
Disable line info (FUNCTION : LINE: ) prefix.
nvsipl::INvSIPLTrace::LevelWarning
@ LevelWarning
Indicates logging is turned on for errors.
Definition: NvSIPLTrace.hpp:44
nvsipl::INvSIPLTrace::TraceFuncPtr
void(*)(const char *, int) TraceFuncPtr
Definition: NvSIPLTrace.hpp:49
nvsipl::INvSIPLTrace::LevelError
@ LevelError
Indicates logging is turned off.
Definition: NvSIPLTrace.hpp:43
nvsipl::INvSIPLTrace::SetLevel
virtual void SetLevel(TraceLevel eLevel)=0
Sets the log level.
void
typedef void(WFD_APIENTRY PFNWFDBINDSOURCETOPIPELINEWITHTIMESTAMPNV)(const WFDDevice device
nvsipl::INvSIPLTrace::GetInstance
static INvSIPLTrace * GetInstance(void)
Gets a handle to INvSIPLTrace instance.
nvsipl::INvSIPLTrace::LevelInfo
@ LevelInfo
Indicates logging is turned on for critical warnings.
Definition: NvSIPLTrace.hpp:45
nvsipl::INvSIPLTrace::~INvSIPLTrace
virtual ~INvSIPLTrace()=default
Default destructor.
nvsipl::INvSIPLTrace::SetHook
virtual void SetHook(TraceFuncPtr pfnTraceHook, bool bCallDefaultRenderer)=0
Sets a callable trace hook.
nvsipl
Contains the classes and variables for implementation of SIPL.
Definition: NvSIPLCamera.hpp:44
nvsipl::INvSIPLTrace::LevelDebug
@ LevelDebug
Indicates logging is turned on for information level messages.
Definition: NvSIPLTrace.hpp:46