MPI for video device. More...
#include "mpi_index.h"
Data Structures | |
struct | MPI_PATH_ATTR_S |
Struct for input path attributes. More... | |
struct | MPI_DEV_ATTR_S |
Struct for the attribute of video device. More... | |
struct | MPI_CHN_ATTR_S |
Struct for video channel attributes. More... | |
struct | MPI_CHN_STAT_S |
Struct for channel state. More... | |
struct | MPI_LDC_ATTR_S |
Struct for the attribute of LDC(Lens Distortion Correction). More... | |
struct | MPI_PANORAMA_ATTR_S |
Struct for the attribute of fisheye panorama. More... | |
struct | MPI_PANNING_ATTR_S |
Struct for the attribute of fisheye panning. More... | |
struct | MPI_SURROUND_ATTR_S |
Struct for the attribute of fisheye surround. More... | |
struct | MPI_STITCH_DIST_S |
Struct for stitch parmeters at certain distance. More... | |
struct | MPI_STITCH_ATTR_S |
Struct for the attribute of content adaptive stitching. More... | |
struct | MPI_WIN_ATTR_S |
Struct for the video window attributes. More... | |
struct | MPI_CHN_LAYOUT_S |
Struct for the video channel layout. More... | |
struct | MPI_ISP_MV_HIST_CFG_S |
Struct for the configuration of ISP MV hist. More... | |
struct | MPI_ISP_MV_HIST_S |
Struct for the of ISP MV hist. More... | |
struct | MPI_ISP_VAR_CFG_S |
Struct for the of ISP variance configuration. More... | |
struct | MPI_ISP_VAR_S |
Struct for the of ISP variance. More... | |
struct | MPI_ISP_Y_AVG_CFG_S |
Struct for the of ISP variance configuration. More... | |
struct | MPI_VIDEO_FRAME_INFO_S |
Struct for the video frame information. More... | |
Typedefs | |
typedef UINT16 | MPI_ISP_Y_AVG |
MPI_ISP_Y_AVG is represented by UINT16. | |
Functions | |
INT32 | MPI_DEV_addPath (MPI_PATH idx, const MPI_PATH_ATTR_S *p_path_attr) |
Add a input path and set its attributes. More... | |
INT32 | MPI_DEV_deletePath (MPI_PATH idx) |
Delete an input path. More... | |
INT32 | MPI_DEV_setPathAttr (MPI_PATH idx, const MPI_PATH_ATTR_S *p_path_attr) |
Set the input path attributes. More... | |
INT32 | MPI_DEV_getPathAttr (MPI_PATH idx, MPI_PATH_ATTR_S *p_path_attr) |
Get the input path attributes. More... | |
INT32 | MPI_DEV_createDev (MPI_DEV idx, const MPI_DEV_ATTR_S *p_dev_attr) |
Create a video device. More... | |
INT32 | MPI_DEV_destroyDev (MPI_DEV idx) |
Delete a video device. More... | |
INT32 | MPI_DEV_setDevAttr (MPI_DEV idx, const MPI_DEV_ATTR_S *p_dev_attr) |
Set the attributes of a video device. More... | |
INT32 | MPI_DEV_getDevAttr (MPI_DEV idx, MPI_DEV_ATTR_S *p_dev_attr) |
Get the attributes of a video device. More... | |
INT32 | MPI_DEV_startDev (MPI_DEV idx) |
Start the video device. More... | |
INT32 | MPI_DEV_stopDev (MPI_DEV idx) |
Stop a video device. More... | |
INT32 | MPI_DEV_addChn (MPI_CHN idx, const MPI_CHN_ATTR_S *p_chn_attr) |
Add a video channel and set its attributes. More... | |
INT32 | MPI_DEV_deleteChn (MPI_CHN idx) |
Delete a video channel. More... | |
INT32 | MPI_DEV_setChnAttr (MPI_CHN idx, const MPI_CHN_ATTR_S *p_chn_attr) |
Set the video channel attribute. More... | |
INT32 | MPI_DEV_getChnAttr (MPI_CHN idx, MPI_CHN_ATTR_S *p_chn_attr) |
Get the video channel attributes. More... | |
INT32 | MPI_DEV_setChnLayout (MPI_CHN idx, const MPI_CHN_LAYOUT_S *p_chn_layout) |
Set the video channel layout. More... | |
INT32 | MPI_DEV_getChnLayout (MPI_CHN idx, MPI_CHN_LAYOUT_S *p_chn_layout) |
Get the video channel layout. More... | |
INT32 | MPI_DEV_setWindowAttr (MPI_WIN idx, const MPI_WIN_ATTR_S *p_window_attr) |
Set the video window attribute. More... | |
INT32 | MPI_DEV_getWindowAttr (MPI_WIN idx, MPI_WIN_ATTR_S *p_window_attr) |
Get the video window attribute. More... | |
INT32 | MPI_DEV_setWindowRoi (MPI_WIN idx, const MPI_RECT_S *p_roi) |
Set the video window ROI. More... | |
INT32 | MPI_DEV_getWindowRoi (MPI_WIN idx, MPI_RECT_S *p_roi) |
Get the video window ROI. More... | |
INT32 | MPI_DEV_setStitchAttr (MPI_WIN idx, const MPI_STITCH_ATTR_S *p_stitch_attr) |
Set content adaptive stitching attribute. More... | |
INT32 | MPI_DEV_getStitchAttr (MPI_WIN idx, MPI_STITCH_ATTR_S *p_stitch_attr) |
Get content adaptive stitching attribute. More... | |
INT32 | MPI_DEV_setLdcAttr (MPI_WIN idx, const MPI_LDC_ATTR_S *p_ldc_attr) |
Set lens distortion correction attribute. More... | |
INT32 | MPI_DEV_getLdcAttr (MPI_WIN idx, MPI_LDC_ATTR_S *p_ldc_attr) |
Get lens distortion correction attribute. More... | |
INT32 | MPI_DEV_setPanoramaAttr (MPI_WIN idx, const MPI_PANORAMA_ATTR_S *p_panorama_attr) |
Set fisheye panorama attribute. More... | |
INT32 | MPI_DEV_getPanoramaAttr (MPI_WIN idx, MPI_PANORAMA_ATTR_S *p_panorama_attr) |
Get fisheye panorama attribute. More... | |
INT32 | MPI_DEV_setPanningAttr (MPI_WIN idx, const MPI_PANNING_ATTR_S *p_panning_attr) |
Set fisheye panning attribute. More... | |
INT32 | MPI_DEV_getPanningAttr (MPI_WIN idx, MPI_PANNING_ATTR_S *p_panning_attr) |
Get fisheye panning attribute. More... | |
INT32 | MPI_DEV_setSurroundAttr (MPI_WIN idx, const MPI_SURROUND_ATTR_S *p_surround_attr) |
Set fisheye surround attribute. More... | |
INT32 | MPI_DEV_getSurroundAttr (MPI_WIN idx, MPI_SURROUND_ATTR_S *p_surround_attr) |
Get fisheye surround attribute. More... | |
INT32 | MPI_DEV_startChn (MPI_CHN idx) |
Start a video channel. More... | |
INT32 | MPI_DEV_stopChn (MPI_CHN idx) |
Stop a video channel. More... | |
INT32 | MPI_DEV_startAllChn (MPI_DEV idx) |
Start all video channels. More... | |
INT32 | MPI_DEV_stopAllChn (MPI_DEV idx) |
Stop all video channels that are running. More... | |
INT32 | MPI_DEV_queryChnState (MPI_CHN idx, MPI_CHN_STAT_S *stat) |
Query a video channel state. More... | |
INT32 | MPI_DEV_addIspMvHistCfg (MPI_WIN idx, const MPI_ISP_MV_HIST_CFG_S *cfg, UINT8 *cfg_idx) |
Add ISP MV histogram configuration. More... | |
INT32 | MPI_DEV_rmIspMvHistCfg (MPI_WIN idx, UINT8 cfg_idx) |
Remove ISP MV histogram configuration. More... | |
INT32 | MPI_DEV_getIspMvHistCfg (MPI_WIN idx, UINT8 cfg_idx, MPI_ISP_MV_HIST_CFG_S *cfg) |
Get ISP MV histogram configuration. More... | |
INT32 | MPI_DEV_getIspMvHist (MPI_WIN idx, UINT8 roi_idx, MPI_ISP_MV_HIST_S *stat) |
Get ISP MV histogram. More... | |
INT32 | MPI_DEV_addIspVarCfg (MPI_WIN idx, const MPI_ISP_VAR_CFG_S *cfg, UINT8 *cfg_idx) |
Add ISP variance configuration. More... | |
INT32 | MPI_DEV_rmIspVarCfg (MPI_WIN idx, UINT8 cfg_idx) |
Remove ISP variance configuration. More... | |
INT32 | MPI_DEV_getIspVarCfg (MPI_WIN idx, UINT8 cfg_idx, MPI_ISP_VAR_CFG_S *cfg) |
Get ISP variance configuration. More... | |
INT32 | MPI_DEV_getIspVar (MPI_WIN idx, UINT8 cfg_idx, MPI_ISP_VAR_S *stat) |
Get ISP variance. More... | |
INT32 | MPI_DEV_addIspYAvgCfg (MPI_WIN idx, const MPI_ISP_Y_AVG_CFG_S *cfg, UINT8 *cfg_idx) |
Add ISP Y average configuration. More... | |
INT32 | MPI_DEV_rmIspYAvgCfg (MPI_WIN idx, UINT8 cfg_idx) |
Remove ISP Y average configuration. More... | |
INT32 | MPI_DEV_getIspYAvgCfg (MPI_WIN idx, UINT8 cfg_idx, MPI_ISP_Y_AVG_CFG_S *cfg) |
Get ISP Y average configuration. More... | |
INT32 | MPI_DEV_getIspYAvg (MPI_WIN idx, UINT8 cfg_idx, MPI_ISP_Y_AVG *y_avg) |
Get ISP Y average. More... | |
INT32 | MPI_DEV_getWinFrame (MPI_WIN idx, MPI_VIDEO_FRAME_INFO_S *frame_info, INT32 time_ms) |
Get a window's snapshot. More... | |
INT32 | MPI_DEV_releaseWinFrame (MPI_WIN idx, MPI_VIDEO_FRAME_INFO_S *frame_info) |
Release window snapshot. More... | |
INT32 | MPI_DEV_waitWin (MPI_WIN idx, UINT32 *timestamp, INT32 timeout) |
Wait until processing done of a video window. More... | |
INT32 | MPI_DEV_waitIspStat (MPI_WIN idx) |
Wait until ISP statistics is ready. More... | |
MPI for video device.
#define MPI_CENTER_OFFSET_MAX (8192) |
Center offset maximum
#define MPI_CENTER_OFFSET_MIN (-8191) |
Center offset minimun
#define MPI_CHN_LAYOUT_HOR_ALIGN (16) |
Horizontal alignment of channel layout.
#define MPI_CHN_LAYOUT_VER_ALIGN (32) |
Vertical alignment of channel layout.
#define MPI_CHN_LAYOUT_X_MINIMUM (0) |
X minimum of channel layout.
#define MPI_CHN_LAYOUT_Y_MINIMUM (0) |
Y minimum of channel layout.
#define MPI_CHN_RES_ALIGN (8) |
Alignment of channel resolution.
#define MPI_CHN_RES_HOR_MAXIMUM (4096) |
Horizontal maximum of channel resolution.
#define MPI_CHN_RES_HOR_MINIMUM (192) |
Horizontal minimum of channel resolution.
#define MPI_CHN_RES_VER_MAXIMUM (65536) |
Vertical maximum of channel resolution.
#define MPI_CHN_RES_VER_MINIMUM (128) |
Vertical minimum of channel resolution.
#define MPI_CIRCLE_RADIUS_MAX (65535) |
Circle radius maximum
#define MPI_CIRCLE_RADIUS_MIN (0) |
Circle radius minimum
#define MPI_LDC_RATIO_MAX (32767) |
LDC maximal ratio.
#define MPI_LDC_RATIO_MIN (0) |
LDC minimal ratio.
#define MPI_MAX_ISP_MV_HIST_BIN_NUM (32) |
Maximum number of MV histogram bins
#define MPI_MAX_ISP_MV_HIST_CFG_NUM (1) |
Maximum number of MV histogram configurations
#define MPI_MAX_ISP_VAR_CFG_NUM (1) |
Maximum number of variance configurations
#define MPI_MAX_ISP_Y_AVG_CFG_NUM (5) |
Maximum number of Y average configurations
#define MPI_MAX_ROI_VAL (1024) |
ROI value maximum
#define MPI_MIN_ROI_VAL (0) |
ROI value minimum
#define MPI_PANORAMA_STRAIGHTEN_MAX (4095) |
Panorama straighten maximum
#define MPI_PANORAMA_STRAIGHTEN_MIN (0) |
Panorama straighten minimum
#define MPI_PATH_RES_ALIGN (1) |
Alignment of path resolution.
#define MPI_PATH_RES_HOR_MAXIMUM (4096) |
Horizontal maximum of path resolution.
#define MPI_PATH_RES_HOR_MINIMUM (0) |
Horizontal minimum of path resolution.
#define MPI_PATH_RES_VER_MAXIMUM (65536) |
Vertical maximum of path resolution.
#define MPI_PATH_RES_VER_MINIMUM (0) |
Vertical minimum of path resolution.
#define MPI_SENSOR_BMP | ( | i | ) | (0x1 << (i)) |
marco to transform path index to bitmap.
[in] | i | sensor path index. |
#define MPI_SPH_VIDEO_SENSOR_NUM (2) |
Number of spherical video sensor.
#define MPI_STITCH_SENSOR_NUM (2) |
Number of STITCH sensor.
#define MPI_STITCH_TABLE_NUM (3) |
Number of STITCH table.
#define MPI_VENC_ROI_NUM (8) |
Number of video encode ROI.
enum MPI_CHN_BIND_CAP_E |
enum MPI_HDR_MODE_E |
Enumeration of HDR mode.
enum MPI_LDC_VIEW_TYPE_E |
enum MPI_SNAPSHOT_TYPE |
enum MPI_WIN_VIEW_TYPE_E |
Enumeration of window view type.
INT32 MPI_DEV_addChn | ( | MPI_CHN | idx, |
const MPI_CHN_ATTR_S * | p_chn_attr | ||
) |
Add a video channel and set its attributes.
[in] | idx | Index of the video channel that is to be added. |
[in] | p_chn_attr | Pointer to the video channel attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_addIspMvHistCfg | ( | MPI_WIN | idx, |
const MPI_ISP_MV_HIST_CFG_S * | cfg, | ||
uint8_t * | cfg_idx | ||
) |
Add ISP MV histogram configuration.
[in] | idx | Index of the video window that is to be configured. |
[in] | cfg | isp mv histogram configuration. |
[out] | cfg_idx | configuration index of target video window. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_addIspVarCfg | ( | MPI_WIN | idx, |
const MPI_ISP_VAR_CFG_S * | cfg, | ||
uint8_t * | cfg_idx | ||
) |
Add ISP variance configuration.
[in] | idx | Index of the video window that is to be configured. |
[in] | cfg | isp variance configuration. |
[out] | cfg_idx | configuration index of target video window. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_addIspYAvgCfg | ( | MPI_WIN | idx, |
const MPI_ISP_Y_AVG_CFG_S * | cfg, | ||
uint8_t * | cfg_idx | ||
) |
Add ISP Y average configuration.
The number of added configuration should be less than MPI_MAX_ISP_Y_AVG_CFG_NUM which currently is 5.
[in] | idx | Index of the video window that is to be configured. |
[in] | cfg | isp Y average configuration to add. |
[out] | cfg_idx | configuration index of target video window. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_addPath | ( | MPI_PATH | idx, |
const MPI_PATH_ATTR_S * | p_path_attr | ||
) |
Add a input path and set its attributes.
[in] | idx | input path index. |
[in] | p_path_attr | pointer to the input path attribute. |
MPI_SUCCESS | success |
MPI_ERR_DEV_INVALID_PARAM | invalid attributes |
others | failure |
INT32 MPI_DEV_createDev | ( | MPI_DEV | idx, |
const MPI_DEV_ATTR_S * | p_dev_attr | ||
) |
Create a video device.
[in] | idx | Index of the video device that is to be created. |
[in] | p_dev_attr | Pointer to the device attribute. |
MPI_SUCCESS | success |
others | failure |
Delete a video channel.
[in] | idx | Index of the video channel that is to be deleted. |
MPI_SUCCESS | success |
others | failure |
Delete an input path.
[in] | idx | Index of the input path that is to be deleted. |
MPI_SUCCESS | success |
others | failure |
Delete a video device.
[in] | idx | Index of the video device that is to be destroyed. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getChnAttr | ( | MPI_CHN | idx, |
MPI_CHN_ATTR_S * | p_chn_attr | ||
) |
Get the video channel attributes.
[in] | idx | Index of the video channel that is to retrieve setting. |
[out] | p_chn_attr | Pointer to the video channel attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getChnLayout | ( | MPI_CHN | idx, |
MPI_CHN_LAYOUT_S * | p_chn_layout | ||
) |
Get the video channel layout.
[in] | idx | Index of the video channel that is to retrieve setting. |
[out] | p_chn_layout | Pointer to the video channel layout. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getDevAttr | ( | MPI_DEV | idx, |
MPI_DEV_ATTR_S * | p_dev_attr | ||
) |
Get the attributes of a video device.
[in] | idx | Index of the video device that is to retrieve setting. |
[out] | p_dev_attr | Pointer to the video device attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getIspMvHist | ( | MPI_WIN | idx, |
uint8_t | cfg_idx, | ||
MPI_ISP_MV_HIST_S * | stat | ||
) |
Get ISP MV histogram.
[in] | idx | Index of the video window that is to retrieve attribute. |
[in] | cfg_idx | configuration index of target video window. |
[out] | stat | ISP MV histogram. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_getIspMvHistCfg | ( | MPI_WIN | idx, |
uint8_t | cfg_idx, | ||
MPI_ISP_MV_HIST_CFG_S * | cfg | ||
) |
Get ISP MV histogram configuration.
[in] | idx | Index of the video window that is to retrieve setting. |
[in] | cfg_idx | configuration index of target video window. |
[out] | cfg | ISP MV histogram configuration. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_getIspVar | ( | MPI_WIN | idx, |
uint8_t | cfg_idx, | ||
MPI_ISP_VAR_S * | stat | ||
) |
Get ISP variance.
[in] | idx | Index of the video window. |
[in] | cfg_idx | configuration index of target video window. |
[out] | stat | ISP variance. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_getIspVarCfg | ( | MPI_WIN | idx, |
uint8_t | cfg_idx, | ||
MPI_ISP_VAR_CFG_S * | cfg | ||
) |
Get ISP variance configuration.
[in] | idx | Index of the video window. |
[in] | cfg_idx | configuration index of target video window. |
[out] | cfg | ISP variance configuration. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_getIspYAvg | ( | MPI_WIN | idx, |
uint8_t | cfg_idx, | ||
MPI_ISP_Y_AVG * | stat | ||
) |
Get ISP Y average.
[in] | idx | Index of the video window. |
[in] | cfg_idx | configuration index of target video window. |
[out] | stat | ISP Y average. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_getIspYAvgCfg | ( | MPI_WIN | idx, |
uint8_t | cfg_idx, | ||
MPI_ISP_Y_AVG_CFG_S * | cfg | ||
) |
Get ISP Y average configuration.
[in] | idx | Index of the video window. |
[in] | cfg_idx | configuration index of target video window. |
[out] | cfg | ISP Y average configuration. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_getLdcAttr | ( | MPI_WIN | idx, |
MPI_LDC_ATTR_S * | p_ldc_attr | ||
) |
Get lens distortion correction attribute.
[in] | idx | Index of the video window that is to retrieve setting. |
[out] | p_ldc_attr | lens distortion correction attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getPanningAttr | ( | MPI_WIN | idx, |
MPI_PANNING_ATTR_S * | p_panning_attr | ||
) |
Get fisheye panning attribute.
[in] | idx | Index of the video window that is to retrieves setting. |
[out] | p_panning_attr | Pointer to fisheye panning attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getPanoramaAttr | ( | MPI_WIN | idx, |
MPI_PANORAMA_ATTR_S * | p_panorama_attr | ||
) |
Get fisheye panorama attribute.
[in] | idx | Index of the video window that is to retrieve setting. |
[out] | p_panorama_attr | Pointer to fisheye panorama attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getPathAttr | ( | MPI_PATH | idx, |
MPI_PATH_ATTR_S * | p_path_attr | ||
) |
Get the input path attributes.
[in] | idx | Index of the input path that is to retrieve setting. |
[out] | p_path_attr | Pointer to the input path attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getStitchAttr | ( | MPI_WIN | idx, |
MPI_STITCH_ATTR_S * | p_stitch_attr | ||
) |
Get content adaptive stitching attribute.
[in] | idx | Index of the video window that is to retrieve setting. |
[out] | p_stitch_attr | content adaptive stitching attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getSurroundAttr | ( | MPI_WIN | idx, |
MPI_SURROUND_ATTR_S * | p_surround_attr | ||
) |
Get fisheye surround attribute.
[in] | idx | Index of the video window that is to retrieve setting. |
[out] | p_surround_attr | Pointer to fisheye surround attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getWindowAttr | ( | MPI_WIN | idx, |
MPI_WIN_ATTR_S * | p_window_attr | ||
) |
Get the video window attribute.
[in] | idx | Index of the video window that is to retrieve setting. |
[out] | p_window_attr | Pointer to the video window attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getWindowRoi | ( | MPI_WIN | idx, |
MPI_RECT_S * | p_roi | ||
) |
Get the video window ROI.
[in] | idx | Index of the video window that is to retrieve setting. |
[out] | p_roi | Pointer to the video window roi. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_getWinFrame | ( | MPI_WIN | idx, |
MPI_VIDEO_FRAME_INFO_S * | frame_info, | ||
int32_t | time_ms | ||
) |
Get a window's snapshot.
If the time it takes for the snapshot exceeds time_ms, it will return a fail status to the user.
[in] | idx | video window index |
[in,out] | frame_info | structure of video frame |
[in] | time_ms | timeout value (unit: ms) |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_FAILURE | unexpected fail. |
-EAGAIN | Timeout has occurred. Please try again later. |
-EFAULT | Unexpected error - fail to copy to/from user or bad address |
-EINTR | Mutex lock was interrupted |
-ENOMEM | VB fails to allocate memory for snapshot |
-ENODATA | ISP is not running |
-EOPNOTSUPP | Resolution not supported |
INT32 MPI_DEV_queryChnState | ( | MPI_CHN | idx, |
MPI_CHN_STAT_S * | stat | ||
) |
Query a video channel state.
[in] | idx | Index of the video channel that is to query. |
[out] | stat | Video channel state. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_releaseWinFrame | ( | MPI_WIN | idx, |
MPI_VIDEO_FRAME_INFO_S * | frame_info | ||
) |
Release window snapshot.
[in] | idx | video window index |
[in] | frame_info | structure of video frame info that contains snapshot's width, height, image type, etc |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_FAILURE | unexpected fail. |
Remove ISP MV histogram configuration.
[in] | idx | Index of the video window to be removed. |
[in] | cfg_idx | configuration index of target video window. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
Remove ISP variance configuration.
[in] | idx | Index of the video window that is to be removed. |
[in] | cfg_idx | configuration index of target video window. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
Remove ISP Y average configuration.
[in] | idx | Index of the video window. |
[in] | cfg_idx | configuration index of video window to be removed. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
INT32 MPI_DEV_setChnAttr | ( | MPI_CHN | idx, |
const MPI_CHN_ATTR_S * | p_chn_attr | ||
) |
Set the video channel attribute.
[in] | idx | index of the video channel that is to be configured. |
[in] | p_chn_attr | Pointer to the video channel attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_setChnLayout | ( | MPI_CHN | idx, |
const MPI_CHN_LAYOUT_S * | p_chn_layout | ||
) |
Set the video channel layout.
[in] | idx | Index of the video channel that is to be configured. |
[in] | p_chn_layout | Pointer to the video channel layout. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_setDevAttr | ( | MPI_DEV | idx, |
const MPI_DEV_ATTR_S * | p_dev_attr | ||
) |
Set the attributes of a video device.
[in] | idx | Index of the video device that is to be configured. |
[in] | p_dev_attr | Pointer to the video device attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_setLdcAttr | ( | MPI_WIN | idx, |
const MPI_LDC_ATTR_S * | p_ldc_attr | ||
) |
Set lens distortion correction attribute.
All windows with LDC view share the same parameters. Specify this parameters in window (0, 0, 0) at once, and do not set the attribute for other windows.
[in] | idx | Index of the video window that is to be configured. It should be always MPI_VIDEO_WIN(0, 0, 0). |
[in] | p_ldc_attr | Pointer to lens distortion correction attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_setPanningAttr | ( | MPI_WIN | idx, |
const MPI_PANNING_ATTR_S * | p_panning_attr | ||
) |
Set fisheye panning attribute.
All windows with Panning view share the same parameters. Specify this parameters in window (0, 0, 0) at once, and do not set the attribute for other windows.
[in] | idx | Index of the video window that is to be configured. It should be always MPI_VIDEO_WIN(0, 0, 0). |
[in] | p_panning_attr | Pointer to fisheye panning attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_setPanoramaAttr | ( | MPI_WIN | idx, |
const MPI_PANORAMA_ATTR_S * | p_panorama_attr | ||
) |
Set fisheye panorama attribute.
All windows with Panorama view share the same parameters. Specify this parameters in window (0, 0, 0) at once, and do not set the attribute for other windows.
[in] | idx | Index of the video window that is to be configured. It should be always MPI_VIDEO_WIN(0, 0, 0). |
[in] | p_panorama_attr | Pointer to fisheye panorama attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_setPathAttr | ( | MPI_PATH | idx, |
const MPI_PATH_ATTR_S * | p_path_attr | ||
) |
Set the input path attributes.
[in] | idx | Index of the input path that is to be configured. |
[in] | p_path_attr | Pointer to the input path attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_setStitchAttr | ( | MPI_WIN | idx, |
const MPI_STITCH_ATTR_S * | p_stitch_attr | ||
) |
Set content adaptive stitching attribute.
All windows with Stitch view share the same parameters. Specify this parameters in window (0, 0, 0) at once, and do not set the attribute for other windows.
[in] | idx | Index of the video window that is to be configured. It should be always MPI_VIDEO_WIN(0, 0, 0). |
[in] | p_stitch_attr | Pointer to content adaptive stitching attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_setSurroundAttr | ( | MPI_WIN | idx, |
const MPI_SURROUND_ATTR_S * | p_surround_attr | ||
) |
Set fisheye surround attribute.
All windows with Surround view share the same parameters. Specify this parameters in window (0, 0, 0) at once, and do not set the attribute for other windows.
[in] | idx | Index of the video window that is to be configured. |
[in] | p_surround_attr | Pointer to fisheye surround attribute. |
MPI_SUCCESS | success |
others | failure |
INT32 MPI_DEV_setWindowAttr | ( | MPI_WIN | idx, |
const MPI_WIN_ATTR_S * | p_window_attr | ||
) |
Set the video window attribute.
[in] | idx | Index of the video window that is to be configured. |
[in] | p_window_attr | Pointer to the video window attribute. |
MPI_SUCCESS | success |
others | failure |
mirror
and flip
follow the setting on windows 0. The request of modifing mirror
and flip
to other windows will be ignored. INT32 MPI_DEV_setWindowRoi | ( | MPI_WIN | idx, |
const MPI_RECT_S * | p_roi | ||
) |
Set the video window ROI.
[in] | idx | Index of the video window that is to be configured. |
[in] | p_roi | Pointer to the video window ROI. |
MPI_SUCCESS | success |
others | failure |
Start all video channels.
Activate all of video channels that have been created.
[in] | idx | Index of the video device that is to be activated. |
MPI_SUCCESS | success |
others | failure |
Start a video channel.
[in] | idx | Index of the video channel that is to be activated. |
MPI_SUCCESS | success |
others | failure |
Start the video device.
After activated video device, it starts to receive and process the singal sent from associates input path.
[in] | idx | Index of the video device that is to be activated. |
MPI_SUCCESS | success |
others | failure |
Stop all video channels that are running.
Suspend all of the video channels that have been created.
[in] | idx | Index of the video device that is to be suspended. |
MPI_SUCCESS | success |
others | failure |
Stop a video channel.
[in] | idx | Index of the video channel that is to be suspended. |
MPI_SUCCESS | success |
others | failure |
Stop a video device.
After suspended video device, it stops to receive the signal from image sensor(s).
[in] | idx | index of the video device that is to be suspended. |
MPI_SUCCESS | success |
others | failure |
Wait until ISP statistics is ready.
[in] | idx | Index of the video window to wait for. |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |
Wait until processing done of a video window.
[in] | idx | Index of the video window to wait for. |
[out] | timestamp | Timestamp of the video window just processed. |
[in] | timeout | Waiting timeout in millisecond. (currently no effect) |
MPI_SUCCESS | success. |
MPI_ERR_DEV_NULL_POINTER | input pointer is NULL. |
MPI_ERR_DEV_INVALID_WIN | invalid video window index. |
MPI_ERR_DEV_INVALID_CHN | invalid video channel index. |
MPI_ERR_DEV_INVALID_DEV | invalid device index. |
MPI_ERR_DEV_INVALID_PARAM | invalid parameters. |
MPI_ERR_DEV_NOT_EXIST | device/channel not exist. |
MPI_FAILURE | unexpected fail. |