NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvmedia_iofa.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021-2025 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 
19 #ifndef NVMEDIA_IOFA_H
20 #define NVMEDIA_IOFA_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #include <stdint.h>
27 #include <stdbool.h>
28 
29 #include "nvmedia_core.h"
30 #include "nvscisync.h"
31 #include "nvscibuf.h"
32 #include "nvmedia_common_video.h"
33 
47 #define NVMEDIA_IOFA_VERSION_MAJOR 2
48 
51 #define NVMEDIA_IOFA_VERSION_MINOR 3
52 
55 #define NVMEDIA_IOFA_VERSION_PATCH 0
56 
60 #define NVMEDIA_IOFA_MAX_PYD_LEVEL 7U
61 
64 #define NVMEDIA_IOFA_MAX_ROI_SUPPORTED 32U
65 
68 #define NVMEDIA_IOFA_MAX_CONST_HINTS 2U
69 
72 #define NVMEDIA_IOFA_MAX_EXTERNAL_HINTS 2U
73 
76 #define NVMEDIA_IOFA_MAX_SPATIAL_HINTS 9U
77 
83 #define NVMEDIA_IOFA_MAX_PRENVSCISYNCFENCES 16U
84 
90 typedef enum
91 {
99 
108 typedef enum
109 {
119 
125 typedef enum
126 {
145 
150 typedef enum
151 {
157 
162 typedef enum
163 {
169 
174 typedef enum
175 {
180 #if !defined(NV_IS_SAFETY) || (!NV_IS_SAFETY)
181 
189 #endif
191 
196 typedef enum
197 {
211 
217 typedef struct
218 {
220  float F_Matrix[3][3];
222  float H_Matrix[3][3];
224  int32_t epipole_x;
226  int32_t epipole_y;
228  uint8_t direction;
230 
241 typedef struct
242 {
244  uint16_t startX;
246  uint16_t startY;
248  uint16_t endX;
250  uint16_t endY;
252 
257 typedef struct
258 {
261  uint32_t numOfROIs;
265 
270 typedef struct
271 {
273  uint16_t minWidth;
275  uint16_t minHeight;
277  uint16_t maxWidth;
279  uint16_t maxHeight;
281 
286 typedef struct NvMediaIofa
287 {
289  struct NvMediaIofaPriv *ofaPriv;
290 } NvMediaIofa;
291 
296 typedef struct
297 {
306  uint8_t ofaPydLevel;
312  uint16_t width[NVMEDIA_IOFA_MAX_PYD_LEVEL];
318  uint16_t height[NVMEDIA_IOFA_MAX_PYD_LEVEL];
329  uint16_t outWidth[NVMEDIA_IOFA_MAX_PYD_LEVEL];
336  uint16_t outHeight[NVMEDIA_IOFA_MAX_PYD_LEVEL];
349  bool vprMode;
358  /* OFA device Id
359  * \n this is index of selected OFA device
360  * \n Valid range is 0 to OFA Device list size-1
361  */
362  uint8_t ofaDeviceId;
364 
369 typedef enum {
377 
383 typedef struct
384 {
385  /* \n Valid range for penalties and diagonal penalties
386  * \n Stereo/Epipolar SGM mode: P2 <= 217 - P1 and P2 >= P1
387  * \n Pyramidal SGM mode: P2 <= 108 and P2 should >= P1
388  */
390  uint8_t penalty1[NVMEDIA_IOFA_MAX_PYD_LEVEL];
392  uint8_t penalty2[NVMEDIA_IOFA_MAX_PYD_LEVEL];
397  bool adaptiveP2[NVMEDIA_IOFA_MAX_PYD_LEVEL];
401  uint8_t alphaLog2[NVMEDIA_IOFA_MAX_PYD_LEVEL];
406  bool enableDiag[NVMEDIA_IOFA_MAX_PYD_LEVEL];
410  uint8_t numPasses[NVMEDIA_IOFA_MAX_PYD_LEVEL];
412  uint8_t diagP1[NVMEDIA_IOFA_MAX_PYD_LEVEL];
414  uint8_t diagP2[NVMEDIA_IOFA_MAX_PYD_LEVEL];
416 
421 typedef struct
422 {
424  uint8_t enableWM[NVMEDIA_IOFA_MAX_PYD_LEVEL];
428  uint8_t kernelSizeWM[NVMEDIA_IOFA_MAX_PYD_LEVEL];
432  uint8_t filterGuideWM[NVMEDIA_IOFA_MAX_PYD_LEVEL];
434 
438 typedef struct
439 {
441  uint8_t spatialHintEnable[NVMEDIA_IOFA_MAX_PYD_LEVEL];
443  uint8_t maxHintsPerGrid[NVMEDIA_IOFA_MAX_PYD_LEVEL];
445 
450 typedef struct
451 {
538 
543 typedef struct
544 {
545  uint8_t pydConstHintEnable[NVMEDIA_IOFA_MAX_CONST_HINTS];
546  /* S10.5 Format
547  * \n This means that the MSB represents the sign of the flow vector
548  * \n next 10bits represent the integer value and the last 5 bits represent the fractional value.
549  */
550  int16_t pydConstHintMvx[NVMEDIA_IOFA_MAX_CONST_HINTS];
551  /* S10.5 Format */
552  int16_t pydConstHintMvy[NVMEDIA_IOFA_MAX_CONST_HINTS];
553  /* Array of weight of Const Hints
554  * \n Valid range [-128, 127]
555  */
556  int8_t pydConstHintWeight[NVMEDIA_IOFA_MAX_CONST_HINTS];
558 
563 typedef struct
564 {
565  /* Array of weight of External Hints
566  * \n Valid range [-128, 127]
567  */
568  int8_t pydExtHintWeight[NVMEDIA_IOFA_MAX_EXTERNAL_HINTS];
570 
571 
576 typedef struct
577 {
594 
599 typedef struct
600 {
615  bool noopMode;
623 
656  NvMediaVersion *version
657 );
658 
686 NvMediaIofa *
688  void
689 );
690 
739  NvMediaIofa *ofaPubl,
740  const NvMediaIofaInitParams *initParams,
741  const uint8_t maxInputBuffering
742 );
743 
808  const NvMediaIofa *ofaPubl,
809  const NvMediaIofaBufArray *pSurfArray,
810  const NvMediaIofaProcessParams *pProcessParams,
811  const NvMediaIofaEpipolarInfo *pEpiInfo,
812  const NvMediaIofaROIParams *pROIParams
813 );
814 
853  const NvMediaIofa *ofaPubl
854 );
855 
917  const NvMediaIofa *ofaPubl,
919 );
920 
979  const NvMediaIofa *ofaPubl,
981 );
982 
983 
1025  const NvMediaIofa *ofaPubl,
1026  NvMediaIOFAParamType paramType,
1027  void *pParams
1028 );
1029 
1071  const NvMediaIofa *ofaPubl,
1072  NvMediaIOFAParamType paramType,
1073  const void *pParams
1074 );
1075 
1114  const NvMediaIofa *ofaPubl,
1115  NvMediaIofaSGMParams *pSGMParams
1116 );
1117 
1156  const NvMediaIofa *ofaPubl,
1157  const NvMediaIofaSGMParams *pSGMParams
1158 );
1159 
1206  const NvMediaIofa *ofaPubl,
1207  const NvMediaIofaMode mode,
1208  NvMediaIofaCapability *pCapability
1209 );
1210 
1258  NvSciBufAttrList attrlist
1259 );
1260 
1323  const NvMediaIofa *ofaPubl,
1324  NvSciSyncAttrList attrlist,
1325  NvMediaNvSciSyncClientType clienttype
1326 );
1327 
1390  const NvMediaIofa *ofaPubl,
1391  NvMediaNvSciSyncObjType syncobjtype,
1392  NvSciSyncObj syncObj
1393 );
1394 
1460  const NvMediaIofa *ofaPubl,
1461  NvSciSyncObj syncObj
1462 );
1463 
1515  const NvMediaIofa *ofaPubl,
1516  NvSciSyncObj nvscisyncEOF
1517 );
1518 
1584  const NvMediaIofa *ofaPubl,
1585  const NvSciSyncFence *prenvscisyncfence
1586 );
1587 
1652  const NvMediaIofa *ofaPubl,
1653  NvSciSyncObj eofnvscisyncobj,
1654  NvSciSyncFence *eofnvscisyncfence
1655 );
1656 
1691  NvMediaDeviceList *deviceList
1692 );
1693 
1694 /*
1695  * \defgroup nvmedia_6x_history_nvmedia_iofa History
1696  * Provides change history for the NvMedia IOFA API.
1697  *
1698  * \section nvmedia_6x_history_nvmedia_iofa Version History
1699  *
1700  * <b> Version 1.0 </b> September 28, 2021
1701  * - Initial release
1702  *
1703  * <b> Version 1.1 </b> December 20, 2021
1704  * - OFA Driver Refactoring
1705  *
1706  * <b> Version 1.2 </b> April 10, 2023
1707  * - Removed API NvMediaIOFAGetProfileData
1708  *
1709  * <b> Version 1.3 </b> April 22, 2023
1710  * - Add epiSearchRange in NvMediaIofaInitParams
1711  *
1712  * <b> Version 1.4 </b> February 19, 2024
1713  * - Change NVMEDIA_IOFA_MAX_PYD_LEVEL to 7
1714  *
1715  * <b> Version 2.0 </b> March 18,2024
1716  * - Add support for NvMediaIOFAQueryDevices API
1717  *
1718  * <b> Version 2.1 </b> May 16,2024
1719  * - Add new OFA HW features
1720  *
1721  * <b> Version 2.2 </b> November 04, 2024
1722  * - Add new preset for optical flow (not available on safety build)
1723  *
1724  * <b> Version 2.3 </b> November 21, 2025
1725  * - Add support for external hints and guide surfaces in permanent fault diagnostic mode
1726  *
1727  */
1728 
1730 #ifdef __cplusplus
1731 } /* extern "C" */
1732 #endif
1733 
1734 #endif // NVMEDIA_IOFA_H
NvMediaIOFADestroy
NvMediaStatus NvMediaIOFADestroy(const NvMediaIofa *ofaPubl)
Destroys the created NvMediaIofa object and frees associated resources.
NvSciSyncTaskStatusOFA_Error_Input_TaskStatus
@ NvSciSyncTaskStatusOFA_Error_Input_TaskStatus
Definition: nvmedia_iofa.h:206
NvMediaIofaEpipolarInfo::epipole_x
int32_t epipole_x
Epipolar X position in S17.3 format [1 Sign bit, 17-bit integer part, 3-bit fraction part].
Definition: nvmedia_iofa.h:224
NvMediaIofaExtHintParams
Parameters related to external hint surface.
Definition: nvmedia_iofa.h:563
SGM_PARAM
@ SGM_PARAM
IOFA SGM parameters, NvMediaIofaSGMParams.
Definition: nvmedia_iofa.h:371
NvMediaIofaPydMode
NvMediaIofaPydMode
Modes for pyramid SGM Applicable to Pyramid SGM IOFA mode only.
Definition: nvmedia_iofa.h:125
WMF_PARAM
@ WMF_PARAM
IOFA WMF parameters, NvMediaIofaSGMParams.
Definition: nvmedia_iofa.h:373
NvMediaIofaEpipolarInfo::direction
uint8_t direction
Direction: 0/1 - Search towards / away from epipole.
Definition: nvmedia_iofa.h:228
NVMEDIA_IOFA_DISPARITY_RANGE_256
@ NVMEDIA_IOFA_DISPARITY_RANGE_256
Maximum Stereo Disparity Range of 256 pixels.
Definition: nvmedia_iofa.h:155
NvMediaIofaCapability::maxHeight
uint16_t maxHeight
Maximum height supported by IOFA driver.
Definition: nvmedia_iofa.h:279
NvMediaIofaDisparityRange
NvMediaIofaDisparityRange
Defines IOFA Stereo DISPARITY RANGE.
Definition: nvmedia_iofa.h:150
NvMediaIOFAFillNvSciSyncAttrList
NvMediaStatus NvMediaIOFAFillNvSciSyncAttrList(const NvMediaIofa *ofaPubl, NvSciSyncAttrList attrlist, NvMediaNvSciSyncClientType clienttype)
Fills the NvMediaIofa specific NvSciSync attributes.
NvMediaIofaROIParams::numOfROIs
uint32_t numOfROIs
Number of ROIs.
Definition: nvmedia_iofa.h:261
NvMediaIofaConstHintParams
Parameters related to Constant hints.
Definition: nvmedia_iofa.h:543
NVMEDIA_IOFA_PRESET_HQ
@ NVMEDIA_IOFA_PRESET_HQ
High Quality Preset.
Definition: nvmedia_iofa.h:177
nvmedia_common_video.h
NVIDIA Media Interface: MM Engines Information
NVMEDIA_IOFA_GRIDSIZE_8X8
@ NVMEDIA_IOFA_GRIDSIZE_8X8
Grid Size 8x8.
Definition: nvmedia_iofa.h:117
NvMediaIofaProcessParams::pydExtHintParams
NvMediaIofaExtHintParams pydExtHintParams
Pyramid External Hints Parameters.
Definition: nvmedia_iofa.h:621
NvMediaIofaInitParams::pydMode
NvMediaIofaPydMode pydMode
Pyramid SGM Mode One of the value from NvMediaIofaPydMode.
Definition: nvmedia_iofa.h:344
NvMediaIofaCapability::minWidth
uint16_t minWidth
Minimum width supported by IOFA driver.
Definition: nvmedia_iofa.h:273
NvMediaNvSciSyncObjType
NvMediaNvSciSyncObjType
Defines NvMedia NvSciSyncObj types.
Definition: nvmedia_core.h:216
NVMEDIA_IOFA_MODE_PYDOF
@ NVMEDIA_IOFA_MODE_PYDOF
IOFA pyramid optical flow mode.
Definition: nvmedia_iofa.h:95
NvMediaIofaInitParams
Holds IOFA Initialization API parameters.
Definition: nvmedia_iofa.h:296
NvMediaIOFASetSGMConfigParams
NvMediaStatus NvMediaIOFASetSGMConfigParams(const NvMediaIofa *ofaPubl, const NvMediaIofaSGMParams *pSGMParams)
Set the SGM configuration parameters to be used.
NvMediaIofa::ofaPriv
struct NvMediaIofaPriv * ofaPriv
An Opaque pointer for internal use.
Definition: nvmedia_iofa.h:289
NvMediaIOFAGetConfigParams
NvMediaStatus NvMediaIOFAGetConfigParams(const NvMediaIofa *ofaPubl, NvMediaIOFAParamType paramType, void *pParams)
Get the given paramtype configuration parameters being used.
NVMEDIA_IOFA_EPI_SEARCH_RANGE_256
@ NVMEDIA_IOFA_EPI_SEARCH_RANGE_256
Maximum Epipolar Flow Search Range of 256 pixels.
Definition: nvmedia_iofa.h:167
NVMEDIA_IOFA_MAX_PYD_LEVEL
#define NVMEDIA_IOFA_MAX_PYD_LEVEL
Maximum number of Pyramid level supported in Pyramid OF mode.
Definition: nvmedia_iofa.h:60
NVMEDIA_IOFA_PYD_LEVEL_MODE
@ NVMEDIA_IOFA_PYD_LEVEL_MODE
A single pyramid level of a input and reference frame will be processed by NvMediaIOFAProcessFrame AP...
Definition: nvmedia_iofa.h:143
NvMediaIofaMode
NvMediaIofaMode
Defines mode supported by IOFA Driver.
Definition: nvmedia_iofa.h:90
NVMEDIA_IOFA_PRESET_OFSDK_SLOW
@ NVMEDIA_IOFA_PRESET_OFSDK_SLOW
Following presets are supported with NVMEDIA_OFA_MODE_PYDSGM mode and Orin chip only.
Definition: nvmedia_iofa.h:184
bufObj
const WFDPipeline NvSciBufObj *const bufObj
Definition: wfdext.h:236
NVMEDIA_IOFA_PYD_FRAME_MODE
@ NVMEDIA_IOFA_PYD_FRAME_MODE
All pyramid levels of a input and reference frame will be processed in a single NvMediaIOFAProcessFra...
Definition: nvmedia_iofa.h:133
NvMediaIofaROIRectParams
Holds Co-ordinates for Region of Interest.
Definition: nvmedia_iofa.h:241
NvMediaNvSciSyncClientType
NvMediaNvSciSyncClientType
NvMedia NvSciSync Client Type.
Definition: nvmedia_core.h:202
NvMediaIofaBufArray
Holds pointers to NvMedia bufObjs containing input and output surfaces.
Definition: nvmedia_iofa.h:450
NVMEDIA_IOFA_MAX_EXTERNAL_HINTS
#define NVMEDIA_IOFA_MAX_EXTERNAL_HINTS
Maximum number of external hints supported.
Definition: nvmedia_iofa.h:72
NvMediaIOFAGetCapability
NvMediaStatus NvMediaIOFAGetCapability(const NvMediaIofa *ofaPubl, const NvMediaIofaMode mode, NvMediaIofaCapability *pCapability)
Get IOFA Capability.
NvMediaIofaPydHintParams::pydHintWidth2x
bool pydHintWidth2x
IOFA HW supported input hint upsampling in X direction false : input hint surface width is same as ...
Definition: nvmedia_iofa.h:587
NvSciSyncAttrList
struct NvSciSyncAttrListRec * NvSciSyncAttrList
A container constituting an NvSciSyncAttrList which contains:
Definition: nvscisync.h:327
NvSciBufObj
struct NvSciBufObjRefRec * NvSciBufObj
A memory object is a container holding the reconciled NvSciBufAttrList defining constraints of the bu...
Definition: nvscibuf.h:3896
NvMediaIofaEpipolarInfo::epipole_y
int32_t epipole_y
Epipolar Y position in S17.3 format [1 Sign bit, 17-bit integer part, 3-bit fraction part].
Definition: nvmedia_iofa.h:226
nvscisync.h
NVIDIA Software Communications Interface (SCI) : NvSciSync
NVMEDIA_IOFA_GRIDSIZE_2X2
@ NVMEDIA_IOFA_GRIDSIZE_2X2
Grid Size 2x2.
Definition: nvmedia_iofa.h:113
NvSciSyncTaskStatusOFA_Execution_Start
@ NvSciSyncTaskStatusOFA_Execution_Start
Definition: nvmedia_iofa.h:202
NvMediaVersion
Holds NvMedia version information.
Definition: nvmedia_core.h:176
NvMediaIofaWMFParams
Holds WMF parameters.
Definition: nvmedia_iofa.h:421
NvMediaIofaROIParams
Structure holds ROI information.
Definition: nvmedia_iofa.h:257
NvMediaIofaROIRectParams::startY
uint16_t startY
ROI top-left y index (in pixel unit)
Definition: nvmedia_iofa.h:246
NvMediaIOFARegisterNvSciBufObj
NvMediaStatus NvMediaIOFARegisterNvSciBufObj(const NvMediaIofa *ofaPubl, NvSciBufObj bufObj)
Registers an NvSciBufObj for use with an NvMediaIofa handle.
NvMediaIOFAParamType
NvMediaIOFAParamType
Enum to identify Configurable parameters supported by IOFA Driver.
Definition: nvmedia_iofa.h:369
NvMediaIofaSGMParams
Holds SGM parameters All parameters allow per pyramid level control.
Definition: nvmedia_iofa.h:383
NvMediaIOFASetConfigParams
NvMediaStatus NvMediaIOFASetConfigParams(const NvMediaIofa *ofaPubl, NvMediaIOFAParamType paramType, const void *pParams)
Set the given paramtype configuration parameters to be used.
NvMediaIOFAUnregisterNvSciSyncObj
NvMediaStatus NvMediaIOFAUnregisterNvSciSyncObj(const NvMediaIofa *ofaPubl, NvSciSyncObj syncObj)
Unregisters an NvSciSyncObj with NvMediaIofa.
NvMediaIofaPydHintParams
Parameters related to input pyramid hint surface.
Definition: nvmedia_iofa.h:576
NvMediaIofaInitParams::preset
NvMediaIofaPreset preset
Ofa Preset One of the value from NvMediaIofaPreset.
Definition: nvmedia_iofa.h:353
NvMediaIofaEpiSearchRange
NvMediaIofaEpiSearchRange
Defines IOFA Flow Epipolar Search Range.
Definition: nvmedia_iofa.h:162
NVMEDIA_IOFA_EPI_SEARCH_RANGE_128
@ NVMEDIA_IOFA_EPI_SEARCH_RANGE_128
Maximum Epipolar Flow Search Range of 128 pixels.
Definition: nvmedia_iofa.h:165
NvMediaIofaProcessParams::noopMode
bool noopMode
noop flag true Avoid ofa processing and signal frame done false Normal ofa processing (default)
Definition: nvmedia_iofa.h:615
NvMediaIofaPydHintParams::pydHintHeight2x
bool pydHintHeight2x
IOFA HW supported input hint upsampling in Y direction false : input hint surface height is same as...
Definition: nvmedia_iofa.h:592
NvMediaIOFAGetEOFNvSciSyncFence
NvMediaStatus NvMediaIOFAGetEOFNvSciSyncFence(const NvMediaIofa *ofaPubl, NvSciSyncObj eofnvscisyncobj, NvSciSyncFence *eofnvscisyncfence)
Gets EOF NvSciSyncFence for an NvMediaIOFAProcessFrame() operation.
NVMEDIA_IOFA_PRESET_HP
@ NVMEDIA_IOFA_PRESET_HP
High Performance Preset.
Definition: nvmedia_iofa.h:179
NVMEDIA_IOFA_PRESET_OFSDK_FAST
@ NVMEDIA_IOFA_PRESET_OFSDK_FAST
OFSDK fast preset.
Definition: nvmedia_iofa.h:188
NVMEDIA_IOFA_PRESET_OFSDK_MEDIUM
@ NVMEDIA_IOFA_PRESET_OFSDK_MEDIUM
OFSDK medium preset.
Definition: nvmedia_iofa.h:186
NvMediaIofaProcessParams::rightDispMap
bool rightDispMap
Enable right view disparity map.
Definition: nvmedia_iofa.h:606
NvMediaIofaInitParams::dispRange
NvMediaIofaDisparityRange dispRange
Stereo Disparity Range One of the value from NvMediaIofaDisparityRange.
Definition: nvmedia_iofa.h:340
NvMediaIOFACreate
NvMediaIofa * NvMediaIOFACreate(void)
Creates an NvMediaIofa object that can compute optical flow or stereo disparity using two bufObjs.
NvSciSyncTaskStatusOFA_Invalid
@ NvSciSyncTaskStatusOFA_Invalid
task status support is not enable
Definition: nvmedia_iofa.h:209
NvMediaIofaProcessParams::pydConstHintParams
NvMediaIofaConstHintParams pydConstHintParams
Pyramid Const Hints Parameters.
Definition: nvmedia_iofa.h:619
NVMEDIA_IOFA_GRIDSIZE_1X1
@ NVMEDIA_IOFA_GRIDSIZE_1X1
Grid Size 1x1.
Definition: nvmedia_iofa.h:111
NvMediaIofaCapability::maxWidth
uint16_t maxWidth
Maximum width supported by IOFA driver.
Definition: nvmedia_iofa.h:277
NvMediaIofaROIRectParams::endY
uint16_t endY
ROI bottom-right index (in pixel unit).
Definition: nvmedia_iofa.h:250
NvMediaIOFAGetVersion
NvMediaStatus NvMediaIOFAGetVersion(NvMediaVersion *version)
Retrieves the version information for the NvMedia IOFA library.
nvmedia_core.h
NVIDIA Media Interface: Core
NVMEDIA_IOFA_MODE_STEREO
@ NVMEDIA_IOFA_MODE_STEREO
IOFA stereo disparity mode.
Definition: nvmedia_iofa.h:93
NvMediaIofaProcessParams
Holds IOFA Process Frame API parameters.
Definition: nvmedia_iofa.h:599
NVMEDIA_IOFA_DISPARITY_RANGE_128
@ NVMEDIA_IOFA_DISPARITY_RANGE_128
Maximum Stereo Disparity Range of 128 pixels.
Definition: nvmedia_iofa.h:153
NvMediaIofaInitParams::ofaDeviceId
uint8_t ofaDeviceId
Definition: nvmedia_iofa.h:362
NvMediaIofa
struct NvMediaIofa NvMediaIofa
Holds an IOFA object created and returned by NvMediaIOFACreate().
NvMediaIofa
Holds an IOFA object created and returned by NvMediaIOFACreate().
Definition: nvmedia_iofa.h:286
NVMEDIA_IOFA_MAX_CONST_HINTS
#define NVMEDIA_IOFA_MAX_CONST_HINTS
Maximum number of constant hints supported.
Definition: nvmedia_iofa.h:68
NvMediaIofaHINTParams
Holds HINT parameters.
Definition: nvmedia_iofa.h:438
NvSciBufAttrList
struct NvSciBufAttrListRec * NvSciBufAttrList
A container constituting an attribute list which contains.
Definition: nvscibuf.h:3914
NvMediaIOFARegisterNvSciSyncObj
NvMediaStatus NvMediaIOFARegisterNvSciSyncObj(const NvMediaIofa *ofaPubl, NvMediaNvSciSyncObjType syncobjtype, NvSciSyncObj syncObj)
Registers an NvSciSyncObj with NvMediaIofa.
NvMediaIofaProcessParams::pydHintParams
NvMediaIofaPydHintParams pydHintParams
Pyramid hints parameters.
Definition: nvmedia_iofa.h:617
NvSciSyncTaskStatusOFA_Error_CRC_Mismatch
@ NvSciSyncTaskStatusOFA_Error_CRC_Mismatch
Definition: nvmedia_iofa.h:203
NvMediaIofaROIRectParams::startX
uint16_t startX
ROI top-left x index (in pixel unit)
Definition: nvmedia_iofa.h:244
NvMediaIofaEpipolarInfo
Structure holds Epipolar information.
Definition: nvmedia_iofa.h:217
NvMediaIofaInitParams::epiSearchRange
NvMediaIofaEpiSearchRange epiSearchRange
Epipolar search range in pixels One of the value from NvMediaIofaEpiSearchRange.
Definition: nvmedia_iofa.h:357
NvMediaIOFAFillNvSciBufAttrList
NvMediaStatus NvMediaIOFAFillNvSciBufAttrList(NvSciBufAttrList attrlist)
Fills the NvMediaIofa specific NvSciBuf attributes which then be used to allocate an NvSciBufObj that...
NvSciSyncTaskStatusOFA_Error_HW
@ NvSciSyncTaskStatusOFA_Error_HW
Definition: nvmedia_iofa.h:205
NvMediaIofaInitParams::ofaPydLevel
uint8_t ofaPydLevel
Number of input pyramid level Number of input pyramid levels used for pyramid optical flow estimati...
Definition: nvmedia_iofa.h:306
NvSciSyncFence
Defines the opaque NvSciSyncFence.
Definition: nvscisync.h:253
NvMediaIOFASetNvSciSyncObjforEOF
NvMediaStatus NvMediaIOFASetNvSciSyncObjforEOF(const NvMediaIofa *ofaPubl, NvSciSyncObj nvscisyncEOF)
Specifies the NvSciSyncObj to be used for an EOF NvSciSyncFence.
HINT_PARAM
@ HINT_PARAM
IOFA HINT parameters, NvMediaIofaHINTParams.
Definition: nvmedia_iofa.h:375
NvMediaIofaProcessParams::currentPydLevel
uint8_t currentPydLevel
Current level to process in Pyd SGM LEVEL Mode.
Definition: nvmedia_iofa.h:610
NvMediaIofaPreset
NvMediaIofaPreset
Nvmedia Iofa Preset.
Definition: nvmedia_iofa.h:174
NvMediaDeviceList
Hold information about list of a specific MM device.
Definition: nvmedia_common_video.h:89
nvscibuf.h
NVIDIA Software Communications Interface (SCI) : NvSciBuf
NvMediaIOFAUnregisterNvSciBufObj
NvMediaStatus NvMediaIOFAUnregisterNvSciBufObj(const NvMediaIofa *ofaPubl, NvSciBufObj bufObj)
Un-registers NvSciBufObj which was previously registered with NvMediaIofa using NvMediaIOFARegisterNv...
NvSciSyncTaskStatusOFA
NvSciSyncTaskStatusOFA
NvMedia Iofa task status error codes.
Definition: nvmedia_iofa.h:196
NvMediaIofaCapability::minHeight
uint16_t minHeight
Minimum height supported by IOFA driver.
Definition: nvmedia_iofa.h:275
NvMediaIOFAInsertPreNvSciSyncFence
NvMediaStatus NvMediaIOFAInsertPreNvSciSyncFence(const NvMediaIofa *ofaPubl, const NvSciSyncFence *prenvscisyncfence)
Sets an NvSciSyncFence as a prefence for an NvMediaIOFAProcessFrame() NvSciSyncFence operation.
NvMediaIOFAInit
NvMediaStatus NvMediaIOFAInit(NvMediaIofa *ofaPubl, const NvMediaIofaInitParams *initParams, const uint8_t maxInputBuffering)
Initializes the parameters for optical flow and stereo estimation.
NVMEDIA_IOFA_MAX_ROI_SUPPORTED
#define NVMEDIA_IOFA_MAX_ROI_SUPPORTED
Maximum number of Region of Interest supported on IOFA.
Definition: nvmedia_iofa.h:64
NVMEDIA_IOFA_GRIDSIZE_4X4
@ NVMEDIA_IOFA_GRIDSIZE_4X4
Grid Size 4x4.
Definition: nvmedia_iofa.h:115
NvMediaIofaGridSize
NvMediaIofaGridSize
Defines the Output Grid Size.
Definition: nvmedia_iofa.h:108
NvMediaIofaInitParams::ofaMode
NvMediaIofaMode ofaMode
Iofa Mode type One of ofa mode types provided in NvMediaIofaMode.
Definition: nvmedia_iofa.h:301
NvMediaStatus
NvMediaStatus
Defines all possible error codes.
Definition: nvmedia_core.h:114
NVMEDIA_IOFA_MODE_EPIOF
@ NVMEDIA_IOFA_MODE_EPIOF
OFA epipolar optical flow mode.
Definition: nvmedia_iofa.h:97
NvMediaIOFAQueryDevices
NvMediaStatus NvMediaIOFAQueryDevices(NvMediaDeviceList *deviceList)
Query OFA devices present.
NvSciSyncTaskStatusOFA_Success
@ NvSciSyncTaskStatusOFA_Success
task is finished successully
Definition: nvmedia_iofa.h:199
NvMediaIofaCapability
Nvmedia Iofa Capability structure.
Definition: nvmedia_iofa.h:270
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.
NvSciSyncTaskStatusOFA_Error_SW
@ NvSciSyncTaskStatusOFA_Error_SW
Definition: nvmedia_iofa.h:207
NvSciSyncObj
struct NvSciSyncObjRec * NvSciSyncObj
A Synchronization Object is a container holding the reconciled NvSciSyncAttrList defining constraints...
Definition: nvscisync.h:308
NvSciSyncTaskStatusOFA_Error_Timeout
@ NvSciSyncTaskStatusOFA_Error_Timeout
Definition: nvmedia_iofa.h:204
NvSciSyncTaskStatusOFA_Error
@ NvSciSyncTaskStatusOFA_Error
task status error codes
Definition: nvmedia_iofa.h:201
NvMediaIofaPydHintParams::pydHintMagnitudeScale2x
bool pydHintMagnitudeScale2x
IOFA HW supported input hint mv magnitude scaling.
Definition: nvmedia_iofa.h:582
NvMediaIofaROIRectParams::endX
uint16_t endX
ROI bottom-right index (in pixel unit).
Definition: nvmedia_iofa.h:248
NvMediaIofaInitParams::vprMode
bool vprMode
Input and Output Surface in VPR (Not supported) true use VPR memory for input and output surface ...
Definition: nvmedia_iofa.h:349
NvMediaIOFAGetSGMConfigParams
NvMediaStatus NvMediaIOFAGetSGMConfigParams(const NvMediaIofa *ofaPubl, NvMediaIofaSGMParams *pSGMParams)
Get the SGM configuration parameters being used.