aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliubolun <bolun.liu@intel.com>2014-02-26 15:34:17 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:03:43 -0700
commit7692ea07c8340f27d4b63da5ab46e06b4c6b5df3 (patch)
tree740676d7698ed65cbb2045ba270cda26af7c5dd9
parentb7e8facd37fe0d46e8f6ff6527e4f2c4f90565ca (diff)
downloadwrs_omxil_core-7692ea07c8340f27d4b63da5ab46e06b4c6b5df3.tar.gz
Extend OMX Index definition for VP8 temporal layer encode
BZ: 165682 Extend OMX Index definition for the number of temporal layers and bitrate/framerate for every layer Update for buildbot -1 issue. Fix code style issue. Change-Id: I7fa786d6e959df59acc3bf3e4a5ed4222cecfca5 Signed-off-by: liubolun <bolun.liu@intel.com>
-rw-r--r--core/inc/khronos/openmax/include/OMX_IntelIndexExt.h2
-rw-r--r--core/inc/khronos/openmax/include/OMX_IntelVideoExt.h17
2 files changed, 19 insertions, 0 deletions
diff --git a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h
index 122cd46..401677a 100644
--- a/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h
+++ b/core/inc/khronos/openmax/include/OMX_IntelIndexExt.h
@@ -68,6 +68,8 @@ typedef enum OMX_INTELINDEXEXTTYPE {
OMX_IndexExtPrepareForAdaptivePlayback, /**<reference: Prepare for AdaptivePlayback*/
OMX_IndexExtVP8ForceKFrame, /**<reference: For VP8 Force K Frame*/
OMX_IndexExtVP8MaxFrameSizeRatio, /**<reference: For VP8 Max Frame Size*/
+ OMX_IndexExtVP8NumberOfTemporalLayer, /**<reference: For SAND VP8 Number of Layer*/
+ OMX_IndexExtVP8TemporalLayerBitRateFrameRate, /**<reference: For SAND VP8 bitrate and framerate for every layer*/
// Index for VPP must always be put at the end
#ifdef TARGET_HAS_VPP
OMX_IndexExtVppBufferNum, /**<reference: vpp buffer number*/
diff --git a/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h b/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h
index 4b119f6..1e7bba0 100644
--- a/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h
+++ b/core/inc/khronos/openmax/include/OMX_IntelVideoExt.h
@@ -196,6 +196,23 @@ typedef struct OMX_VIDEO_CONFIG_INTEL_VP8_MAX_FRAME_SIZE_RATIO {
OMX_U32 nMaxFrameSizeRatio;
} OMX_VIDEO_CONFIG_INTEL_VP8_MAX_FRAME_SIZE_RATIO;
+// number of temporal layer for WebRTC and Sand
+typedef struct OMX_VIDEO_PARAM_INTEL_VP8_NUMBER_OF_TEMPORAL_LAYER {
+ OMX_U32 nSize;
+ OMX_VERSIONTYPE nVersion;
+ OMX_U32 nPortIndex;
+ OMX_U32 nNumberOfTemporalLayer;
+} OMX_VIDEO_PARAM_INTEL_VP8_NUMBER_OF_TEMPORAL_LAYER;
+
+// Layer and Bitrate Framerate data paires for SAND VP8 encode
+typedef struct OMX_VIDEO_CONFIG_INTEL_VP8_TEMPORAL_LAYER_BITRATE_FRAMERATE {
+ OMX_U32 nSize;
+ OMX_VERSIONTYPE nVersion;
+ OMX_U32 nPortIndex;
+ OMX_U32 nLayerID;
+ OMX_U32 nBitrate;
+ OMX_U32 nFramerate;
+} OMX_VIDEO_CONFIG_INTEL_VP8_TEMPORAL_LAYER_BITRATE_FRAMERATE;
#ifdef __cplusplus
}