ref: 0c12c4b21beed6c903edbfd2b13bdb67ca7770e0
parent: 881298ed3180f5cf682311e5dee8297d665ba116
parent: 9ac1cd0a17666aca4ac9e28da41d4e2ad259fa11
author: huili2 <[email protected]>
date: Sun Mar 30 18:23:17 EDT 2014
Merge pull request #599 from licaiguo/add-sps-pps-for-each-layer add layer sps/pps to decoder context
--- a/codec/decoder/core/inc/decoder_context.h
+++ b/codec/decoder/core/inc/decoder_context.h
@@ -235,6 +235,8 @@
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.
--- a/codec/decoder/core/inc/wels_const.h
+++ b/codec/decoder/core/inc/wels_const.h
@@ -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