PDK API Guide for J721E
DOF Configuration

Introduction

This is DOF Configuration file

Files

file  dof_cfg.h
 Defines the structures / control operations that could be used to configure / control DOF of DMPAC.
 

Data Structures

struct  Dof_Config
 Connfiguration parameters of DMPAC DOF. More...
 
struct  Dof_DecisionTree
 Decision Tree Connfiguration parameters of DOF. More...
 
struct  Dof_ConfScoreParam
 Confidance Score parameters of DMPAC DOF. More...
 
struct  Dof_ErrEventParams
 Structure for error event parameters Used to register callback for the given set of events. More...
 

Functions

static void DofCfg_init (Dof_Config *dofCfg)
 This function should be used to initialize variable of type Dof_Config. More...
 
static void Dof_DecisionTreesInit (Dof_ConfScoreParam *dofCfg)
 This function should be used to initialize variable of type Dof_ConfScoreParam. More...
 

Typedefs

typedef void(* Dof_ErrEventCbFxn) (Fvid2_Handle handle, uint32_t errEvents, void *appData)
 Prototype for the Error Event for DOF. The callback for the DOF error events can be registered using Dof_ErrEventParams. One of the parameter in this is call back. Driver calls this callback when error occurs. More...
 

Macros

#define DOF_NUM_DECISION_TREES   (16U)
 Number of decesion tree parameters for DOF. More...
 
#define DOF_MAX_PYR_LVL_SUPPORTED   (7U)
 Number of decesion tree parameters for DOF. More...
 

DOF Supported Resolution

Maximum and minimum supported image resolution by DOF

#define DOF_MINIMUM_WIDTH   (32U)
 
#define DOF_MINIMUM_HEIGHT   (16U)
 
#define DOF_MAXIMUM_WIDTH   (2048U)
 
#define DOF_MAXIMUM_HEIGHT   (1024U)
 

DOF Supported Search range

Supported horizontal and vertical search range

#define DOF_MAXIMUM_HSR   (191U)
 
#define DOF_MAXIMUM_VSR   (62U)
 
#define DOF_MAXIMUM_TVSR_WTIH_191_HSR   (112U)
 
#define DOF_MAXIMUM_HSR_WTIH_124_VSR   (170U)
 

DOF Predictors

Predictors available for DOF

#define DOF_PREDICTOR_NONE   (0U)
 No Predictor used. More...
 
#define DOF_PREDICTOR_DELEY_LEFT   (1U)
 Delayed left predictor. More...
 
#define DOF_PREDICTOR_TEMPORAL   (2U)
 Temporal predictor, Need flow vector output from previous image pair as Temporal input, can only be set for base layer. More...
 
#define DOF_PREDICTOR_PYR_LEFT   (3U)
 Pyramidal left predictor, can be set for base and intermediate layers. More...
 
#define DOF_PREDICTOR_PYR_COLOCATED   (4U)
 Pyramidal colocated predictor, can be set for base and intermediate layers. More...
 

DOF Error Events

Macro's to define DOF Error events, for which DOF callback could be registered.

Caution: These macro values are directly used by driver for enabling events.

#define VHWA_DOF_RD_ERR   (0x04U)
 Error on DOF VBUSM Read interface. More...
 
#define VHWA_DOF_WR_ERR   (0x08U)
 Error on DOF MP0 Read Status Error. More...
 
#define VHWA_DOF_MP0_RD_STATUS_ERR   (0x10U)
 Error on FOCO0 SL2 VBSUM Write interface. More...
 
#define VHWA_DOF_FOCO0_SL2_WR_ERR   (0x400000U)
 Error on FOCO0 VBUSM Read interface. More...
 
#define VHWA_DOF_FOCO0_VBUSM_RD_ERR   (0x200000U)
 

Macro Definition Documentation

◆ DOF_NUM_DECISION_TREES

#define DOF_NUM_DECISION_TREES   (16U)

Number of decesion tree parameters for DOF.

◆ DOF_MAX_PYR_LVL_SUPPORTED

#define DOF_MAX_PYR_LVL_SUPPORTED   (7U)

Number of decesion tree parameters for DOF.

◆ DOF_MINIMUM_WIDTH

#define DOF_MINIMUM_WIDTH   (32U)

◆ DOF_MINIMUM_HEIGHT

#define DOF_MINIMUM_HEIGHT   (16U)

◆ DOF_MAXIMUM_WIDTH

#define DOF_MAXIMUM_WIDTH   (2048U)

◆ DOF_MAXIMUM_HEIGHT

#define DOF_MAXIMUM_HEIGHT   (1024U)

◆ DOF_MAXIMUM_HSR

#define DOF_MAXIMUM_HSR   (191U)

◆ DOF_MAXIMUM_VSR

#define DOF_MAXIMUM_VSR   (62U)

◆ DOF_MAXIMUM_TVSR_WTIH_191_HSR

#define DOF_MAXIMUM_TVSR_WTIH_191_HSR   (112U)

◆ DOF_MAXIMUM_HSR_WTIH_124_VSR

#define DOF_MAXIMUM_HSR_WTIH_124_VSR   (170U)

◆ DOF_PREDICTOR_NONE

#define DOF_PREDICTOR_NONE   (0U)

No Predictor used.

◆ DOF_PREDICTOR_DELEY_LEFT

#define DOF_PREDICTOR_DELEY_LEFT   (1U)

Delayed left predictor.

◆ DOF_PREDICTOR_TEMPORAL

#define DOF_PREDICTOR_TEMPORAL   (2U)

Temporal predictor, Need flow vector output from previous image pair as Temporal input, can only be set for base layer.

◆ DOF_PREDICTOR_PYR_LEFT

#define DOF_PREDICTOR_PYR_LEFT   (3U)

Pyramidal left predictor, can be set for base and intermediate layers.

◆ DOF_PREDICTOR_PYR_COLOCATED

#define DOF_PREDICTOR_PYR_COLOCATED   (4U)

Pyramidal colocated predictor, can be set for base and intermediate layers.

◆ VHWA_DOF_RD_ERR

#define VHWA_DOF_RD_ERR   (0x04U)

Error on DOF VBUSM Read interface.

<Error on DOF SL2 VBSUM Write interface

◆ VHWA_DOF_WR_ERR

#define VHWA_DOF_WR_ERR   (0x08U)

Error on DOF MP0 Read Status Error.

◆ VHWA_DOF_MP0_RD_STATUS_ERR

#define VHWA_DOF_MP0_RD_STATUS_ERR   (0x10U)

Error on FOCO0 SL2 VBSUM Write interface.

◆ VHWA_DOF_FOCO0_SL2_WR_ERR

#define VHWA_DOF_FOCO0_SL2_WR_ERR   (0x400000U)

Error on FOCO0 VBUSM Read interface.

◆ VHWA_DOF_FOCO0_VBUSM_RD_ERR

#define VHWA_DOF_FOCO0_VBUSM_RD_ERR   (0x200000U)

Typedef Documentation

◆ Dof_ErrEventCbFxn

typedef void(* Dof_ErrEventCbFxn) (Fvid2_Handle handle, uint32_t errEvents, void *appData)

Prototype for the Error Event for DOF. The callback for the DOF error events can be registered using Dof_ErrEventParams. One of the parameter in this is call back. Driver calls this callback when error occurs.

Parameters
handleFVID2 driver handle, for which error has occurred.
errEventsError Events occured, Refer to Dof_ErrorEvents for valid values.
Returns
None.

Function Documentation

◆ DofCfg_init()

static void DofCfg_init ( Dof_Config dofCfg)
inlinestatic

This function should be used to initialize variable of type Dof_Config.

Parameters
dofCfgA pointer of type Dof_Config
Returns
None

◆ Dof_DecisionTreesInit()

static void Dof_DecisionTreesInit ( Dof_ConfScoreParam dofCfg)
inlinestatic

This function should be used to initialize variable of type Dof_ConfScoreParam.

Parameters
dofCfgA pointer of type Dof_ConfScoreParam
Returns
None