Changeset 1148 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 8 Jul 2015, 00:10:36 (9 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1147 r1148 190 190 Void TAppEncCfg::destroy() 191 191 { 192 #if VPS_EXTN_DIRECT_REF_LAYERS192 #if SVC_EXTENSION 193 193 for(Int layer = 0; layer < MAX_LAYERS; layer++) 194 194 { … … 768 768 #endif 769 769 #if AUXILIARY_PICTURES 770 Int* cfg_auxId[MAX_LAYERS];771 #endif 772 #if VPS_EXTN_DIRECT_REF_LAYERS 770 Int* cfg_auxId[MAX_LAYERS]; 771 #endif 772 773 773 Int* cfg_numSamplePredRefLayers [MAX_LAYERS]; 774 774 string cfg_samplePredRefLayerIds [MAX_LAYERS]; … … 780 780 string cfg_predLayerIds [MAX_LAYERS]; 781 781 string* cfg_predLayerIdsPtr [MAX_LAYERS]; 782 #endif 783 string 784 string 785 string 786 string 787 string 788 Int* 789 string 790 string 791 string 792 string 793 string 794 string 795 string 796 string 797 string 798 string 799 string 800 string* 801 string* 802 string* 803 string* 804 string* 805 string* 806 string* 807 string* 808 string* 809 string* 810 string* 811 string* 812 string* 813 string* 814 string* 815 string* 782 783 string cfg_refLocationOffsetLayerId [MAX_LAYERS]; 784 string cfg_scaledRefLayerLeftOffset [MAX_LAYERS]; 785 string cfg_scaledRefLayerTopOffset [MAX_LAYERS]; 786 string cfg_scaledRefLayerRightOffset [MAX_LAYERS]; 787 string cfg_scaledRefLayerBottomOffset [MAX_LAYERS]; 788 Int* cfg_numRefLayerLocationOffsets[MAX_LAYERS]; 789 string cfg_scaledRefLayerOffsetPresentFlag [MAX_LAYERS]; 790 string cfg_refRegionOffsetPresentFlag [MAX_LAYERS]; 791 string cfg_refRegionLeftOffset [MAX_LAYERS]; 792 string cfg_refRegionTopOffset [MAX_LAYERS]; 793 string cfg_refRegionRightOffset [MAX_LAYERS]; 794 string cfg_refRegionBottomOffset [MAX_LAYERS]; 795 string cfg_resamplePhaseSetPresentFlag [MAX_LAYERS]; 796 string cfg_phaseHorLuma [MAX_LAYERS]; 797 string cfg_phaseVerLuma [MAX_LAYERS]; 798 string cfg_phaseHorChroma [MAX_LAYERS]; 799 string cfg_phaseVerChroma [MAX_LAYERS]; 800 string* cfg_refLocationOffsetLayerIdPtr [MAX_LAYERS]; 801 string* cfg_scaledRefLayerLeftOffsetPtr [MAX_LAYERS]; 802 string* cfg_scaledRefLayerTopOffsetPtr [MAX_LAYERS]; 803 string* cfg_scaledRefLayerRightOffsetPtr [MAX_LAYERS]; 804 string* cfg_scaledRefLayerBottomOffsetPtr [MAX_LAYERS]; 805 string* cfg_scaledRefLayerOffsetPresentFlagPtr [MAX_LAYERS]; 806 string* cfg_refRegionOffsetPresentFlagPtr [MAX_LAYERS]; 807 string* cfg_refRegionLeftOffsetPtr [MAX_LAYERS]; 808 string* cfg_refRegionTopOffsetPtr [MAX_LAYERS]; 809 string* cfg_refRegionRightOffsetPtr [MAX_LAYERS]; 810 string* cfg_refRegionBottomOffsetPtr [MAX_LAYERS]; 811 string* cfg_resamplePhaseSetPresentFlagPtr [MAX_LAYERS]; 812 string* cfg_phaseHorLumaPtr [MAX_LAYERS]; 813 string* cfg_phaseVerLumaPtr [MAX_LAYERS]; 814 string* cfg_phaseHorChromaPtr [MAX_LAYERS]; 815 string* cfg_phaseVerChromaPtr [MAX_LAYERS]; 816 816 817 817 #if RC_SHVC_HARMONIZATION … … 881 881 cfg_uiQuadtreeTUMaxDepthIntra[layer] = &m_acLayerCfg[layer].m_uiQuadtreeTUMaxDepthIntra; 882 882 #endif 883 #if VPS_EXTN_DIRECT_REF_LAYERS 883 884 884 cfg_numSamplePredRefLayers [layer] = &m_acLayerCfg[layer].m_numSamplePredRefLayers; 885 885 cfg_samplePredRefLayerIdsPtr[layer] = &cfg_samplePredRefLayerIds[layer]; … … 887 887 cfg_motionPredRefLayerIdsPtr[layer] = &cfg_motionPredRefLayerIds[layer]; 888 888 cfg_numActiveRefLayers [layer] = &m_acLayerCfg[layer].m_numActiveRefLayers; 889 cfg_predLayerIdsPtr [layer] 890 #endif 889 cfg_predLayerIdsPtr [layer] = &cfg_predLayerIds[layer]; 890 891 891 cfg_numRefLayerLocationOffsets [layer] = &m_acLayerCfg[layer].m_numRefLayerLocationOffsets; 892 892 cfg_waveFrontSynchro[layer] = &m_acLayerCfg[layer].m_waveFrontSynchro; … … 1054 1054 #endif 1055 1055 ("LayerId%d", cfg_layerId, -1, MAX_LAYERS, "Layer id") 1056 #if VPS_EXTN_DIRECT_REF_LAYERS 1056 1057 1057 ("NumSamplePredRefLayers%d", cfg_numSamplePredRefLayers, -1, MAX_LAYERS, "Number of sample prediction reference layers") 1058 1058 ("SamplePredRefLayerIds%d", cfg_samplePredRefLayerIdsPtr, string(""), MAX_LAYERS, "sample pred reference layer IDs") … … 1061 1061 ("NumActiveRefLayers%d", cfg_numActiveRefLayers, -1, MAX_LAYERS, "Number of active reference layers") 1062 1062 ("PredLayerIds%d", cfg_predLayerIdsPtr, string(""), MAX_LAYERS, "inter-layer prediction layer IDs") 1063 #endif 1063 1064 1064 ("NumLayers", m_numLayers, 1, "Number of layers to code") 1065 1065 #if Q0078_ADD_LAYER_SETS … … 2334 2334 } 2335 2335 } 2336 } 2337 2338 #if VPS_EXTN_DIRECT_REF_LAYERS 2339 for(Int layer = 0; layer < MAX_LAYERS; layer++) 2340 { 2336 2341 2337 Char* pSamplePredRefLayerIds = cfg_samplePredRefLayerIds[layer].empty() ? NULL: strdup(cfg_samplePredRefLayerIds[layer].c_str()); 2342 2338 if( m_acLayerCfg[layer].m_numSamplePredRefLayers > 0 ) … … 2373 2369 pSamplePredRefLayerIds = NULL; 2374 2370 } 2375 } 2376 for(Int layer = 0; layer < MAX_LAYERS; layer++) 2377 { 2371 2378 2372 Char* pMotionPredRefLayerIds = cfg_motionPredRefLayerIds[layer].empty() ? NULL: strdup(cfg_motionPredRefLayerIds[layer].c_str()); 2379 2373 if( m_acLayerCfg[layer].m_numMotionPredRefLayers > 0 ) … … 2410 2404 pMotionPredRefLayerIds = NULL; 2411 2405 } 2412 } 2413 2414 for(Int layer = 0; layer < MAX_LAYERS; layer++) 2415 { 2406 2416 2407 Char* pPredLayerIds = cfg_predLayerIds[layer].empty() ? NULL: strdup(cfg_predLayerIds[layer].c_str()); 2417 2408 if( m_acLayerCfg[layer].m_numActiveRefLayers > 0 ) … … 2448 2439 pPredLayerIds = NULL; 2449 2440 } 2450 } 2451 #endif 2441 } //for(Int layer = 0; layer < MAX_LAYERS; layer++) 2442 2452 2443 #if Q0078_ADD_LAYER_SETS 2453 2444 #if OUTPUT_LAYER_SETS_CONFIG … … 4269 4260 4270 4261 #if SVC_EXTENSION 4271 #if VPS_EXTN_DIRECT_REF_LAYERS4272 4262 xConfirmPara( (m_acLayerCfg[0].m_numSamplePredRefLayers != 0) && (m_acLayerCfg[0].m_numSamplePredRefLayers != -1), "Layer 0 cannot have any reference layers" ); 4273 4263 // NOTE: m_numSamplePredRefLayers (for any layer) could be -1 (not signalled in cfg), in which case only the "previous layer" would be taken for reference … … 4321 4311 } 4322 4312 } 4323 #endif //VPS_EXTN_DIRECT_REF_LAYERS4324 4313 4325 4314 if( m_adaptiveResolutionChange > 0 ) -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r1147 r1148 52 52 Int m_auxId; 53 53 #endif 54 #if VPS_EXTN_DIRECT_REF_LAYERS 54 55 55 Int *m_samplePredRefLayerIds; 56 56 Int m_numSamplePredRefLayers; … … 59 59 Int *m_predLayerIds; 60 60 Int m_numActiveRefLayers; 61 #endif62 61 63 62 #if LAYER_CTB … … 188 187 Int getIntQP() {return m_iQP; } 189 188 Int* getdQPs() {return m_aidQP; } 190 #if VPS_EXTN_DIRECT_REF_LAYERS 189 #endif 190 191 191 Int getNumSamplePredRefLayers() {return m_numSamplePredRefLayers; } 192 192 Int* getSamplePredRefLayerIds() {return m_samplePredRefLayerIds; } … … 199 199 Int* getPredLayerIds() {return m_predLayerIds; } 200 200 Int getPredLayerIdx(Int i) {return m_predLayerIds[i]; } 201 #endif 201 202 202 #if RC_SHVC_HARMONIZATION 203 203 Bool getRCEnableRateControl() {return m_RCEnableRateControl; } -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1147 r1148 338 338 } 339 339 340 #if VPS_EXTN_DIRECT_REF_LAYERS 341 if(layer) 340 if( layer ) 342 341 { 343 342 UInt prevLayerIdx = 0; … … 442 441 m_acTEncTop[layer].setNumDirectRefLayers(0); 443 442 } 444 #endif //VPS_EXTN_DIRECT_REF_LAYERS 443 445 444 //===== Slice ======== 446 445 … … 1471 1470 #endif 1472 1471 #endif 1473 #if VPS_EXTN_DIRECT_REF_LAYERS 1472 1474 1473 // Direct reference layers 1475 1474 UInt maxDirectRefLayers = 0; … … 1547 1546 vps->deriveLayerIdListVariablesForAddLayerSets(); 1548 1547 #endif 1549 #endif 1548 1550 1549 #if OUTPUT_LAYER_SETS_CONFIG 1551 1550
Note: See TracChangeset for help on using the changeset viewer.