From e4801dc9e4a65e365b88d927f527caf08e2190f8 Mon Sep 17 00:00:00 2001 From: Chang Ying Date: Thu, 27 Dec 2012 15:09:56 +0800 Subject: OMXIL: extension to add VP8 encoder support BZ: 77123 Add OMX_VIDEO_VP8REFERENCEFRAMETYPE to control VP8 reference frame buffers. Change-Id: I32060b57cfb8ae94ed4145f3d60b9cff2397d9c0 Signed-off-by: Chang Ying Reviewed-on: http://android.intel.com:8080/83986 Reviewed-by: Zhang, Zhangfei Reviewed-by: Yuan, Shengquan Reviewed-by: Shi, PingX Tested-by: Shi, PingX Reviewed-by: buildbot Tested-by: buildbot --- core/inc/khronos/openmax/include/OMX_Index.h | 1 + core/inc/khronos/openmax/include/OMX_Video.h | 12 ++++++++++++ 2 files changed, 13 insertions(+) (limited to 'core/inc') diff --git a/core/inc/khronos/openmax/include/OMX_Index.h b/core/inc/khronos/openmax/include/OMX_Index.h index b32bbad..a3912c5 100644 --- a/core/inc/khronos/openmax/include/OMX_Index.h +++ b/core/inc/khronos/openmax/include/OMX_Index.h @@ -179,6 +179,7 @@ typedef enum OMX_INDEXTYPE { OMX_IndexParamVideoSliceFMO, /**< reference: OMX_VIDEO_PARAM_AVCSLICEFMO */ OMX_IndexConfigVideoAVCIntraPeriod, /**< reference: OMX_VIDEO_CONFIG_AVCINTRAPERIOD */ OMX_IndexConfigVideoNalSize, /**< reference: OMX_VIDEO_CONFIG_NALSIZE */ + OMX_IndexConfigVideoVp8ReferenceFrame, /**< reference: OMX_VIDEO_VP8REFERENCEFRAMETYPE */ /* Image & Video common Configurations */ OMX_IndexCommonStartUnused = 0x07000000, diff --git a/core/inc/khronos/openmax/include/OMX_Video.h b/core/inc/khronos/openmax/include/OMX_Video.h index af4eb98..d053582 100644 --- a/core/inc/khronos/openmax/include/OMX_Video.h +++ b/core/inc/khronos/openmax/include/OMX_Video.h @@ -786,6 +786,18 @@ typedef struct OMX_VIDEO_PARAM_VP8TYPE { OMX_BOOL bErrorResilientMode; } OMX_VIDEO_PARAM_VP8TYPE; +typedef struct OMX_VIDEO_VP8REFERENCEFRAMETYPE { + OMX_U32 nSize; + OMX_VERSIONTYPE nVersion; + OMX_U32 nPortIndex; + OMX_BOOL bPreviousFrameRefresh; + OMX_BOOL bGoldenFrameRefresh; + OMX_BOOL bAlternateFrameRefresh; + OMX_BOOL bUsePreviousFrame; + OMX_BOOL bUseGoldenFrame; + OMX_BOOL bUseAlternateFrame; +} OMX_VIDEO_VP8REFERENCEFRAMETYPE ; + /** * AVC profile types, each profile indicates support for various * performance bounds and different annexes. -- cgit v1.2.3