aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Liang <dan.liang@intel.com>2013-11-01 17:47:19 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:03:42 -0700
commit9e4c75dcd7ed76ded42f50070946ab2ed793c8eb (patch)
treeba6ee1253f54d620878e71370746a5e3d57925c8
parent6b034a28c5a1731a2997f3fcbc07bb11338dc04f (diff)
downloadwrs_omxil_core-9e4c75dcd7ed76ded42f50070946ab2ed793c8eb.tar.gz
wrs-omxil-core: Add data structure needed by WebRTC
BZ: 147912 Add data structure in OMX_IntelVideoExt.h: OMX_VIDEO_DECODE_ERRORTYPE OMX_VIDEO_ERROR_INFO OMX_VIDEO_ERROR_BUFFER Change-Id: I09a04bdc779dc1cd191f401d8b0c3a0b53990177 Signed-off-by: Dan Liang <dan.liang@intel.com>
-rw-r--r--core/inc/khronos/openmax/include/OMX_IntelVideoExt.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h b/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h
index 6c399ad..fa886d9 100644
--- a/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h
+++ b/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h
@@ -148,6 +148,29 @@ typedef struct OMX_VIDEO_CONFIG_PRI_INFOTYPE {
OMX_PTR nHolder;
} OMX_VIDEO_CONFIG_PRI_INFOTYPE;
+// Error reporting data structure
+#define MAX_ERR_NUM 10
+
+typedef enum
+{
+ OMX_Decode_SliceMissing = 0,
+ OMX_Decode_MBError = 1,
+ OMX_Decode_RefMissing = 2,
+} OMX_VIDEO_DECODE_ERRORTYPE;
+
+typedef struct OMX_VIDEO_ERROR_INFO {
+ OMX_VIDEO_DECODE_ERRORTYPE type;
+ union {
+ typedef struct {OMX_U32 start_mb; OMX_U32 end_mb;} mb_pos;
+ } error_data;
+};
+
+typedef struct OMX_VIDEO_ERROR_BUFFER {
+ OMX_U32 errorNumber; // Error number should be no more than MAX_ERR_NUM
+ OMX_S64 timeStamp; // presentation time stamp
+ OMX_VIDEO_ERROR_INFO errorArray[MAX_ERR_NUM];
+};
+
#ifdef __cplusplus
}
#endif /* __cplusplus */