|
|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
19 #ifndef NVMEDIA_IOFA_H
20 #define NVMEDIA_IOFA_H
32 #include "nvmedia_common_video.h"
45 #define NVMEDIA_IOFA_VERSION_MAJOR 2
47 #define NVMEDIA_IOFA_VERSION_MINOR 2
49 #define NVMEDIA_IOFA_VERSION_PATCH 0
52 #define NVMEDIA_IOFA_MAX_PYD_LEVEL 7U
54 #define NVMEDIA_IOFA_MAX_ROI_SUPPORTED 32U
56 #define NVMEDIA_IOFA_MAX_CONST_HINTS 2U
58 #define NVMEDIA_IOFA_MAX_EXTERNAL_HINTS 2U
60 #define NVMEDIA_IOFA_MAX_SPATIAL_HINTS 9U
66 #define NVMEDIA_IOFA_MAX_PRENVSCISYNCFENCES 16U
156 #if !defined(NV_IS_SAFETY) || (!NV_IS_SAFETY)
197 float F_Matrix[3][3];
199 float H_Matrix[3][3];
675 const uint8_t maxInputBuffering
1543 NvMediaDeviceList *deviceList
1582 #endif // NVMEDIA_IOFA_H
@ NVMEDIA_IOFA_PYD_LEVEL_MODE
A single pyramid level of a input and reference frame will be processed by NvMediaIOFAProcessFrame AP...
@ NVMEDIA_IOFA_PRESET_OFSDK_MEDIUM
OFSDK medium preset.
@ NvSciSyncTaskStatusOFA_Invalid
task status support is not enable
@ NVMEDIA_IOFA_MODE_EPIOF
OFA epipolar optical flow mode.
struct NvSciSyncObjRec * NvSciSyncObj
NvMediaIofaPreset
Nvmedia Iofa Preset.
@ NVMEDIA_IOFA_GRIDSIZE_8X8
Grid Size 8x8.
@ NvSciSyncTaskStatusOFA_Error_CRC_Mismatch
NvMediaStatus NvMediaIOFASetSGMConfigParams(const NvMediaIofa *ofaPubl, const NvMediaIofaSGMParams *pSGMParams)
Set the SGM configuration parameters to be used.
@ NVMEDIA_IOFA_PRESET_OFSDK_FAST
OFSDK fast preset.
@ NVMEDIA_IOFA_GRIDSIZE_4X4
Grid Size 4x4.
NvMediaStatus NvMediaIOFAFillNvSciSyncAttrList(const NvMediaIofa *ofaPubl, NvSciSyncAttrList attrlist, NvMediaNvSciSyncClientType clienttype)
Fills the NvMediaIofa specific NvSciSync attributes.
NvMediaStatus NvMediaIOFAGetVersion(NvMediaVersion *version)
Retrieves the version information for the NvMedia IOFA library.
@ NvSciSyncTaskStatusOFA_Error_Input_TaskStatus
#define NVMEDIA_IOFA_MAX_PYD_LEVEL
Maximum number of Pyramid level supported in Pyramid OF mode.
NvMediaStatus NvMediaIOFAQueryDevices(NvMediaDeviceList *deviceList)
Query OFA devices present.
@ NvSciSyncTaskStatusOFA_Error_Timeout
NvMediaStatus NvMediaIOFAInsertPreNvSciSyncFence(const NvMediaIofa *ofaPubl, const NvSciSyncFence *prenvscisyncfence)
Sets an NvSciSyncFence as a prefence for an NvMediaIOFAProcessFrame() NvSciSyncFence operation.
@ NVMEDIA_IOFA_EPI_SEARCH_RANGE_128
Maximum Epipolar Flow Search Range of 128 pixels.
@ NVMEDIA_IOFA_MODE_STEREO
IOFA stereo disparity mode.
NvMediaIofa * NvMediaIOFACreate(void)
Creates an NvMediaIofa object that can compute optical flow or stereo disparity using two bufObjs.
NvMediaStatus NvMediaIOFAGetSGMConfigParams(const NvMediaIofa *ofaPubl, NvMediaIofaSGMParams *pSGMParams)
Get the SGM configuration parameters being used.
NvMediaStatus NvMediaIOFAGetEOFNvSciSyncFence(const NvMediaIofa *ofaPubl, NvSciSyncObj eofnvscisyncobj, NvSciSyncFence *eofnvscisyncfence)
Gets EOF NvSciSyncFence for an NvMediaIOFAProcessFrame() operation.
#define NVMEDIA_IOFA_MAX_CONST_HINTS
Number of constant hints supported.
const WFDPipeline NvSciBufObj *const bufObj
NvMediaStatus
Defines all possible error codes.
NvMediaIofaEpiSearchRange
Defines IOFA Flow Epipolar Search Range.
NvMediaNvSciSyncObjType
Defines NvMedia NvSciSyncObj types.
@ NVMEDIA_IOFA_PRESET_HP_LEGACY
High Performance Legacy Preset.
NvMediaNvSciSyncClientType
NvMedia NvSciSync Client Type.
NvMediaStatus NvMediaIOFAUnregisterNvSciSyncObj(const NvMediaIofa *ofaPubl, NvSciSyncObj syncObj)
Unregisters an NvSciSyncObj with NvMediaIofa.
@ NVMEDIA_IOFA_DISPARITY_RANGE_256
Maximum Stereo Disparity Range of 256 pixels.
struct NvSciBufObjRefRec * NvSciBufObj
NvMediaStatus NvMediaIOFAFillNvSciBufAttrList(NvSciBufAttrList attrlist)
Fills the NvMediaIofa specific NvSciBuf attributes which than then be used to allocate an NvSciBufObj...
struct NvSciBufAttrListRec * NvSciBufAttrList
NVIDIA Software Communications Interface (SCI) : NvSciSync
NvMediaStatus NvMediaIOFAGetCapability(const NvMediaIofa *ofaPubl, const NvMediaIofaMode mode, NvMediaIofaCapability *pCapability)
Get IOFA Capability.
@ WMF_PARAM
IOFA WMF parameters, NvMediaIofaSGMParams.
@ NVMEDIA_IOFA_GRIDSIZE_2X2
Grid Size 2x2.
@ NVMEDIA_IOFA_EPI_SEARCH_RANGE_256
Maximum Epipolar Flow Search Range of 256 pixels.
@ SGM_PARAM
IOFA SGM parameters, NvMediaIofaSGMParams.
#define NVMEDIA_IOFA_MAX_ROI_SUPPORTED
Maximum number of Region of Interest supported on IOFA.
NvMediaStatus NvMediaIOFARegisterNvSciSyncObj(const NvMediaIofa *ofaPubl, NvMediaNvSciSyncObjType syncobjtype, NvSciSyncObj syncObj)
Registers an NvSciSyncObj with NvMediaIofa.
@ NvSciSyncTaskStatusOFA_Success
task is finished successully
@ NVMEDIA_IOFA_MODE_PYDOF
IOFA pyramid optical flow mode.
@ NVMEDIA_IOFA_PRESET_HQ
High Quality Preset.
#define NVMEDIA_IOFA_MAX_EXTERNAL_HINTS
Number of external hints supported.
@ NVMEDIA_IOFA_DISPARITY_RANGE_128
Maximum Stereo Disparity Range of 128 pixels.
NvMediaStatus NvMediaIOFADestroy(const NvMediaIofa *ofaPubl)
Destroys the created NvMediaIofa object and frees associated resources.
struct NvMediaIofa NvMediaIofa
Holds an IOFA object created and returned by NvMediaIOFACreate().
@ NVMEDIA_IOFA_PRESET_OFSDK_SLOW
Following presets are supported with NVMEDIA_OFA_MODE_PYDSGM mode only.
@ NvSciSyncTaskStatusOFA_Execution_Start
NvMediaIofaPydMode
Modes for pyramid SGM Applicable to Pyramid SGM IOFA mode only.
NvMediaIofaMode
Defines mode supported by IOFA Driver.
NvMediaStatus NvMediaIOFASetNvSciSyncObjforEOF(const NvMediaIofa *ofaPubl, NvSciSyncObj nvscisyncEOF)
Specifies the NvSciSyncObj to be used for an EOF NvSciSyncFence.
NvMediaStatus NvMediaIOFAUnregisterNvSciBufObj(const NvMediaIofa *ofaPubl, NvSciBufObj bufObj)
Un-registers NvSciBufObj which was previously registered with NvMediaIofa using NvMediaIOFARegisterNv...
@ NVMEDIA_IOFA_PRESET_HQ_LEGACY
Following presets are enabled temporarily for perf comparison and regression testing.
Defines the opaque NvSciSyncFence.
@ NVMEDIA_IOFA_PYD_FRAME_MODE
All pyramid levels of a input and reference frame will be processed in single NvMediaIOFAProcessFrame...
NvMediaStatus NvMediaIOFAProcessFrame(const NvMediaIofa *ofaPubl, const NvMediaIofaBufArray *pSurfArray, const NvMediaIofaProcessParams *pProcessParams, const NvMediaIofaEpipolarInfo *pEpiInfo, const NvMediaIofaROIParams *pROIParams)
Performs IOFA estimation on a specified frame pair.
NVIDIA Software Communications Interface (SCI) : NvSciBuf
NvMediaStatus NvMediaIOFARegisterNvSciBufObj(const NvMediaIofa *ofaPubl, NvSciBufObj bufObj)
Registers an NvSciBufObj for use with an NvMediaIofa handle.
NvMediaStatus NvMediaIOFASetConfigParams(const NvMediaIofa *ofaPubl, NvMediaIOFAParamType paramType, const void *pParams)
Set the given paramtype configuration parameters to be used.
NvMediaIofaGridSize
Defines the Output Grid Size.
NvMediaStatus NvMediaIOFAInit(NvMediaIofa *ofaPubl, const NvMediaIofaInitParams *initParams, const uint8_t maxInputBuffering)
Initializes the parameters for optical flow and stereo estimation.
NvMediaIofaDisparityRange
Defines IOFA Stereo DISPARITY RANGE.
NvSciSyncTaskStatusOFA
NvMedia Iofa task status error codes.
NvMediaStatus NvMediaIOFAGetConfigParams(const NvMediaIofa *ofaPubl, NvMediaIOFAParamType paramType, void *pParams)
Get the given paramtype configuration parameters being used.
NvMediaIOFAParamType
Enum to identify Configurable parameters supported by IOFA Driver.
@ NvSciSyncTaskStatusOFA_Error
task status error codes
struct NvSciSyncAttrListRec * NvSciSyncAttrList
@ NvSciSyncTaskStatusOFA_Error_SW
@ NVMEDIA_IOFA_GRIDSIZE_1X1
Grid Size 1x1.
@ HINT_PARAM
IOFA HINT parameters, NvMediaIofaHINTParams.
@ NvSciSyncTaskStatusOFA_Error_HW
@ NVMEDIA_IOFA_PRESET_HP
High Performance Preset.