MPP Programming Interface Reference Manual  jpl-r2.0.0
mpi_iva.h File Reference

MPI for IVA. More...

#include <sys/time.h>
#include "mpi_common.h"

Data Structures

struct  MPI_IVA_OD_PARAM_S
 Structure for the parameters of object detection. More...
 
struct  MPI_IVA_OBJ_ATTR_S
 Struct for object attributes. More...
 
struct  MPI_IVA_OBJ_LIST_S
 Struct for object list. More...
 

Macros

#define MPI_IVA_MAX_OBJ_NUM   10
 
#define MPI_IVA_MAX_OBJ_INDEX_NUM   30
 
#define MPI_IVA_OD_MAX_QUA   63
 
#define MPI_IVA_OD_MIN_QUA   0
 
#define MPI_IVA_OD_MAX_TRACK_REFINE   63
 
#define MPI_IVA_OD_MIN_TRACK_REFINE   0
 
#define MPI_IVA_OD_MAX_OBJ_SIZE   255
 
#define MPI_IVA_OD_MIN_OBJ_SIZE   0
 
#define MPI_IVA_OD_MAX_SEN   255
 
#define MPI_IVA_OD_MIN_SEN   0
 
#define MPI_IVA_OD_MAX_LIFE   160
 

Functions

INT32 MPI_IVA_enableObjDet (MPI_WIN idx)
 Enable object detection on specified video window. More...
 
INT32 MPI_IVA_disableObjDet (MPI_WIN idx)
 Disable object detection on specified video window. More...
 
INT32 MPI_IVA_setObjParam (MPI_WIN idx, const MPI_IVA_OD_PARAM_S *param)
 Set object detection parameters. More...
 
INT32 MPI_IVA_getObjParam (MPI_WIN idx, MPI_IVA_OD_PARAM_S *param)
 Get object detection parameters. More...
 
INT32 MPI_IVA_getObjList (MPI_WIN idx, MPI_IVA_OBJ_LIST_S *list)
 Get current object list. More...
 
INT32 MPI_IVA_getBitStreamObjList (MPI_WIN idx, UINT32 timestamp, MPI_IVA_OBJ_LIST_S *list)
 Get object list for specific frame index. More...
 

Detailed Description

MPI for IVA.

Macro Definition Documentation

#define MPI_IVA_MAX_OBJ_INDEX_NUM   30

Max object index number. Align with OD algo

#define MPI_IVA_MAX_OBJ_NUM   10

Max object number.

#define MPI_IVA_OD_MAX_LIFE   160

Max life of object.

#define MPI_IVA_OD_MAX_OBJ_SIZE   255

Max object size(percentage in a frame size).

#define MPI_IVA_OD_MAX_QUA   63

Max object detection quality index.

#define MPI_IVA_OD_MAX_SEN   255

Max object detection sensitivity.

#define MPI_IVA_OD_MAX_TRACK_REFINE   63

Max object detection track refinement index.

#define MPI_IVA_OD_MIN_OBJ_SIZE   0

Min object size(percentage in a frame size).

#define MPI_IVA_OD_MIN_QUA   0

Min object detection quality index.

#define MPI_IVA_OD_MIN_SEN   0

Min object detection sensitivity.

#define MPI_IVA_OD_MIN_TRACK_REFINE   0

Min object detection track refinement index.

Function Documentation

INT32 MPI_IVA_disableObjDet ( MPI_WIN  idx)

Disable object detection on specified video window.

Parameters
[in]idxvideo window index.
See also
MPI_IVA_enableObjDet()
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_ERR_DEV_NOT_PERMobject detection hasn't been enabled.
MPI_ERR_DEV_CONFLICTobject detection run on another video window.
MPI_FAILUREunexpected fail.
INT32 MPI_IVA_enableObjDet ( MPI_WIN  idx)

Enable object detection on specified video window.

Parameters
[in]idxvideo window index.
See also
MPI_IVA_disableObjDet()
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_ERR_DEV_BUSYobject detection has been enabled.
MPI_FAILUREunexpected fail.
INT32 MPI_IVA_getBitStreamObjList ( MPI_WIN  idx,
UINT32  timestamp,
MPI_IVA_OBJ_LIST_S list 
)

Get object list for specific frame index.

Parameters
[in]idxvideo window index.
[in]timestamptime stamp from bit-stream.
[out]listobject list.
See also
MPI_IVA_getObjList()
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_ERR_DEV_NOT_PERMobject detection hasn't been enabled.
MPI_ERR_DEV_CONFLICTobject detection run on another video window.
MPI_ERR_DEV_INVALID_PARAMframe count difference is too large.
MPI_FAILUREunexpected fail.
INT32 MPI_IVA_getObjList ( MPI_WIN  idx,
MPI_IVA_OBJ_LIST_S list 
)

Get current object list.

Parameters
[in]idxvideo window index.
[out]listobject list.
See also
MPI_IVA_getBitStreamObjList()
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_ERR_DEV_NOT_PERMobject detection hasn't been enabled.
MPI_ERR_DEV_CONFLICTobject detection run on another video window.
MPI_FAILUREunexpected fail.
INT32 MPI_IVA_getObjParam ( MPI_WIN  idx,
MPI_IVA_OD_PARAM_S param 
)

Get object detection parameters.

Parameters
[in]idxvideo window index.
[out]paramobject detection parameters.
See also
MPI_IVA_setObjParam()
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_FAILUREunexpected fail.
INT32 MPI_IVA_setObjParam ( MPI_WIN  idx,
const MPI_IVA_OD_PARAM_S param 
)

Set object detection parameters.

Parameters
[in]idxvideo window index.
[in]paramobject detection parameters.
See also
MPI_IVA_getObjParam()
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_INVALID_PARAMinvalid parameters.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_FAILUREunexpected fail.