PDK API Guide for J721E
SDE Configuration

Introduction

This is SDE Configuration file

Files

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

Data Structures

struct  Sde_Config
 Connfiguration parameters of DMPAC SDE. More...
 
struct  Sde_ErrEventParams
 Structure for error event parameters Used to register callback for the given set of events. More...
 

Functions

static void Sde_ConfigInit (Sde_Config *sdeCfg)
 This function should be used to initialize SDE configuration. More...
 

Typedefs

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

Macros

#define DMPAC_SDE_NUM_SCORE_MAP   (8U)
 

SDE Supported Resolution

Maximum and minimum supported image resolution by SDE

#define SDE_MIN_IMAGE_WIDTH   (128U)
 
#define SDE_MIN_IMAGE_HEIGHT   (64U)
 
#define SDE_MAX_IMAGE_WIDTH   (2048U)
 
#define SDE_MAX_IMAGE_HEIGHT   (1024U)
 

SDE SR

Disparity Search Range

#define SDE_SR_64   (0U)
 
#define SDE_SR_128   (1U)
 
#define SDE_SR_192   (2U)
 

SDE Error Events

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

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

#define VHWA_SDE_RD_ERR   (0x40000U)
 Error on SDE VBUSM Read interface. More...
 
#define VHWA_SDE_WR_ERR   (0x80000U)
 Error on FOCO0 SL2 VBSUM Write interface. More...
 
#define VHWA_SDE_FOCO0_SL2_WR_ERR   (0x2000000U)
 Error on FOCO0 VBUSM Read interface. More...
 
#define VHWA_SDE_FOCO0_VBUSM_RD_ERR   (0x1000000U)
 

Macro Definition Documentation

◆ DMPAC_SDE_NUM_SCORE_MAP

#define DMPAC_SDE_NUM_SCORE_MAP   (8U)

◆ SDE_MIN_IMAGE_WIDTH

#define SDE_MIN_IMAGE_WIDTH   (128U)

◆ SDE_MIN_IMAGE_HEIGHT

#define SDE_MIN_IMAGE_HEIGHT   (64U)

◆ SDE_MAX_IMAGE_WIDTH

#define SDE_MAX_IMAGE_WIDTH   (2048U)

◆ SDE_MAX_IMAGE_HEIGHT

#define SDE_MAX_IMAGE_HEIGHT   (1024U)

◆ SDE_SR_64

#define SDE_SR_64   (0U)

◆ SDE_SR_128

#define SDE_SR_128   (1U)

◆ SDE_SR_192

#define SDE_SR_192   (2U)

◆ VHWA_SDE_RD_ERR

#define VHWA_SDE_RD_ERR   (0x40000U)

Error on SDE VBUSM Read interface.

<Error on SDE SL2 VBSUM Write interface

◆ VHWA_SDE_WR_ERR

#define VHWA_SDE_WR_ERR   (0x80000U)

Error on FOCO0 SL2 VBSUM Write interface.

◆ VHWA_SDE_FOCO0_SL2_WR_ERR

#define VHWA_SDE_FOCO0_SL2_WR_ERR   (0x2000000U)

Error on FOCO0 VBUSM Read interface.

◆ VHWA_SDE_FOCO0_VBUSM_RD_ERR

#define VHWA_SDE_FOCO0_VBUSM_RD_ERR   (0x1000000U)

Typedef Documentation

◆ Sde_ErrEventCbFxn

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

Prototype for the Error Event for SDE. The callback for the SDE error events can be registered using Sde_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 Sde_ErrorEvents for valid values.
Returns
None.

Function Documentation

◆ Sde_ConfigInit()

static void Sde_ConfigInit ( Sde_Config sdeCfg)
inlinestatic

This function should be used to initialize SDE configuration.

Parameters
sdeCfgA pointer of type Sde_Config
Returns
None