NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 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 
45 #define NVMEDIA_IOFA_VERSION_MAJOR 2
46 
47 #define NVMEDIA_IOFA_VERSION_MINOR 2
48 
49 #define NVMEDIA_IOFA_VERSION_PATCH 0
50 
52 #define NVMEDIA_IOFA_MAX_PYD_LEVEL 7U
53 
54 #define NVMEDIA_IOFA_MAX_ROI_SUPPORTED 32U
55 
56 #define NVMEDIA_IOFA_MAX_CONST_HINTS 2U
57 
58 #define NVMEDIA_IOFA_MAX_EXTERNAL_HINTS 2U
59 
60 #define NVMEDIA_IOFA_MAX_SPATIAL_HINTS 9U
61 
66 #define NVMEDIA_IOFA_MAX_PRENVSCISYNCFENCES 16U
67 
71 typedef enum
72 {
80 
88 typedef enum
89 {
99 
104 typedef enum
105 {
124 
128 typedef enum
129 {
135 
139 typedef enum
140 {
146 
150 typedef enum
151 {
156 #if !defined(NV_IS_SAFETY) || (!NV_IS_SAFETY)
157 
169 #endif
171 
175 typedef enum
176 {
194 typedef struct
195 {
197  float F_Matrix[3][3];
199  float H_Matrix[3][3];
201  int32_t epipole_x;
203  int32_t epipole_y;
205  uint8_t direction;
207 
217 typedef struct
218 {
220  uint16_t startX;
222  uint16_t startY;
224  uint16_t endX;
226  uint16_t endY;
228 
232 typedef struct
233 {
236  uint32_t numOfROIs;
240 
244 typedef struct
245 {
247  uint16_t minWidth;
249  uint16_t minHeight;
251  uint16_t maxWidth;
253  uint16_t maxHeight;
255 
259 typedef struct NvMediaIofa
260 {
262  struct NvMediaIofaPriv *ofaPriv;
263 } NvMediaIofa;
264 
268 typedef struct
269 {
278  uint8_t ofaPydLevel;
284  uint16_t width[NVMEDIA_IOFA_MAX_PYD_LEVEL];
290  uint16_t height[NVMEDIA_IOFA_MAX_PYD_LEVEL];
301  uint16_t outWidth[NVMEDIA_IOFA_MAX_PYD_LEVEL];
308  uint16_t outHeight[NVMEDIA_IOFA_MAX_PYD_LEVEL];
321  bool vprMode;
330  /* OFA device Id
331  * \n this is index of selected OFA device
332  * \n Valid range is 0 to OFA Device list size-1
333  */
334  uint8_t ofaDeviceId;
336 
340 typedef enum {
348 
353 typedef struct
354 {
356  uint8_t penalty1[NVMEDIA_IOFA_MAX_PYD_LEVEL];
358  uint8_t penalty2[NVMEDIA_IOFA_MAX_PYD_LEVEL];
363  bool adaptiveP2[NVMEDIA_IOFA_MAX_PYD_LEVEL];
367  uint8_t alphaLog2[NVMEDIA_IOFA_MAX_PYD_LEVEL];
372  bool enableDiag[NVMEDIA_IOFA_MAX_PYD_LEVEL];
376  uint8_t numPasses[NVMEDIA_IOFA_MAX_PYD_LEVEL];
378  uint8_t diagP1[NVMEDIA_IOFA_MAX_PYD_LEVEL];
380  uint8_t diagP2[NVMEDIA_IOFA_MAX_PYD_LEVEL];
382 
386 typedef struct
387 {
389  uint8_t enableWM[NVMEDIA_IOFA_MAX_PYD_LEVEL];
394  uint8_t kernelSizeWM[NVMEDIA_IOFA_MAX_PYD_LEVEL];
398  uint8_t filterGuideWM[NVMEDIA_IOFA_MAX_PYD_LEVEL];
400 
404 typedef struct
405 {
407  uint8_t spatialHintEnable[NVMEDIA_IOFA_MAX_PYD_LEVEL];
409  uint8_t maxHintsPerGrid[NVMEDIA_IOFA_MAX_PYD_LEVEL];
411 
422 typedef struct
423 {
498 
502 typedef struct
503 {
504  uint8_t pydConstHintEnable[NVMEDIA_IOFA_MAX_CONST_HINTS];
505  /* S10.5 Format */
506  int16_t pydConstHintMvx[NVMEDIA_IOFA_MAX_CONST_HINTS];
507  /* S10.5 Format */
508  int16_t pydConstHintMvy[NVMEDIA_IOFA_MAX_CONST_HINTS];
509  /* Array of weight of Const Hints */
510  int8_t pydConstHintWeight[NVMEDIA_IOFA_MAX_CONST_HINTS];
512 
516 typedef struct
517 {
518  /* Array of weight of External Hints */
519  int8_t pydExtHintWeight[NVMEDIA_IOFA_MAX_EXTERNAL_HINTS];
521 
522 
526 typedef struct
527 {
544 
548 typedef struct
549 {
564  bool noopMode;
572 
600  NvMediaVersion *version
601 );
602 
625 NvMediaIofa *
627  void
628 );
629 
673  NvMediaIofa *ofaPubl,
674  const NvMediaIofaInitParams *initParams,
675  const uint8_t maxInputBuffering
676 );
677 
740  const NvMediaIofa *ofaPubl,
741  const NvMediaIofaBufArray *pSurfArray,
742  const NvMediaIofaProcessParams *pProcessParams,
743  const NvMediaIofaEpipolarInfo *pEpiInfo,
744  const NvMediaIofaROIParams *pROIParams
745 );
746 
780  const NvMediaIofa *ofaPubl
781 );
782 
839  const NvMediaIofa *ofaPubl,
841 );
842 
896  const NvMediaIofa *ofaPubl,
898 );
899 
900 
937  const NvMediaIofa *ofaPubl,
938  NvMediaIOFAParamType paramType,
939  void *pParams
940 );
941 
978  const NvMediaIofa *ofaPubl,
979  NvMediaIOFAParamType paramType,
980  const void *pParams
981 );
982 
1016  const NvMediaIofa *ofaPubl,
1017  NvMediaIofaSGMParams *pSGMParams
1018 );
1019 
1053  const NvMediaIofa *ofaPubl,
1054  const NvMediaIofaSGMParams *pSGMParams
1055 );
1056 
1098  const NvMediaIofa *ofaPubl,
1099  const NvMediaIofaMode mode,
1100  NvMediaIofaCapability *pCapability
1101 );
1102 
1145  NvSciBufAttrList attrlist
1146 );
1147 
1205  const NvMediaIofa *ofaPubl,
1206  NvSciSyncAttrList attrlist,
1207  NvMediaNvSciSyncClientType clienttype
1208 );
1209 
1267  const NvMediaIofa *ofaPubl,
1268  NvMediaNvSciSyncObjType syncobjtype,
1269  NvSciSyncObj syncObj
1270 );
1271 
1332  const NvMediaIofa *ofaPubl,
1333  NvSciSyncObj syncObj
1334 );
1335 
1382  const NvMediaIofa *ofaPubl,
1383  NvSciSyncObj nvscisyncEOF
1384 );
1385 
1446  const NvMediaIofa *ofaPubl,
1447  const NvSciSyncFence *prenvscisyncfence
1448 );
1449 
1509  const NvMediaIofa *ofaPubl,
1510  NvSciSyncObj eofnvscisyncobj,
1511  NvSciSyncFence *eofnvscisyncfence
1512 );
1513 
1543  NvMediaDeviceList *deviceList
1544 );
1545 
1546 /*
1547  * \defgroup 6x_history_nvmedia_iofa History
1548  * Provides change history for the NvMedia IOFA API.
1549  *
1550  * \section 6x_history_nvmedia_iofa Version History
1551  *
1552  * <b> Version 1.0 </b> September 28, 2021
1553  * - Initial release
1554  *
1555  * <b> Version 1.1 </b> December 20, 2021
1556  * - OFA Driver Refactoring
1557  *
1558  * <b> Version 1.2 </b> April 10, 2023
1559  * - Removed API NvMediaIOFAGetProfileData
1560  *
1561  * <b> Version 1.3 </b> April 22, 2023
1562  * - Add epiSearchRange in NvMediaIofaInitParams
1563  *
1564  * <b> Version 1.4 </b> February 19, 2024
1565  * - Change NVMEDIA_IOFA_MAX_PYD_LEVEL to 7
1566  *
1567  * <b> Version 2.0 </b> March 18,2024
1568  * - Add support for NvMediaIOFAQueryDevices API
1569  *
1570  * <b> Version 2.1 </b> May 16,2024
1571  * - Add new OFA HW features
1572  *
1573  * <b> Version 2.2 </b> November 04, 2024
1574  * - Add new preset for optical flow (not available on safety build)
1575  */
1576 
1578 #ifdef __cplusplus
1579 } /* extern "C" */
1580 #endif
1581 
1582 #endif // NVMEDIA_IOFA_H
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:122
NVMEDIA_IOFA_PRESET_OFSDK_MEDIUM
@ NVMEDIA_IOFA_PRESET_OFSDK_MEDIUM
OFSDK medium preset.
Definition: nvmedia_iofa.h:161
NvSciSyncTaskStatusOFA_Invalid
@ NvSciSyncTaskStatusOFA_Invalid
task status support is not enable
Definition: nvmedia_iofa.h:188
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:201
NVMEDIA_IOFA_MODE_EPIOF
@ NVMEDIA_IOFA_MODE_EPIOF
OFA epipolar optical flow mode.
Definition: nvmedia_iofa.h:78
NvSciSyncObj
struct NvSciSyncObjRec * NvSciSyncObj
Definition: wfdext.h:86
NvMediaIofaPreset
NvMediaIofaPreset
Nvmedia Iofa Preset.
Definition: nvmedia_iofa.h:150
NvMediaIofaExtHintParams
Parameters related to external hint surface.
Definition: nvmedia_iofa.h:516
NVMEDIA_IOFA_GRIDSIZE_8X8
@ NVMEDIA_IOFA_GRIDSIZE_8X8
Grid Size 8x8.
Definition: nvmedia_iofa.h:97
NvSciSyncTaskStatusOFA_Error_CRC_Mismatch
@ NvSciSyncTaskStatusOFA_Error_CRC_Mismatch
Definition: nvmedia_iofa.h:182
NvMediaIOFASetSGMConfigParams
NvMediaStatus NvMediaIOFASetSGMConfigParams(const NvMediaIofa *ofaPubl, const NvMediaIofaSGMParams *pSGMParams)
Set the SGM configuration parameters to be used.
NVMEDIA_IOFA_PRESET_OFSDK_FAST
@ NVMEDIA_IOFA_PRESET_OFSDK_FAST
OFSDK fast preset.
Definition: nvmedia_iofa.h:163
NvMediaIofaEpipolarInfo::direction
uint8_t direction
Direction: 0/1 - Search towards / away from epipole.
Definition: nvmedia_iofa.h:205
NvMediaIofaCapability::maxHeight
uint16_t maxHeight
max height supported by IOFA driver
Definition: nvmedia_iofa.h:253
NvMediaIofaROIParams::numOfROIs
uint32_t numOfROIs
Number of ROIs.
Definition: nvmedia_iofa.h:236
NvMediaIofaConstHintParams
Parameters related to const hint.
Definition: nvmedia_iofa.h:502
NVMEDIA_IOFA_GRIDSIZE_4X4
@ NVMEDIA_IOFA_GRIDSIZE_4X4
Grid Size 4x4.
Definition: nvmedia_iofa.h:95
NvMediaIofaProcessParams::pydExtHintParams
NvMediaIofaExtHintParams pydExtHintParams
Pyramid External Hints Parameters.
Definition: nvmedia_iofa.h:570
NvMediaIofaInitParams::pydMode
NvMediaIofaPydMode pydMode
Pyramid SGM Mode One of the value from NvMediaIofaPydMode.
Definition: nvmedia_iofa.h:316
NvMediaIofaCapability::minWidth
uint16_t minWidth
min width supported by IOFA driver
Definition: nvmedia_iofa.h:247
NvMediaIOFAFillNvSciSyncAttrList
NvMediaStatus NvMediaIOFAFillNvSciSyncAttrList(const NvMediaIofa *ofaPubl, NvSciSyncAttrList attrlist, NvMediaNvSciSyncClientType clienttype)
Fills the NvMediaIofa specific NvSciSync attributes.
NvMediaIOFAGetVersion
NvMediaStatus NvMediaIOFAGetVersion(NvMediaVersion *version)
Retrieves the version information for the NvMedia IOFA library.
NvSciSyncTaskStatusOFA_Error_Input_TaskStatus
@ NvSciSyncTaskStatusOFA_Error_Input_TaskStatus
Definition: nvmedia_iofa.h:185
NvMediaIofaInitParams
Holds IOFA Initialization API parameters.
Definition: nvmedia_iofa.h:268
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:52
NvMediaIOFAQueryDevices
NvMediaStatus NvMediaIOFAQueryDevices(NvMediaDeviceList *deviceList)
Query OFA devices present.
NvSciSyncTaskStatusOFA_Error_Timeout
@ NvSciSyncTaskStatusOFA_Error_Timeout
Definition: nvmedia_iofa.h:183
NvMediaIofa::ofaPriv
struct NvMediaIofaPriv * ofaPriv
An Opaque pointer for internal use.
Definition: nvmedia_iofa.h:262
NvMediaIOFAInsertPreNvSciSyncFence
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
@ NVMEDIA_IOFA_EPI_SEARCH_RANGE_128
Maximum Epipolar Flow Search Range of 128 pixels.
Definition: nvmedia_iofa.h:142
NVMEDIA_IOFA_MODE_STEREO
@ NVMEDIA_IOFA_MODE_STEREO
IOFA stereo disparity mode.
Definition: nvmedia_iofa.h:74
NvMediaIOFACreate
NvMediaIofa * NvMediaIOFACreate(void)
Creates an NvMediaIofa object that can compute optical flow or stereo disparity using two bufObjs.
NvMediaIOFAGetSGMConfigParams
NvMediaStatus NvMediaIOFAGetSGMConfigParams(const NvMediaIofa *ofaPubl, NvMediaIofaSGMParams *pSGMParams)
Get the SGM configuration parameters being used.
NvMediaIOFAGetEOFNvSciSyncFence
NvMediaStatus NvMediaIOFAGetEOFNvSciSyncFence(const NvMediaIofa *ofaPubl, NvSciSyncObj eofnvscisyncobj, NvSciSyncFence *eofnvscisyncfence)
Gets EOF NvSciSyncFence for an NvMediaIOFAProcessFrame() operation.
NVMEDIA_IOFA_MAX_CONST_HINTS
#define NVMEDIA_IOFA_MAX_CONST_HINTS
Number of constant hints supported.
Definition: nvmedia_iofa.h:56
mode
dwGPSMode mode
Definition: GPS.h:285
bufObj
const WFDPipeline NvSciBufObj *const bufObj
Definition: wfdext.h:82
NvMediaStatus
NvMediaStatus
Defines all possible error codes.
Definition: nvmedia_core.h:108
NvMediaIofaEpiSearchRange
NvMediaIofaEpiSearchRange
Defines IOFA Flow Epipolar Search Range.
Definition: nvmedia_iofa.h:139
NvMediaIofaROIRectParams
Holds Co-ordinates for Region of Interest.
Definition: nvmedia_iofa.h:217
NvMediaNvSciSyncObjType
NvMediaNvSciSyncObjType
Defines NvMedia NvSciSyncObj types.
Definition: nvmedia_core.h:206
NVMEDIA_IOFA_PRESET_HP_LEGACY
@ NVMEDIA_IOFA_PRESET_HP_LEGACY
High Performance Legacy Preset.
Definition: nvmedia_iofa.h:168
NvMediaIofaBufArray
Holds pointers to NvMedia bufObjs containing input and output surfaces.
Definition: nvmedia_iofa.h:422
NvMediaNvSciSyncClientType
NvMediaNvSciSyncClientType
NvMedia NvSciSync Client Type.
Definition: nvmedia_core.h:193
NvMediaIOFAUnregisterNvSciSyncObj
NvMediaStatus NvMediaIOFAUnregisterNvSciSyncObj(const NvMediaIofa *ofaPubl, NvSciSyncObj syncObj)
Unregisters an NvSciSyncObj with NvMediaIofa.
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:537
NVMEDIA_IOFA_DISPARITY_RANGE_256
@ NVMEDIA_IOFA_DISPARITY_RANGE_256
Maximum Stereo Disparity Range of 256 pixels.
Definition: nvmedia_iofa.h:133
NvSciBufObj
struct NvSciBufObjRefRec * NvSciBufObj
Definition: wfdext.h:71
NvMediaIOFAFillNvSciBufAttrList
NvMediaStatus NvMediaIOFAFillNvSciBufAttrList(NvSciBufAttrList attrlist)
Fills the NvMediaIofa specific NvSciBuf attributes which than then be used to allocate an NvSciBufObj...
NvSciBufAttrList
struct NvSciBufAttrListRec * NvSciBufAttrList
Definition: wfdext.h:73
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:203
nvscisync.h
NVIDIA Software Communications Interface (SCI) : NvSciSync
NvMediaIOFAGetCapability
NvMediaStatus NvMediaIOFAGetCapability(const NvMediaIofa *ofaPubl, const NvMediaIofaMode mode, NvMediaIofaCapability *pCapability)
Get IOFA Capability.
WMF_PARAM
@ WMF_PARAM
IOFA WMF parameters, NvMediaIofaSGMParams.
Definition: nvmedia_iofa.h:344
NVMEDIA_IOFA_GRIDSIZE_2X2
@ NVMEDIA_IOFA_GRIDSIZE_2X2
Grid Size 2x2.
Definition: nvmedia_iofa.h:93
NvMediaVersion
Holds NvMedia version information.
Definition: nvmedia_core.h:168
NvMediaIofaWMFParams
Holds WMF parameters.
Definition: nvmedia_iofa.h:386
NvMediaIofaROIParams
Structure holds ROI information.
Definition: nvmedia_iofa.h:232
NVMEDIA_IOFA_EPI_SEARCH_RANGE_256
@ NVMEDIA_IOFA_EPI_SEARCH_RANGE_256
Maximum Epipolar Flow Search Range of 256 pixels.
Definition: nvmedia_iofa.h:144
NvMediaIofaROIRectParams::startY
uint16_t startY
ROI top-left y index (in pixel unit)
Definition: nvmedia_iofa.h:222
SGM_PARAM
@ SGM_PARAM
IOFA SGM parameters, NvMediaIofaSGMParams.
Definition: nvmedia_iofa.h:342
NvMediaIofaSGMParams
Holds SGM parameters TBD: Add more details about SGM Params with input range.
Definition: nvmedia_iofa.h:353
NVMEDIA_IOFA_MAX_ROI_SUPPORTED
#define NVMEDIA_IOFA_MAX_ROI_SUPPORTED
Maximum number of Region of Interest supported on IOFA.
Definition: nvmedia_iofa.h:54
NvMediaIofaPydHintParams
Parameters related to input pyramid hint surface.
Definition: nvmedia_iofa.h:526
NvMediaIofaInitParams::preset
NvMediaIofaPreset preset
Ofa Preset One of the value from NvMediaIofaPreset.
Definition: nvmedia_iofa.h:325
NvMediaIOFARegisterNvSciSyncObj
NvMediaStatus NvMediaIOFARegisterNvSciSyncObj(const NvMediaIofa *ofaPubl, NvMediaNvSciSyncObjType syncobjtype, NvSciSyncObj syncObj)
Registers an NvSciSyncObj with NvMediaIofa.
NvMediaIofaProcessParams::noopMode
bool noopMode
noop flag true Avoid ofa processing and signal frame done false Normal ofa processing (default)
Definition: nvmedia_iofa.h:564
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:542
NvSciSyncTaskStatusOFA_Success
@ NvSciSyncTaskStatusOFA_Success
task is finished successully
Definition: nvmedia_iofa.h:178
NvMediaIofaProcessParams::rightDispMap
bool rightDispMap
Enable right view disparity map.
Definition: nvmedia_iofa.h:555
NvMediaIofaInitParams::dispRange
NvMediaIofaDisparityRange dispRange
Stereo Disparity Range One of the value from NvMediaIofaDisparityRange.
Definition: nvmedia_iofa.h:312
NVMEDIA_IOFA_MODE_PYDOF
@ NVMEDIA_IOFA_MODE_PYDOF
IOFA pyramid optical flow mode.
Definition: nvmedia_iofa.h:76
NvMediaIofaProcessParams::pydConstHintParams
NvMediaIofaConstHintParams pydConstHintParams
Pyramid Const Hints Parameters.
Definition: nvmedia_iofa.h:568
NVMEDIA_IOFA_PRESET_HQ
@ NVMEDIA_IOFA_PRESET_HQ
High Quality Preset.
Definition: nvmedia_iofa.h:153
NVMEDIA_IOFA_MAX_EXTERNAL_HINTS
#define NVMEDIA_IOFA_MAX_EXTERNAL_HINTS
Number of external hints supported.
Definition: nvmedia_iofa.h:58
NVMEDIA_IOFA_DISPARITY_RANGE_128
@ NVMEDIA_IOFA_DISPARITY_RANGE_128
Maximum Stereo Disparity Range of 128 pixels.
Definition: nvmedia_iofa.h:131
NvMediaIofaCapability::maxWidth
uint16_t maxWidth
max width supported by IOFA driver
Definition: nvmedia_iofa.h:251
NvMediaIofaROIRectParams::endY
uint16_t endY
ROI bottom-right index (in pixel unit).
Definition: nvmedia_iofa.h:226
nvmedia_core.h
NVIDIA Media Interface: Core
NvMediaIOFADestroy
NvMediaStatus NvMediaIOFADestroy(const NvMediaIofa *ofaPubl)
Destroys the created NvMediaIofa object and frees associated resources.
NvMediaIofaProcessParams
Holds IOFA Process Frame API parameters.
Definition: nvmedia_iofa.h:548
NvMediaIofa
struct NvMediaIofa NvMediaIofa
Holds an IOFA object created and returned by NvMediaIOFACreate().
NvMediaIofaInitParams::ofaDeviceId
uint8_t ofaDeviceId
Definition: nvmedia_iofa.h:334
NvMediaIofa
Holds an IOFA object created and returned by NvMediaIOFACreate().
Definition: nvmedia_iofa.h:259
NVMEDIA_IOFA_PRESET_OFSDK_SLOW
@ NVMEDIA_IOFA_PRESET_OFSDK_SLOW
Following presets are supported with NVMEDIA_OFA_MODE_PYDSGM mode only.
Definition: nvmedia_iofa.h:159
NvSciSyncTaskStatusOFA_Execution_Start
@ NvSciSyncTaskStatusOFA_Execution_Start
Definition: nvmedia_iofa.h:181
NvMediaIofaPydMode
NvMediaIofaPydMode
Modes for pyramid SGM Applicable to Pyramid SGM IOFA mode only.
Definition: nvmedia_iofa.h:104
NvMediaIofaMode
NvMediaIofaMode
Defines mode supported by IOFA Driver.
Definition: nvmedia_iofa.h:71
NvMediaIOFASetNvSciSyncObjforEOF
NvMediaStatus NvMediaIOFASetNvSciSyncObjforEOF(const NvMediaIofa *ofaPubl, NvSciSyncObj nvscisyncEOF)
Specifies the NvSciSyncObj to be used for an EOF NvSciSyncFence.
NvMediaIofaHINTParams
Holds HINT parameters.
Definition: nvmedia_iofa.h:404
NvMediaIOFAUnregisterNvSciBufObj
NvMediaStatus NvMediaIOFAUnregisterNvSciBufObj(const NvMediaIofa *ofaPubl, NvSciBufObj bufObj)
Un-registers NvSciBufObj which was previously registered with NvMediaIofa using NvMediaIOFARegisterNv...
NvMediaIofaProcessParams::pydHintParams
NvMediaIofaPydHintParams pydHintParams
Pyramid hints parameters.
Definition: nvmedia_iofa.h:566
NVMEDIA_IOFA_PRESET_HQ_LEGACY
@ NVMEDIA_IOFA_PRESET_HQ_LEGACY
Following presets are enabled temporarily for perf comparison and regression testing.
Definition: nvmedia_iofa.h:166
NvMediaIofaROIRectParams::startX
uint16_t startX
ROI top-left x index (in pixel unit)
Definition: nvmedia_iofa.h:220
NvMediaIofaEpipolarInfo
Structure holds Epipolar information.
Definition: nvmedia_iofa.h:194
NvMediaIofaInitParams::epiSearchRange
NvMediaIofaEpiSearchRange epiSearchRange
Epipolar search range in pixels One of the value from NvMediaIofaEpiSearchRange.
Definition: nvmedia_iofa.h:329
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:278
NvSciSyncFence
Defines the opaque NvSciSyncFence.
Definition: nvscisync.h:256
NvMediaIofaProcessParams::currentPydLevel
uint8_t currentPydLevel
Current level to process in Pyd SGM LEVEL Mode.
Definition: nvmedia_iofa.h:559
NVMEDIA_IOFA_PYD_FRAME_MODE
@ NVMEDIA_IOFA_PYD_FRAME_MODE
All pyramid levels of a input and reference frame will be processed in single NvMediaIOFAProcessFrame...
Definition: nvmedia_iofa.h:112
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.
nvscibuf.h
NVIDIA Software Communications Interface (SCI) : NvSciBuf
NvMediaIOFARegisterNvSciBufObj
NvMediaStatus NvMediaIOFARegisterNvSciBufObj(const NvMediaIofa *ofaPubl, NvSciBufObj bufObj)
Registers an NvSciBufObj for use with an NvMediaIofa handle.
NvMediaIOFASetConfigParams
NvMediaStatus NvMediaIOFASetConfigParams(const NvMediaIofa *ofaPubl, NvMediaIOFAParamType paramType, const void *pParams)
Set the given paramtype configuration parameters to be used.
NvMediaIofaGridSize
NvMediaIofaGridSize
Defines the Output Grid Size.
Definition: nvmedia_iofa.h:88
NvMediaIofaCapability::minHeight
uint16_t minHeight
min height supported by IOFA driver
Definition: nvmedia_iofa.h:249
NvMediaIOFAInit
NvMediaStatus NvMediaIOFAInit(NvMediaIofa *ofaPubl, const NvMediaIofaInitParams *initParams, const uint8_t maxInputBuffering)
Initializes the parameters for optical flow and stereo estimation.
NvMediaIofaDisparityRange
NvMediaIofaDisparityRange
Defines IOFA Stereo DISPARITY RANGE.
Definition: nvmedia_iofa.h:128
NvMediaIofaInitParams::ofaMode
NvMediaIofaMode ofaMode
Iofa Mode type One of ofa mode types provided in NvMediaIofaMode.
Definition: nvmedia_iofa.h:273
NvSciSyncTaskStatusOFA
NvSciSyncTaskStatusOFA
NvMedia Iofa task status error codes.
Definition: nvmedia_iofa.h:175
NvMediaIOFAGetConfigParams
NvMediaStatus NvMediaIOFAGetConfigParams(const NvMediaIofa *ofaPubl, NvMediaIOFAParamType paramType, void *pParams)
Get the given paramtype configuration parameters being used.
NvMediaIOFAParamType
NvMediaIOFAParamType
Enum to identify Configurable parameters supported by IOFA Driver.
Definition: nvmedia_iofa.h:340
NvSciSyncTaskStatusOFA_Error
@ NvSciSyncTaskStatusOFA_Error
task status error codes
Definition: nvmedia_iofa.h:180
NvSciSyncAttrList
struct NvSciSyncAttrListRec * NvSciSyncAttrList
Definition: wfdext.h:88
NvSciSyncTaskStatusOFA_Error_SW
@ NvSciSyncTaskStatusOFA_Error_SW
Definition: nvmedia_iofa.h:186
NvMediaIofaCapability
Nvmedia Iofa Capability structure.
Definition: nvmedia_iofa.h:244
NVMEDIA_IOFA_GRIDSIZE_1X1
@ NVMEDIA_IOFA_GRIDSIZE_1X1
Grid Size 1x1.
Definition: nvmedia_iofa.h:91
HINT_PARAM
@ HINT_PARAM
IOFA HINT parameters, NvMediaIofaHINTParams.
Definition: nvmedia_iofa.h:346
NvSciSyncTaskStatusOFA_Error_HW
@ NvSciSyncTaskStatusOFA_Error_HW
Definition: nvmedia_iofa.h:184
NVMEDIA_IOFA_PRESET_HP
@ NVMEDIA_IOFA_PRESET_HP
High Performance Preset.
Definition: nvmedia_iofa.h:155
NvMediaIofaPydHintParams::pydHintMagnitudeScale2x
bool pydHintMagnitudeScale2x
IOFA HW supported input hint mv magnitude scaling.
Definition: nvmedia_iofa.h:532
NvMediaIofaROIRectParams::endX
uint16_t endX
ROI bottom-right index (in pixel unit).
Definition: nvmedia_iofa.h:224
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:321