NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
NvSIPLClient.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2026 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 NVSIPLCLIENT_HPP
14 #define NVSIPLCLIENT_HPP
15 
16 #include "NvSIPLCommon.hpp"
17 #include "NvSIPLISPStructs.hpp"
18 
19 #include "NvSIPLCDICommon.h"
20 
21 #include "nvscisync.h"
22 #include "nvscistream.h"
23 
24 #include <cstdint>
25 #include <string>
26 #include <memory>
27 
42 namespace nvsipl
43 {
55 {
56 public:
63  {
65  uint64_t frameCaptureTSC;
69  uint32_t numExposures;
90  int8_t errorFlag;
93 
96 
99  };
100 
108  {
114  uint8_t *embeddedBufTop;
117  };
118 
125  {
126  public:
160  virtual void AddRef() = 0;
161 
195  virtual SIPLStatus Release() = 0;
196 
240  virtual SIPLStatus AddNvSciSyncPrefence(NvSciSyncFence const &prefence) = 0;
241 
280  virtual SIPLStatus GetSOFNvSciSyncFence(NvSciSyncFence *const sofFence) = 0;
281 
318  virtual SIPLStatus GetEOFNvSciSyncFence(NvSciSyncFence *const postfence) = 0;
319 
321  virtual ~INvSIPLBuffer() = default;
322 
324  INvSIPLBuffer(INvSIPLBuffer& other) = delete;
325 
327  INvSIPLBuffer& operator=(INvSIPLBuffer& other) & = delete;
328 
330  INvSIPLBuffer(INvSIPLBuffer&& other) = delete;
331 
333  INvSIPLBuffer& operator=(INvSIPLBuffer&& other) & = delete;
334 
335  protected:
337  INvSIPLBuffer() = default;
338 
339  };
340 
346  {
347  public:
376  virtual NvSciBufObj GetNvSciBufImage() const = 0;
377 
406  virtual ImageMetaData const& GetImageData() const = 0;
407 
437  virtual ImageEmbeddedData const& GetImageEmbeddedData() const = 0;
438 
440  ~INvSIPLNvMBuffer() override = default;
441 
443  INvSIPLNvMBuffer(INvSIPLNvMBuffer& other) = delete;
444 
446  INvSIPLNvMBuffer& operator=(INvSIPLNvMBuffer& other) & = delete;
447 
449  INvSIPLNvMBuffer(INvSIPLNvMBuffer&& other) = delete;
450 
452  INvSIPLNvMBuffer& operator=(INvSIPLNvMBuffer&& other) & = delete;
453 
454  protected:
456  INvSIPLNvMBuffer() = default;
457 
458  };
459 
466  {
472  enum class OutputType : std::uint8_t
473  {
474  ICP,
475  ISP0,
476  ISP1,
477  ISP2,
478  };
479  };
480 
482  virtual ~INvSIPLClient() = default;
483 
485  INvSIPLClient(INvSIPLClient& other) = delete;
486 
488  INvSIPLClient& operator=(INvSIPLClient& other) & = delete;
489 
491  INvSIPLClient(INvSIPLClient&& other) = delete;
492 
494  INvSIPLClient& operator=(INvSIPLClient&& other) & = delete;
495 
496 protected:
498  INvSIPLClient() = default;
499 
500 };
501 
504 } // namespace nvsipl
505 
506 #endif // NVSIPLCLIENT_HPP
DevBlkCDIFrameTimestamp
Holds the sensor frame timestamp structure.
Definition: NvSIPLCDICommon.h:499
nvsipl::INvSIPLClient::ImageMetaData::frameTimestampInfo
DevBlkCDIFrameTimestamp frameTimestampInfo
Holds parsed embedded data frame timestamp info for the captured frame.
Definition: NvSIPLClient.hpp:87
nvsipl::NvSiplControlInfo
Defines the control info.
Definition: NvSIPLISPStructs.hpp:66
nvsipl::SIPLStatus
SIPLStatus
Defines the status codes returned by functions in NvSIPL modules.
Definition: NvSIPLCommon.hpp:168
nvsipl::INvSIPLClient::ImageEmbeddedData::embeddedBufBottomSize
uint32_t embeddedBufBottomSize
Holds size of the bottom embedded data.
Definition: NvSIPLClient.hpp:112
nvsipl::INvSIPLClient::INvSIPLNvMBuffer::INvSIPLNvMBuffer
INvSIPLNvMBuffer()=default
Default constructor declared in order to allow construction of derived objects.
nvsipl::INvSIPLClient::INvSIPLBuffer::operator=
INvSIPLBuffer & operator=(INvSIPLBuffer &other) &=delete
Delete copy assignment operator.
nvsipl::INvSIPLClient::INvSIPLNvMBuffer::operator=
INvSIPLNvMBuffer & operator=(INvSIPLNvMBuffer &other) &=delete
Delete copy assignment operator.
nvsipl::INvSIPLClient::INvSIPLBuffer::Release
virtual SIPLStatus Release()=0
Release a reference.
nvsipl::INvSIPLClient::INvSIPLNvMBuffer::GetImageData
virtual ImageMetaData const & GetImageData() const =0
Gets an nvsipl::INvSIPLClient::ImageMetaData associated with NvSciBufObj.
nvsipl::INvSIPLClient::ConsumerDesc::OutputType::ISP1
@ ISP1
Indicates the first output of ISP.
nvsipl::INvSIPLClient::ImageMetaData::sensorTempInfo
DevBlkCDITemperature sensorTempInfo
Holds the parsed embedded data sensor temperature info for the captured frame.
Definition: NvSIPLClient.hpp:83
nvsipl::INvSIPLClient
Defines the public data structures and describes the interfaces for NvSIPL Client.
Definition: NvSIPLClient.hpp:54
nvsipl::INvSIPLClient::operator=
INvSIPLClient & operator=(INvSIPLClient &other) &=delete
Delete copy assignment operation.
NvSIPLCommon.hpp
NVIDIA SIPL: Common Data Structures - NvSIPL
nvsipl::INvSIPLClient::ConsumerDesc::OutputType
OutputType
Defines the types of the SIPL pipeline output.
Definition: NvSIPLClient.hpp:472
NvSciBufObj
struct NvSciBufObjRefRec * NvSciBufObj
A memory object is a container holding the reconciled NvSciBufAttrList defining constraints of the bu...
Definition: nvscibuf.h:3896
nvsipl::INvSIPLClient::ImageMetaData
Defines the metadata associated with the image.
Definition: NvSIPLClient.hpp:62
nvscisync.h
NVIDIA Software Communications Interface (SCI) : NvSciSync
nvsipl::INvSIPLClient::INvSIPLBuffer
Abstract interface for SIPL buffers.
Definition: NvSIPLClient.hpp:124
nvsipl::INvSIPLClient::ImageEmbeddedData
ImageEmbeddedData.
Definition: NvSIPLClient.hpp:107
DevBlkCDIPWL
Holds the sensor companding piecewise linear (PWL) structure.
Definition: NvSIPLCDICommon.h:449
nvsipl::INvSIPLClient::ConsumerDesc::OutputType::ICP
@ ICP
nvsipl::INvSIPLClient::INvSIPLBuffer::INvSIPLBuffer
INvSIPLBuffer()=default
Default constructor declared in order to allow construction of derived objects.
DevBlkCDIFrameReport
Holds the sensor report frame report structure.
Definition: NvSIPLCDICommon.h:422
nvsipl::INvSIPLClient::ImageEmbeddedData::embeddedBufBottom
uint8_t * embeddedBufBottom
Holds pointer to the bottom embedded data.
Definition: NvSIPLClient.hpp:116
nvsipl::INvSIPLClient::ConsumerDesc
Describes a client of the pipeline.
Definition: NvSIPLClient.hpp:465
nvsipl::INvSIPLClient::ImageMetaData::sensorExpInfo
DevBlkCDIExposure sensorExpInfo
Holds the parsed embedded data sensor exposure info for the captured frame.
Definition: NvSIPLClient.hpp:71
nvsipl::INvSIPLClient::INvSIPLBuffer::GetSOFNvSciSyncFence
virtual SIPLStatus GetSOFNvSciSyncFence(NvSciSyncFence *const sofFence)=0
Retrieve the latest NvSciSync SOF fence.
nvsipl::INvSIPLClient::~INvSIPLClient
virtual ~INvSIPLClient()=default
Default destructor.
NvSIPLCDICommon.h
DevBlkCDIWhiteBalance
Holds the sensor white balance gain structure.
Definition: NvSIPLCDICommon.h:352
nvsipl::INvSIPLClient::ImageMetaData::numExposures
uint32_t numExposures
Holds the parsed embedded data frame number of exposures info for the captured frame.
Definition: NvSIPLClient.hpp:69
DevBlkCDIFrameCtxID
Holds the sensor frame context id structure.
Definition: NvSIPLCDICommon.h:251
nvsipl::INvSIPLClient::ImageMetaData::frameCaptureTSC
uint64_t frameCaptureTSC
Holds the TSC timestamp of the end of frame for capture.
Definition: NvSIPLClient.hpp:65
nvsipl::INvSIPLClient::ImageMetaData::frameCtxIDInfo
DevBlkCDIFrameCtxID frameCtxIDInfo
Holds the parsed embedded data frame context id info for the captured frame.
Definition: NvSIPLClient.hpp:98
nvsipl::INvSIPLClient::INvSIPLNvMBuffer::~INvSIPLNvMBuffer
~INvSIPLNvMBuffer() override=default
Default destructor.
nvsipl::INvSIPLClient::ConsumerDesc::OutputType::ISP0
@ ISP0
Indicates the unprocessed output of the image sensor.
nvsipl::INvSIPLClient::ImageMetaData::controlInfo
NvSiplControlInfo controlInfo
Holds the control information.
Definition: NvSIPLClient.hpp:92
nvsipl::INvSIPLClient::ImageMetaData::sensorReportInfo
DevBlkCDIFrameReport sensorReportInfo
Holds the parsed embedded data frame report info for the captured frame.
Definition: NvSIPLClient.hpp:81
DevBlkCDIIllumination
Holds the sensor illumination control structure.
Definition: NvSIPLCDICommon.h:376
nvsipl::INvSIPLClient::ImageMetaData::frameCaptureStartTSC
uint64_t frameCaptureStartTSC
Holds the TSC timestamp of the start of frame for capture.
Definition: NvSIPLClient.hpp:67
nvsipl::INvSIPLClient::ImageEmbeddedData::embeddedBufTop
uint8_t * embeddedBufTop
Holds pointer to the top embedded data.
Definition: NvSIPLClient.hpp:114
NvSIPLISPStructs.hpp
NVIDIA SIPL: ISP Definitions - NvSIPL Client
nvsipl::INvSIPLClient::ImageMetaData::frameSeqNumInfo
DevBlkCDIFrameSeqNum frameSeqNumInfo
Holds the parsed embedded data frame sequence number info for the captured frame.
Definition: NvSIPLClient.hpp:85
DevBlkCDITemperature
Holds the sensor temperature structure.
Definition: NvSIPLCDICommon.h:395
nvsipl::INvSIPLClient::INvSIPLBuffer::AddRef
virtual void AddRef()=0
Adds a reference.
NvSciSyncFence
Defines the opaque NvSciSyncFence.
Definition: nvscisync.h:253
nvsipl::INvSIPLClient::ImageMetaData::sensorCRCInfo
DevBlkCDICRC sensorCRCInfo
Holds the parsed embedded data sensor crc info for the captured frame.
Definition: NvSIPLClient.hpp:79
nvscistream.h
NVIDIA Software Communications Interface (SCI) : NvSciStream
nvsipl::INvSIPLClient::INvSIPLNvMBuffer::GetImageEmbeddedData
virtual ImageEmbeddedData const & GetImageEmbeddedData() const =0
Gets an nvsipl::INvSIPLClient::ImageEmbeddedData this is the RAW data associated with the captured im...
nvsipl::INvSIPLClient::ImageMetaData::illuminationInfo
DevBlkCDIIllumination illuminationInfo
Holds the parsed embedded data illumination info for the captured frame.
Definition: NvSIPLClient.hpp:75
nvsipl::INvSIPLClient::ImageMetaData::sensorPWLInfo
DevBlkCDIPWL sensorPWLInfo
Holds the parsed embedded data sensor PWL info for the captured frame.
Definition: NvSIPLClient.hpp:77
DevBlkCDIExposure
Holds sensor exposure information.
Definition: NvSIPLCDICommon.h:296
nvsipl::INvSIPLClient::INvSIPLNvMBuffer
Describes a SIPL buffer containing an NvSciBufObj.
Definition: NvSIPLClient.hpp:345
nvsipl
Describes the custom interface for IMX623.
Definition: AR0820_CUST1_CustomInterface.hpp:21
nvsipl::INvSIPLClient::INvSIPLClient
INvSIPLClient()=default
Default constructor declared in order to allow construction of derived objects.
DevBlkCDIFrameSeqNum
Holds the sensor frame sequence number structure.
Definition: NvSIPLCDICommon.h:232
DevBlkCDICRC
Holds the sensor CRC structure.
Definition: NvSIPLCDICommon.h:475
nvsipl::INvSIPLClient::ImageMetaData::sensorWBInfo
DevBlkCDIWhiteBalance sensorWBInfo
Holds the parsed embedded data sensor white balance info for the captured frame.
Definition: NvSIPLClient.hpp:73
nvsipl::INvSIPLClient::INvSIPLBuffer::~INvSIPLBuffer
virtual ~INvSIPLBuffer()=default
Default destructor.
nvsipl::INvSIPLClient::ConsumerDesc::OutputType::ISP2
@ ISP2
Indicates the second output of ISP.
nvsipl::INvSIPLClient::INvSIPLBuffer::AddNvSciSyncPrefence
virtual SIPLStatus AddNvSciSyncPrefence(NvSciSyncFence const &prefence)=0
Add an NvSciSync prefence.
nvsipl::INvSIPLClient::ImageMetaData::wasFrameDropped
bool wasFrameDropped
Holds a flag indicating if the frame was dropped.
Definition: NvSIPLClient.hpp:95
nvsipl::INvSIPLClient::INvSIPLBuffer::GetEOFNvSciSyncFence
virtual SIPLStatus GetEOFNvSciSyncFence(NvSciSyncFence *const postfence)=0
Retrieve the latest NvSciSync EOF fence.
nvsipl::INvSIPLClient::ImageEmbeddedData::embeddedBufTopSize
uint32_t embeddedBufTopSize
Holds size of the top embedded data.
Definition: NvSIPLClient.hpp:110
nvsipl::INvSIPLClient::ImageMetaData::errorFlag
int8_t errorFlag
Holds information on errors present in the embedded data.
Definition: NvSIPLClient.hpp:90
nvsipl::INvSIPLClient::INvSIPLNvMBuffer::GetNvSciBufImage
virtual NvSciBufObj GetNvSciBufImage() const =0
Gets a handle to NvSciBufObj.