summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShivaraj Shetty <shettyshivaraj@ti.com>2011-12-02 10:38:24 +0530
committerShivaraj Shetty <shettyshivaraj@ti.com>2011-12-02 10:38:24 +0530
commitde6a50ad976304e8b32843edf3eee2d4e3ac9a89 (patch)
tree4fe40e944cfa46245b5e09d6474944a21550753c
parent1e24b4542efff2ca1e590ba6e4262279c8d840e7 (diff)
downloaddomx-omapzoom-de6a50ad976304e8b32843edf3eee2d4e3ac9a89.tar.gz
Patch to fix segmentation fault in getconfig for SVC decoder
This patch fixes the segmentation fault in DOMX while calling getconfig to query layer details for SVC decoder Signed-off-by: Shivaraj Shetty <shettyshivaraj@ti.com>
-rwxr-xr-xomx_core/inc/OMX_TI_Video.h59
1 files changed, 34 insertions, 25 deletions
diff --git a/omx_core/inc/OMX_TI_Video.h b/omx_core/inc/OMX_TI_Video.h
index f3e5d82..fcc05f2 100755
--- a/omx_core/inc/OMX_TI_Video.h
+++ b/omx_core/inc/OMX_TI_Video.h
@@ -53,7 +53,6 @@
#ifndef OMX_TI_VIDEO_H
#define OMX_TI_VIDEO_H
#define H264ENC_MAXNUMSLCGPS 2
-#define H264SVCVDEC_MAX_NUM_LAYER 9
#define OMXH264E_MAX_SLICE_SUPPORTED 64
#include <OMX_Core.h>
@@ -1077,30 +1076,40 @@ typedef struct OMX_TI_STREAMINTERLACEFORMATTYPE {
OMX_U32 nDeblockFilterMode;
} OMX_TI_VIDEO_PARAM_SVCTYPE;
- typedef struct OMX_TI_VIDEO_CONFIG_SVCLAYERDETAILS {
- OMX_U32 nNumLayers;
- OMX_U32 LayerId[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U8 PriorityId[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U8 DependencyId[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U8 QualityId[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U8 TemporalId[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U8 BitrateInfoPresentFlag[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U8 FramerateInfoPresentFlag[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U8 FramesizeInfoPresentFlag[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U16 AvgBitrate[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U16 MaxBitrate[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U16 AvgFramerate[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U32 FrameWidth[H264SVCVDEC_MAX_NUM_LAYER];
- OMX_U32 FrameHeight[H264SVCVDEC_MAX_NUM_LAYER];
-
- } OMX_TI_VIDEO_CONFIG_SVCLAYERDETAILS;
-
- typedef struct OMX_TI_VIDEO_CONFIG_SVCTARGETLAYER {
- OMX_U32 nSvcTargetLayerDID;
- OMX_U32 nSvcTargetLayerTID;
- OMX_U32 nSvcTargetLayerQID;
-
- } OMX_TI_VIDEO_CONFIG_SVCTARGETLAYER;
+ typedef struct OMX_TI_VIDEO_CONFIG_SVCLAYERDETAILS {
+ OMX_U32 nSize;
+ OMX_VERSIONTYPE nVersion;
+ OMX_U32 nPortIndex;
+
+ OMX_U32 nNumLayers;
+ OMX_U32 nLayerId;
+ OMX_U8 nPriorityId;
+ OMX_U8 nDependencyId;
+ OMX_U8 nQualityId;
+ OMX_U8 nTemporalId;
+ OMX_U8 nBitrateInfoPresentFlag;
+ OMX_U8 nFramerateInfoPresentFlag;
+ OMX_U8 nFramesizeInfoPresentFlag;
+ OMX_U16 nAvgBitrate;
+ OMX_U16 nMaxBitrate;
+ OMX_U16 nAvgFramerate;
+ OMX_U32 nFrameWidth;
+ OMX_U32 nFrameHeight;
+
+ OMX_U32 nLayerIndex; /* Used to query for individual layer details */
+
+} OMX_TI_VIDEO_CONFIG_SVCLAYERDETAILS;
+
+typedef struct OMX_TI_VIDEO_CONFIG_SVCTARGETLAYER {
+ OMX_U32 nSize;
+ OMX_VERSIONTYPE nVersion;
+ OMX_U32 nPortIndex;
+
+ OMX_U32 nSvcTargetLayerDID;
+ OMX_U32 nSvcTargetLayerTID;
+ OMX_U32 nSvcTargetLayerQID;
+
+} OMX_TI_VIDEO_CONFIG_SVCTARGETLAYER;
/* ========================================================================== */
/*!
@brief OMX_TI_VIDEO_SLICEDATAINFO : to configure the Slice Settings