Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • NVIDIA DRIVE OS Linux SDK API Reference

    6.0.4 Release
    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    NvSIPLPipelineMgr.hpp
    Go to the documentation of this file.
    1 /*
    2  * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
    3  *
    4  * NVIDIA CORPORATION and its licensors retain all intellectual property
    5  * and proprietary rights in and to this software, related documentation
    6  * and any modifications thereto. Any use, reproduction, disclosure or
    7  * distribution of this software and related documentation without an express
    8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
    9  */
    10 
    11 #ifndef NVSIPLPIPELINEMGR_HPP
    12 #define NVSIPLPIPELINEMGR_HPP
    13 
    14 #include "NvSIPLCommon.hpp"
    15 #include "NvSIPLClient.hpp"
    16 #include "NvSIPLPlatformCfg.hpp"
    17 
    18 #include <cstdint>
    19 #include <vector>
    20 
    29 namespace nvsipl
    30 {
    51 {
    53  static const uint32_t MAX_DEVICE_GPIOS = 8U;
    54 
    55 public:
    58  {
    64 
    70 
    76 
    84 
    90 
    96 
    102 
    108 
    114 
    120 
    126 
    132 
    138 
    144 
    150 
    156 
    163  };
    164 
    170  {
    174  uint32_t uIndex;
    176  uint8_t uLinkMask;
    178  uint64_t frameCaptureTSC;
    182  uint32_t gpioIdxs[MAX_DEVICE_GPIOS];
    184  uint32_t numGpioIdxs;
    185  };
    186 
    188  virtual ~NvSIPLPipelineNotifier(void) = default;
    189 };
    190 
    208 {
    209 public:
    211  struct RawBuffer
    212  {
    216  uint32_t uIndex;
    220  uint64_t frameCaptureTSC;
    223  };
    224 
    236  virtual SIPLStatus FillRawBuffer(RawBuffer &oRawBuffer) = 0;
    237 
    239  virtual ~NvSIPLImageGroupWriter(void) = default;
    240 };
    241 
    247 {
    250 
    252  bool isp0OutputRequested {false};
    253 
    255  bool isp1OutputRequested {false};
    256 
    258  bool isp2OutputRequested {false};
    259 
    262 
    269 
    272 
    274  bool enableSubframe {false};
    275 };
    276 
    281 {
    282 public:
    283 
    320  size_t const timeoutUsec) = 0;
    321 
    344  virtual size_t GetCount() const = 0;
    345 
    346 protected:
    347 
    348  INvSIPLFrameCompletionQueue() = default;
    349  virtual ~INvSIPLFrameCompletionQueue() = default;
    350 
    351 private:
    352 
    354  INvSIPLFrameCompletionQueue& operator=(INvSIPLFrameCompletionQueue const& rhs) = delete;
    355 };
    356 
    361 {
    362 public:
    363 
    397  size_t const timeoutUsec) = 0;
    398 
    421  virtual size_t GetCount() const = 0;
    422 
    423 protected:
    424 
    425  INvSIPLNotificationQueue() = default;
    426  virtual ~INvSIPLNotificationQueue() = default;
    427 
    428 private:
    429 
    430  INvSIPLNotificationQueue(INvSIPLNotificationQueue const& other) = delete;
    431  INvSIPLNotificationQueue& operator=(INvSIPLNotificationQueue const& rhs) = delete;
    432 };
    433 
    440 {
    446 
    452 
    458 
    464 
    467 };
    468 
    473 {
    476 };
    477 
    480 } // namespace nvsipl
    481 
    482 
    483 #endif // NVSIPLPIPELINEMGR_HPP
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_SENSOR_FAILURE
    @ NOTIF_ERROR_SENSOR_FAILURE
    Device block event, indicates a sensor failure.
    Definition: NvSIPLPipelineMgr.hpp:155
    NvSIPLClient.hpp
    NVIDIA SIPL: Client Interface - NvSIPL Client
    nvsipl::NvSIPLPipelineNotifier::NOTIF_WARN_ICP_FRAME_DISCONTINUITY
    @ NOTIF_WARN_ICP_FRAME_DISCONTINUITY
    Pipeline event, indicates a discontinuity was detected in parsed embedded data frame sequence number.
    Definition: NvSIPLPipelineMgr.hpp:95
    nvsipl::NvSIPLPipelineQueues::notificationQueue
    INvSIPLNotificationQueue * notificationQueue
    The queue for event notifications.
    Definition: NvSIPLPipelineMgr.hpp:466
    nvsipl::MAX_DEVICEBLOCKS_PER_PLATFORM
    static const uint32_t MAX_DEVICEBLOCKS_PER_PLATFORM
    Indicates the maximum number of device blocks per platform.
    Definition: NvSIPLDeviceBlockInfo.hpp:43
    nvsipl::NvSIPLPipelineNotifier::NotificationData::frameCaptureTSC
    uint64_t frameCaptureTSC
    Holds the TSC timestamp of the end of frame for capture.
    Definition: NvSIPLPipelineMgr.hpp:178
    nvsipl::NvSIPLPipelineQueues::isp1CompletionQueue
    INvSIPLFrameCompletionQueue * isp1CompletionQueue
    The queue for completed frames from the second ISP output.
    Definition: NvSIPLPipelineMgr.hpp:457
    nvsipl::NvSIPLDownscaleCropCfg
    Downscale and crop configuration.
    Definition: NvSIPLISPStructs.hpp:87
    nvsipl::INvSIPLNotificationQueue
    The interface to the notification queue.
    Definition: NvSIPLPipelineMgr.hpp:360
    nvsipl::NvSIPLPipelineQueues::captureCompletionQueue
    INvSIPLFrameCompletionQueue * captureCompletionQueue
    The queue for completed capture frames.
    Definition: NvSIPLPipelineMgr.hpp:445
    nvsipl::NvSIPLPipelineQueues::isp0CompletionQueue
    INvSIPLFrameCompletionQueue * isp0CompletionQueue
    The queue for completed frames from the first ISP output.
    Definition: NvSIPLPipelineMgr.hpp:451
    nvsipl::INvSIPLFrameCompletionQueue::Get
    virtual SIPLStatus Get(INvSIPLClient::INvSIPLBuffer *&item, size_t const timeoutUsec)=0
    Retrieve the next item from the queue.
    nvsipl::NvSIPLImageGroupWriter::RawBuffer::discontinuity
    bool discontinuity
    Holds a flag to signal discontinuity for the current raw buffer from the previous one.
    Definition: NvSIPLPipelineMgr.hpp:218
    nvsipl::NvSIPLPipelineNotifier::NotificationData::uLinkMask
    uint8_t uLinkMask
    Holds the device block link mask.
    Definition: NvSIPLPipelineMgr.hpp:176
    nvsipl::NvSIPLImageGroupWriter::~NvSIPLImageGroupWriter
    virtual ~NvSIPLImageGroupWriter(void)=default
    Default destructor.
    nvsipl::NvSIPLPipelineNotifier::NotificationData::frameCaptureStartTSC
    uint64_t frameCaptureStartTSC
    Holds the TSC timestamp of the start of frame for capture.
    Definition: NvSIPLPipelineMgr.hpp:180
    nvsipl::NvSIPLPipelineNotifier::NotificationData::eNotifType
    NotificationType eNotifType
    Holds the NotificationType event type.
    Definition: NvSIPLPipelineMgr.hpp:172
    nvsipl::NvSIPLPipelineNotifier::NotificationData::gpioIdxs
    uint32_t gpioIdxs[MAX_DEVICE_GPIOS]
    Holds the GPIO indices.
    Definition: NvSIPLPipelineMgr.hpp:182
    nvsipl::NvSIPLPipelineQueues::isp2CompletionQueue
    INvSIPLFrameCompletionQueue * isp2CompletionQueue
    The queue for completed frames from the third ISP output.
    Definition: NvSIPLPipelineMgr.hpp:463
    NvSIPLCommon.hpp
    NVIDIA SIPL: Common Data Structures - SIPL
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_ICP_BAD_INPUT_STREAM
    @ NOTIF_ERROR_ICP_BAD_INPUT_STREAM
    Pipeline event, indicates ICP bad input stream.
    Definition: NvSIPLPipelineMgr.hpp:107
    nvsipl::INvSIPLNotificationQueue::INvSIPLNotificationQueue
    INvSIPLNotificationQueue()=default
    NvSciBufObj
    struct NvSciBufObjRefRec * NvSciBufObj
    A memory object is a container holding the reconciled NvSciBufAttrList defining constraints of the bu...
    Definition: nvscibuf.h:2717
    nvsipl::NvSIPLPipelineNotifier::NotificationData
    Defines the notification data.
    Definition: NvSIPLPipelineMgr.hpp:169
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_ISP_PROCESSING_FAILURE
    @ NOTIF_ERROR_ISP_PROCESSING_FAILURE
    Pipeline event, indicates ISP processing failure.
    Definition: NvSIPLPipelineMgr.hpp:125
    NvSIPLPlatformCfg.hpp
    NVIDIA SIPL: Camera Platform Configuration
    nvsipl::NvSIPLPipelineNotifier::NotificationData::uIndex
    uint32_t uIndex
    Holds the ID of the pipeline.
    Definition: NvSIPLPipelineMgr.hpp:174
    nvsipl::NvSIPLPipelineConfiguration::statsOverrideSettings
    NvSIPLIspStatsOverrideSetting statsOverrideSettings
    Holds ISP statistics override parameters.
    Definition: NvSIPLPipelineMgr.hpp:268
    nvsipl::INvSIPLClient::INvSIPLBuffer
    Abstract interface for SIPL buffers.
    Definition: NvSIPLClient.hpp:131
    nvsipl::NvSIPLPipelineConfiguration::captureOutputRequested
    bool captureOutputRequested
    true if the client wants capture output frames to be delivered
    Definition: NvSIPLPipelineMgr.hpp:249
    nvsipl::NvSIPLPipelineNotifier
    Describes the interfaces of the SIPL pipeline notification handler.
    Definition: NvSIPLPipelineMgr.hpp:50
    nvsipl::NvSIPLImageGroupWriter::RawBuffer
    Describes an unprocessed sensor output buffer.
    Definition: NvSIPLPipelineMgr.hpp:211
    nvsipl::NvSIPLPipelineConfiguration::enableSubframe
    bool enableSubframe
    true if the client wants to use subframe feature
    Definition: NvSIPLPipelineMgr.hpp:274
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_DESERIALIZER_FAILURE
    @ NOTIF_ERROR_DESERIALIZER_FAILURE
    Device block event, indicates a deserializer failure.
    Definition: NvSIPLPipelineMgr.hpp:143
    nvsipl::NvSIPLPipelineNotifier::NOTIF_WARN_ICP_FRAME_DROP
    @ NOTIF_WARN_ICP_FRAME_DROP
    Pipeline event, indicates pipeline was forced to drop a frame due to a slow consumer or system issues...
    Definition: NvSIPLPipelineMgr.hpp:89
    nvsipl::NvSIPLPipelineQueues
    This is the output structure for SetPipelineCfg().
    Definition: NvSIPLPipelineMgr.hpp:439
    nvsipl::NvSIPLImageGroupWriter::RawBuffer::uIndex
    uint32_t uIndex
    Holds the ID of the sensor in PlatformCfg.
    Definition: NvSIPLPipelineMgr.hpp:216
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_CDI_SET_SENSOR_CTRL_FAILURE
    @ NOTIF_ERROR_CDI_SET_SENSOR_CTRL_FAILURE
    Pipeline event, indicates CDI set sensor control failure.
    Definition: NvSIPLPipelineMgr.hpp:137
    nvsipl::NvSIPLPipelineConfiguration::imageGroupWriter
    NvSIPLImageGroupWriter * imageGroupWriter
    Holds a pointer to an NvSIPLImageGroupWriter.
    Definition: NvSIPLPipelineMgr.hpp:271
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_ICP_CAPTURE_FAILURE
    @ NOTIF_ERROR_ICP_CAPTURE_FAILURE
    Pipeline event, indicates ICP capture failure.
    Definition: NvSIPLPipelineMgr.hpp:113
    nvsipl::NvSIPLPipelineConfiguration::isp2OutputRequested
    bool isp2OutputRequested
    true if the client wants frames to be delivered from the third ISP output
    Definition: NvSIPLPipelineMgr.hpp:258
    nvsipl::NvSIPLPipelineConfiguration
    Defines the camera pipeline configuration.
    Definition: NvSIPLPipelineMgr.hpp:246
    nvsipl::INvSIPLNotificationQueue::GetCount
    virtual size_t GetCount() const =0
    Return the current queue length.
    nvsipl::INvSIPLNotificationQueue::Get
    virtual SIPLStatus Get(NvSIPLPipelineNotifier::NotificationData &item, size_t const timeoutUsec)=0
    Retrieve the next item from the queue.
    nvsipl::NvSIPLDeviceBlockQueues::notificationQueue
    INvSIPLNotificationQueue * notificationQueue[MAX_DEVICEBLOCKS_PER_PLATFORM]
    Queues for event notifications for each device block.
    Definition: NvSIPLPipelineMgr.hpp:475
    nvsipl::NvSIPLPipelineConfiguration::isp1OutputRequested
    bool isp1OutputRequested
    true if the client wants frames to be delivered from the second ISP output
    Definition: NvSIPLPipelineMgr.hpp:255
    nvsipl::SIPLStatus
    SIPLStatus
    Defines the status codes returned by functions in SIPL modules.
    Definition: NvSIPLCommon.hpp:115
    nvsipl::NvSIPLPipelineConfiguration::isp0OutputRequested
    bool isp0OutputRequested
    true if the client wants frames to be delivered from the first ISP output
    Definition: NvSIPLPipelineMgr.hpp:252
    nvsipl::NvSIPLPipelineNotifier::NOTIF_WARN_ICP_CAPTURE_TIMEOUT
    @ NOTIF_WARN_ICP_CAPTURE_TIMEOUT
    Pipeline event, indicates occurrence of timeout while capturing.
    Definition: NvSIPLPipelineMgr.hpp:101
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_SERIALIZER_FAILURE
    @ NOTIF_ERROR_SERIALIZER_FAILURE
    Device block event, indicates a serializer failure.
    Definition: NvSIPLPipelineMgr.hpp:149
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_ACP_PROCESSING_FAILURE
    @ NOTIF_ERROR_ACP_PROCESSING_FAILURE
    Pipeline event, indicates auto control processing failure.
    Definition: NvSIPLPipelineMgr.hpp:131
    nvsipl::NvSIPLImageGroupWriter
    Describes the interfaces of SIPL pipeline feeder.
    Definition: NvSIPLPipelineMgr.hpp:207
    nvsipl::INvSIPLNotificationQueue::~INvSIPLNotificationQueue
    virtual ~INvSIPLNotificationQueue()=default
    nvsipl::INvSIPLFrameCompletionQueue::GetCount
    virtual size_t GetCount() const =0
    Return the current queue length.
    nvsipl::INvSIPLFrameCompletionQueue
    The interface to the frame completion queue.
    Definition: NvSIPLPipelineMgr.hpp:280
    nvsipl::NvSIPLImageGroupWriter::RawBuffer::image
    NvSciBufObj image
    Holds an NvSciBufObj.
    Definition: NvSIPLPipelineMgr.hpp:214
    nvsipl::NvSIPLPipelineNotifier::NOTIF_INFO_CDI_PROCESSING_DONE
    @ NOTIF_INFO_CDI_PROCESSING_DONE
    Pipeline event, indicates CDI processing is finished.
    Definition: NvSIPLPipelineMgr.hpp:83
    nvsipl::NvSIPLImageGroupWriter::FillRawBuffer
    virtual SIPLStatus FillRawBuffer(RawBuffer &oRawBuffer)=0
    Populates the buffer with RAW data.
    nvsipl::NvSIPLPipelineNotifier::~NvSIPLPipelineNotifier
    virtual ~NvSIPLPipelineNotifier(void)=default
    Default destructor.
    nvsipl::INvSIPLFrameCompletionQueue::~INvSIPLFrameCompletionQueue
    virtual ~INvSIPLFrameCompletionQueue()=default
    nvsipl::NvSIPLPipelineNotifier::NotificationData::numGpioIdxs
    uint32_t numGpioIdxs
    Holds the number of GPIO indices in the array.
    Definition: NvSIPLPipelineMgr.hpp:184
    nvsipl::NvSIPLPipelineNotifier::NOTIF_INFO_ICP_PROCESSING_DONE
    @ NOTIF_INFO_ICP_PROCESSING_DONE
    Pipeline event, indicates ICP processing is finished.
    Definition: NvSIPLPipelineMgr.hpp:63
    nvsipl::NvSIPLIspStatsOverrideSetting
    SIPL ISP Statistics Override Parameters.
    Definition: NvSIPLISPStat.hpp:616
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_INTERNAL_FAILURE
    @ NOTIF_ERROR_INTERNAL_FAILURE
    Pipeline and device block event, indicates an unexpected internal failure.
    Definition: NvSIPLPipelineMgr.hpp:162
    nvsipl::NvSIPLPipelineNotifier::NOTIF_INFO_ACP_PROCESSING_DONE
    @ NOTIF_INFO_ACP_PROCESSING_DONE
    Pipeline event, indicates auto control processing is finished.
    Definition: NvSIPLPipelineMgr.hpp:75
    nvsipl
    Contains the classes and variables for implementation of SIPL.
    Definition: INvSiplControlAuto.hpp:33
    nvsipl::INvSIPLFrameCompletionQueue::INvSIPLFrameCompletionQueue
    INvSIPLFrameCompletionQueue()=default
    nvsipl::NvSIPLPipelineNotifier::NotificationType
    NotificationType
    Defines the events of the image processing pipeline and the device block.
    Definition: NvSIPLPipelineMgr.hpp:57
    nvsipl::NvSIPLImageGroupWriter::RawBuffer::frameCaptureStartTSC
    uint64_t frameCaptureStartTSC
    Holds the TSC timestamp of the start of frame for capture.
    Definition: NvSIPLPipelineMgr.hpp:222
    nvsipl::NvSIPLPipelineConfiguration::downscaleCropCfg
    NvSIPLDownscaleCropCfg downscaleCropCfg
    Holds a downscale and crop configuration.
    Definition: NvSIPLPipelineMgr.hpp:261
    nvsipl::NvSIPLImageGroupWriter::RawBuffer::frameCaptureTSC
    uint64_t frameCaptureTSC
    Holds the TSC timestamp of the end of frame for capture.
    Definition: NvSIPLPipelineMgr.hpp:220
    nvsipl::NvSIPLPipelineNotifier::NOTIF_ERROR_ICP_EMB_DATA_PARSE_FAILURE
    @ NOTIF_ERROR_ICP_EMB_DATA_PARSE_FAILURE
    Pipeline event, indicates embedded data parsing failure.
    Definition: NvSIPLPipelineMgr.hpp:119
    nvsipl::NvSIPLDeviceBlockQueues
    Holds the queues used by the client to receive device block event notifications.
    Definition: NvSIPLPipelineMgr.hpp:472
    nvsipl::NvSIPLPipelineNotifier::NOTIF_INFO_ISP_PROCESSING_DONE
    @ NOTIF_INFO_ISP_PROCESSING_DONE
    Pipeline event, indicates ISP processing is finished.
    Definition: NvSIPLPipelineMgr.hpp:69
    人人超碰97caoporen国产