Merge pull request #599 from licaiguo/add-sps-pps-for-each-layer

add layer sps/pps to decoder context
This commit is contained in:
huili2 2014-03-30 22:23:17 -07:00
commit 0c12c4b21b
2 changed files with 3 additions and 1 deletions

View File

@ -235,6 +235,8 @@ typedef struct TagWelsDecoderContext {
SNalUnit sPrefixNal;
PAccessUnit pAccessUnitList; // current access unit list to be performed
PSps pActiveLayerSps[MAX_LAYER_NUM];
PPps pActiveLayerPps[MAX_LAYER_NUM];
PSps pSps; // used by current AU
PPps pPps; // used by current AU
// Memory for pAccessUnitList is dynamically held till decoder destruction.

View File

@ -87,7 +87,7 @@
//#define BASE_DEPENDENCY_ID 0
#define BASE_DQ_ID 0
#define MAX_DQ_ID ((uint8_t)-1)
//#define MAX_LAYER_NUM (MAX_DEPENDENCY_LAYER * MAX_TEMPORAL_LEVEL * MAX_QUALITY_LEVEL) // Layer number of Three-tuple
#define MAX_LAYER_NUM 8
#define LAYER_NUM_EXCHANGEABLE 1