Changeset 1030 in SHVCSoftware
- Timestamp:
- 26 Feb 2015, 23:22:07 (10 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1029 r1030 815 815 #endif 816 816 #if O0098_SCALED_REF_LAYER_ID 817 string cfg_ scaledRefLayerId [MAX_LAYERS];817 string cfg_refLocationOffsetLayerId [MAX_LAYERS]; 818 818 #endif 819 819 string cfg_scaledRefLayerLeftOffset [MAX_LAYERS]; … … 821 821 string cfg_scaledRefLayerRightOffset [MAX_LAYERS]; 822 822 string cfg_scaledRefLayerBottomOffset [MAX_LAYERS]; 823 Int* cfg_num ScaledRefLayerOffsets[MAX_LAYERS];823 Int* cfg_numRefLayerLocationOffsets[MAX_LAYERS]; 824 824 #if REF_REGION_OFFSET 825 825 string cfg_scaledRefLayerOffsetPresentFlag [MAX_LAYERS]; … … 843 843 844 844 #if O0098_SCALED_REF_LAYER_ID 845 string* cfg_ scaledRefLayerIdPtr[MAX_LAYERS];845 string* cfg_refLocationOffsetLayerIdPtr [MAX_LAYERS]; 846 846 #endif 847 847 string* cfg_scaledRefLayerLeftOffsetPtr [MAX_LAYERS]; … … 944 944 cfg_predLayerIdsPtr [layer] = &cfg_predLayerIds[layer]; 945 945 #endif 946 cfg_num ScaledRefLayerOffsets [layer] = &m_acLayerCfg[layer].m_numScaledRefLayerOffsets;946 cfg_numRefLayerLocationOffsets [layer] = &m_acLayerCfg[layer].m_numRefLayerLocationOffsets; 947 947 cfg_waveFrontSynchro[layer] = &m_acLayerCfg[layer].m_waveFrontSynchro; 948 948 for(Int i = 0; i < MAX_LAYERS; i++) 949 949 { 950 950 #if O0098_SCALED_REF_LAYER_ID 951 cfg_ scaledRefLayerIdPtr [layer] = &cfg_scaledRefLayerId[layer];951 cfg_refLocationOffsetLayerIdPtr [layer] = &cfg_refLocationOffsetLayerId[layer]; 952 952 #endif 953 953 cfg_scaledRefLayerLeftOffsetPtr [layer] = &cfg_scaledRefLayerLeftOffset[layer]; … … 1180 1180 ("InternalBitDepthC", m_internalBitDepthC, 0, "As per InternalBitDepth but for chroma component. (default:IntrenalBitDepth)") 1181 1181 #endif 1182 ("Num ScaledRefLayerOffsets%d", cfg_numScaledRefLayerOffsets, 0, MAX_LAYERS, "Number of scaled offset layersets ")1182 ("NumRefLocationOffsets%d", cfg_numRefLayerLocationOffsets, 0, MAX_LAYERS, "Number of reference layer offset sets ") 1183 1183 #if O0098_SCALED_REF_LAYER_ID 1184 (" ScaledRefLayerId%d", cfg_scaledRefLayerIdPtr, string(""), MAX_LAYERS, "Layer ID of scaled base layer picture")1184 ("RefLocationOffsetLayerId%d", cfg_refLocationOffsetLayerIdPtr, string(""), MAX_LAYERS, "Layer ID of reference location offset") 1185 1185 #endif 1186 1186 ("ScaledRefLayerLeftOffset%d", cfg_scaledRefLayerLeftOffsetPtr, string(""), MAX_LAYERS, "Horizontal offset of top-left luma sample of scaled base layer picture with respect to" … … 2155 2155 2156 2156 // If number of scaled ref. layer offsets is non-zero, at least one of the offsets should be specified 2157 if(m_acLayerCfg[layer].m_num ScaledRefLayerOffsets)2157 if(m_acLayerCfg[layer].m_numRefLayerLocationOffsets) 2158 2158 { 2159 2159 #if O0098_SCALED_REF_LAYER_ID 2160 assert( strcmp(cfg_ scaledRefLayerId[layer].c_str(), ""));2160 assert( strcmp(cfg_refLocationOffsetLayerId[layer].c_str(), "")); 2161 2161 #endif 2162 2162 #if REF_REGION_OFFSET … … 2201 2201 #if O0098_SCALED_REF_LAYER_ID 2202 2202 // ID // 2203 if(strcmp(cfg_ scaledRefLayerId[layer].c_str(), ""))2204 { 2205 cfgStringToArray( &tempArray, cfg_ scaledRefLayerId[layer], m_acLayerCfg[layer].m_numScaledRefLayerOffsets, "ScaledRefLayerId");2203 if(strcmp(cfg_refLocationOffsetLayerId[layer].c_str(), "")) 2204 { 2205 cfgStringToArray( &tempArray, cfg_refLocationOffsetLayerId[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "RefLocationOffsetLayerId"); 2206 2206 if(tempArray) 2207 2207 { 2208 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2208 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2209 2209 { 2210 m_acLayerCfg[layer].m_ scaledRefLayerId[i] = tempArray[i];2210 m_acLayerCfg[layer].m_refLocationOffsetLayerId[i] = tempArray[i]; 2211 2211 } 2212 2212 delete [] tempArray; tempArray = NULL; … … 2219 2219 if(strcmp(cfg_scaledRefLayerOffsetPresentFlag[layer].c_str(), "")) 2220 2220 { 2221 cfgStringToArray( &tempArray, cfg_scaledRefLayerOffsetPresentFlag[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "ScaledRefLayerOffsetPresentFlag");2221 cfgStringToArray( &tempArray, cfg_scaledRefLayerOffsetPresentFlag[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "ScaledRefLayerOffsetPresentFlag"); 2222 2222 if(tempArray) 2223 2223 { 2224 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2224 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2225 2225 { 2226 2226 m_acLayerCfg[layer].m_scaledRefLayerOffsetPresentFlag[i] = tempArray[i]; … … 2234 2234 if(strcmp(cfg_scaledRefLayerLeftOffset[layer].c_str(), "")) 2235 2235 { 2236 cfgStringToArray( &tempArray, cfg_scaledRefLayerLeftOffset[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "LeftOffset");2236 cfgStringToArray( &tempArray, cfg_scaledRefLayerLeftOffset[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "LeftOffset"); 2237 2237 if(tempArray) 2238 2238 { 2239 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2239 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2240 2240 { 2241 2241 m_acLayerCfg[layer].m_scaledRefLayerLeftOffset[i] = tempArray[i]; … … 2248 2248 if(strcmp(cfg_scaledRefLayerTopOffset[layer].c_str(), "")) 2249 2249 { 2250 cfgStringToArray( &tempArray, cfg_scaledRefLayerTopOffset[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "TopOffset");2250 cfgStringToArray( &tempArray, cfg_scaledRefLayerTopOffset[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "TopOffset"); 2251 2251 if(tempArray) 2252 2252 { 2253 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2253 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2254 2254 { 2255 2255 m_acLayerCfg[layer].m_scaledRefLayerTopOffset[i] = tempArray[i]; … … 2262 2262 if(strcmp(cfg_scaledRefLayerRightOffset[layer].c_str(), "")) 2263 2263 { 2264 cfgStringToArray( &tempArray, cfg_scaledRefLayerRightOffset[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "RightOffset");2264 cfgStringToArray( &tempArray, cfg_scaledRefLayerRightOffset[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "RightOffset"); 2265 2265 if(tempArray) 2266 2266 { 2267 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2267 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2268 2268 { 2269 2269 m_acLayerCfg[layer].m_scaledRefLayerRightOffset[i] = tempArray[i]; … … 2276 2276 if(strcmp(cfg_scaledRefLayerBottomOffset[layer].c_str(), "")) 2277 2277 { 2278 cfgStringToArray( &tempArray, cfg_scaledRefLayerBottomOffset[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "BottomOffset");2278 cfgStringToArray( &tempArray, cfg_scaledRefLayerBottomOffset[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "BottomOffset"); 2279 2279 if(tempArray) 2280 2280 { 2281 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2281 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2282 2282 { 2283 2283 m_acLayerCfg[layer].m_scaledRefLayerBottomOffset[i] = tempArray[i]; … … 2305 2305 if(strcmp(cfg_refRegionOffsetPresentFlag[layer].c_str(), "")) 2306 2306 { 2307 cfgStringToArray( &tempArray, cfg_refRegionOffsetPresentFlag[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "RefRegionOffsetPresentFlag");2307 cfgStringToArray( &tempArray, cfg_refRegionOffsetPresentFlag[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "RefRegionOffsetPresentFlag"); 2308 2308 if(tempArray) 2309 2309 { 2310 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2310 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2311 2311 { 2312 2312 m_acLayerCfg[layer].m_refRegionOffsetPresentFlag[i] = tempArray[i]; … … 2319 2319 if(strcmp(cfg_refRegionLeftOffset[layer].c_str(), "")) 2320 2320 { 2321 cfgStringToArray( &tempArray, cfg_refRegionLeftOffset[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "RefRegionLeftOffset");2321 cfgStringToArray( &tempArray, cfg_refRegionLeftOffset[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "RefRegionLeftOffset"); 2322 2322 if(tempArray) 2323 2323 { 2324 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2324 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2325 2325 { 2326 2326 m_acLayerCfg[layer].m_refRegionLeftOffset[i] = tempArray[i]; … … 2333 2333 if(strcmp(cfg_refRegionTopOffset[layer].c_str(), "")) 2334 2334 { 2335 cfgStringToArray( &tempArray, cfg_refRegionTopOffset[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "RefRegionTopOffset");2335 cfgStringToArray( &tempArray, cfg_refRegionTopOffset[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "RefRegionTopOffset"); 2336 2336 if(tempArray) 2337 2337 { 2338 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2338 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2339 2339 { 2340 2340 m_acLayerCfg[layer].m_refRegionTopOffset[i] = tempArray[i]; … … 2347 2347 if(strcmp(cfg_refRegionRightOffset[layer].c_str(), "")) 2348 2348 { 2349 cfgStringToArray( &tempArray, cfg_refRegionRightOffset[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "RefRegionRightOffset");2349 cfgStringToArray( &tempArray, cfg_refRegionRightOffset[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "RefRegionRightOffset"); 2350 2350 if(tempArray) 2351 2351 { 2352 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2352 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2353 2353 { 2354 2354 m_acLayerCfg[layer].m_refRegionRightOffset[i] = tempArray[i]; … … 2361 2361 if(strcmp(cfg_refRegionBottomOffset[layer].c_str(), "")) 2362 2362 { 2363 cfgStringToArray( &tempArray, cfg_refRegionBottomOffset[layer], m_acLayerCfg[layer].m_num ScaledRefLayerOffsets, "RefRegionBottomOffset");2363 cfgStringToArray( &tempArray, cfg_refRegionBottomOffset[layer], m_acLayerCfg[layer].m_numRefLayerLocationOffsets, "RefRegionBottomOffset"); 2364 2364 if(tempArray) 2365 2365 { 2366 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)2366 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 2367 2367 { 2368 2368 m_acLayerCfg[layer].m_refRegionBottomOffset[i] = tempArray[i]; … … 2373 2373 #endif 2374 2374 #if R0209_GENERIC_PHASE 2375 Int numPhaseSet = m_acLayerCfg[layer].m_num ScaledRefLayerOffsets;2375 Int numPhaseSet = m_acLayerCfg[layer].m_numRefLayerLocationOffsets; 2376 2376 2377 2377 // Presense Flag // -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r1029 r1030 64 64 m_confWinLeft = m_confWinRight = m_confWinTop = m_confWinBottom = 0; 65 65 m_aiPad[1] = m_aiPad[0] = 0; 66 m_num ScaledRefLayerOffsets = 0;66 m_numRefLayerLocationOffsets = 0; 67 67 #if O0098_SCALED_REF_LAYER_ID 68 ::memset(m_ scaledRefLayerId, 0, sizeof(m_scaledRefLayerId));68 ::memset(m_refLocationOffsetLayerId, 0, sizeof(m_refLocationOffsetLayerId)); 69 69 #endif 70 70 ::memset(m_scaledRefLayerLeftOffset, 0, sizeof(m_scaledRefLayerLeftOffset)); -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r1029 r1030 93 93 Int* m_aidQP; ///< array of slice QP values 94 94 TAppEncCfg* m_cAppEncCfg; ///< pointer to app encoder config 95 Int m_num ScaledRefLayerOffsets;95 Int m_numRefLayerLocationOffsets; 96 96 #if O0098_SCALED_REF_LAYER_ID 97 Int m_ scaledRefLayerId[MAX_LAYERS];97 Int m_refLocationOffsetLayerId [MAX_LAYERS]; 98 98 #endif 99 99 Int m_scaledRefLayerLeftOffset [MAX_LAYERS]; -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1029 r1030 421 421 } 422 422 } 423 #if REF_REGION_OFFSET424 for(Int i = 0; i < m_acLayerCfg[layer].m_numScaledRefLayerOffsets; i++)425 {426 #if AUXILIARY_PICTURES427 Int cf = m_acLayerCfg[i].m_chromaFormatIDC;428 Int rlSubWidthC = ( cf == CHROMA_420 || cf == CHROMA_422 ) ? 2 : 1;429 Int rlSubHeightC = ( cf == CHROMA_420 ) ? 2 : 1;430 #else431 Int rlSubWidthC = 2;432 Int rlSubHeightC = 2;433 #endif434 m_acTEncTop[layer].setRefRegionOffsetPresentFlag ( i, m_acLayerCfg[layer].m_refRegionOffsetPresentFlag[i] );435 m_acTEncTop[layer].getRefLayerWindow(i).setWindow ( rlSubWidthC * m_acLayerCfg[layer].m_refRegionLeftOffset[i], rlSubWidthC * m_acLayerCfg[layer].m_refRegionRightOffset[i],436 rlSubHeightC * m_acLayerCfg[layer].m_refRegionTopOffset[i], rlSubHeightC * m_acLayerCfg[layer].m_refRegionBottomOffset[i]);437 }438 #endif439 423 } 440 424 else … … 762 746 m_acTEncTop[layer].setLog2MaxMvLengthVertical ( m_log2MaxMvLengthVertical ); 763 747 m_acTEncTop[layer].setElRapSliceTypeB (layer == 0? 0 : m_elRapSliceBEnabled); 748 764 749 if( layer > 0 ) 765 750 { 766 751 #if REF_REGION_OFFSET 767 752 #if AUXILIARY_PICTURES 768 Int cf = m_acLayerCfg[layer].m_chromaFormatIDC; 769 Int subWidthC = ( cf == CHROMA_420 || cf == CHROMA_422 ) ? 2 : 1; 770 Int subHeightC = ( cf == CHROMA_420 ) ? 2 : 1; 753 Int subWidthC = ( m_acLayerCfg[layer].m_chromaFormatIDC == CHROMA_420 || m_acLayerCfg[layer].m_chromaFormatIDC == CHROMA_422 ) ? 2 : 1; 754 Int subHeightC = ( m_acLayerCfg[layer].m_chromaFormatIDC == CHROMA_420 ) ? 2 : 1; 771 755 #else 772 756 Int subWidthC = 2; … … 774 758 #endif 775 759 #endif 776 m_acTEncTop[layer].setNum ScaledRefLayerOffsets ( m_acLayerCfg[layer].m_numScaledRefLayerOffsets );777 for(Int i = 0; i < m_acLayerCfg[layer].m_num ScaledRefLayerOffsets; i++)760 m_acTEncTop[layer].setNumRefLayerLocationOffsets ( m_acLayerCfg[layer].m_numRefLayerLocationOffsets ); 761 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 778 762 { 779 763 #if O0098_SCALED_REF_LAYER_ID 780 m_acTEncTop[layer].set ScaledRefLayerId (i, m_acLayerCfg[layer].m_scaledRefLayerId[i]);764 m_acTEncTop[layer].setRefLocationOffsetLayerId (i, m_acLayerCfg[layer].m_refLocationOffsetLayerId[i]); 781 765 #endif 782 766 #if REF_REGION_OFFSET … … 788 772 m_acTEncTop[layer].setVertPhasePositionEnableFlag ( i, m_acLayerCfg[layer].m_vertPhasePositionEnableFlag[i] ); 789 773 m_acTEncTop[layer].getScaledRefLayerWindow(i).setWindow ( 2*m_acLayerCfg[layer].m_scaledRefLayerLeftOffset[i], 2*m_acLayerCfg[layer].m_scaledRefLayerRightOffset[i], 790 774 2*m_acLayerCfg[layer].m_scaledRefLayerTopOffset[i], 2*m_acLayerCfg[layer].m_scaledRefLayerBottomOffset[i], m_acLayerCfg[layer].m_vertPhasePositionEnableFlag[i] ); 791 775 #else 792 776 m_acTEncTop[layer].getScaledRefLayerWindow(i).setWindow ( 2*m_acLayerCfg[layer].m_scaledRefLayerLeftOffset[i], 2*m_acLayerCfg[layer].m_scaledRefLayerRightOffset[i], 793 2*m_acLayerCfg[layer].m_scaledRefLayerTopOffset[i], 2*m_acLayerCfg[layer].m_scaledRefLayerBottomOffset[i]); 794 #endif 795 #endif 777 2*m_acLayerCfg[layer].m_scaledRefLayerTopOffset[i], 2*m_acLayerCfg[layer].m_scaledRefLayerBottomOffset[i]); 778 #endif 779 #endif 780 Int rlSubWidthC = ( m_acLayerCfg[i].m_chromaFormatIDC == CHROMA_420 || m_acLayerCfg[i].m_chromaFormatIDC == CHROMA_422 ) ? 2 : 1; 781 Int rlSubHeightC = ( m_acLayerCfg[i].m_chromaFormatIDC == CHROMA_420 ) ? 2 : 1; 782 783 m_acTEncTop[layer].setRefRegionOffsetPresentFlag ( i, m_acLayerCfg[layer].m_refRegionOffsetPresentFlag[i] ); 784 m_acTEncTop[layer].getRefLayerWindow(i).setWindow ( rlSubWidthC * m_acLayerCfg[layer].m_refRegionLeftOffset[i], rlSubWidthC * m_acLayerCfg[layer].m_refRegionRightOffset[i], 785 rlSubHeightC * m_acLayerCfg[layer].m_refRegionTopOffset[i], rlSubHeightC * m_acLayerCfg[layer].m_refRegionBottomOffset[i]); 796 786 #if R0209_GENERIC_PHASE 797 787 m_acTEncTop[layer].setResamplePhaseSetPresentFlag ( i, m_acLayerCfg[layer].m_resamplePhaseSetPresentFlag[i] ); … … 803 793 } 804 794 } 795 805 796 #if M0040_ADAPTIVE_RESOLUTION_CHANGE 806 797 m_acTEncTop[layer].setAdaptiveResolutionChange ( m_adaptiveResolutionChange ); -
branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.cpp
r1029 r1030 3430 3430 #if MOVE_SCALED_OFFSET_TO_PPS 3431 3431 #if O0098_SCALED_REF_LAYER_ID 3432 Int leftStartL = baseColPic->getSlice(0)->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowLeftOffset();3433 Int topStartL = baseColPic->getSlice(0)->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowTopOffset();3432 Int leftStartL = m_pcSlice->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowLeftOffset(); 3433 Int topStartL = m_pcSlice->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowTopOffset(); 3434 3434 #else 3435 3435 Int leftStartL = baseColPic->getSlice(0)->getPPS()->getScaledRefLayerWindow(refLayerIdc).getWindowLeftOffset(); … … 3447 3447 3448 3448 #if REF_REGION_OFFSET 3449 const Window &windowRL = baseColPic->getSlice(0)->getPPS()->getRefLayerWindow(refLayerIdc);3449 const Window &windowRL = m_pcSlice->getPPS()->getRefLayerWindow(refLayerIdc); 3450 3450 Int iBX = (((uiPelX - leftStartL)*g_posScalingFactor[refLayerIdc][0] + (1<<15)) >> 16) + windowRL.getWindowLeftOffset(); 3451 3451 Int iBY = (((uiPelY - topStartL )*g_posScalingFactor[refLayerIdc][1] + (1<<15)) >> 16) + windowRL.getWindowTopOffset(); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1029 r1030 2538 2538 #endif 2539 2539 #if MOVE_SCALED_OFFSET_TO_PPS 2540 , m_num ScaledRefLayerOffsets ( 0 )2540 , m_numRefLayerLocationOffsets ( 0 ) 2541 2541 #endif 2542 2542 #if Q0048_CGS_3D_ASYMLUT … … 3234 3234 static Window win; 3235 3235 3236 for (Int i = 0; i < m_num ScaledRefLayerOffsets; i++)3237 { 3238 if (layerId == m_ scaledRefLayerId[i])3236 for (Int i = 0; i < m_numRefLayerLocationOffsets; i++) 3237 { 3238 if (layerId == m_refLocationOffsetLayerId[i]) 3239 3239 { 3240 3240 return m_scaledRefLayerWindow[i]; … … 3251 3251 static Window win; 3252 3252 3253 for (Int i = 0; i < m_num ScaledRefLayerOffsets; i++)3254 { 3255 if (layerId == m_ scaledRefLayerId[i])3253 for (Int i = 0; i < m_numRefLayerLocationOffsets; i++) 3254 { 3255 if (layerId == m_refLocationOffsetLayerId[i]) 3256 3256 { 3257 3257 return m_refLayerWindow[i]; … … 4277 4277 pcIlpPic[refLayerIdc]->setIsLongTerm(1); 4278 4278 4279 // assign PPS to IRLP to be used for reference location offsets 4280 pcIlpPic[refLayerIdc]->getSlice(0)->setPPS( m_pcPic->getSlice(0)->getPPS() ); 4281 4279 4282 #if REF_IDX_MFM 4280 4283 if( m_bMFMEnabledFlag && !(m_eNalUnitType >= NAL_UNIT_CODED_SLICE_BLA_W_LP && m_eNalUnitType <= NAL_UNIT_CODED_SLICE_CRA) ) -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1029 r1030 2053 2053 #endif 2054 2054 #if MOVE_SCALED_OFFSET_TO_PPS 2055 UInt m_num ScaledRefLayerOffsets;2055 UInt m_numRefLayerLocationOffsets; 2056 2056 #if O0098_SCALED_REF_LAYER_ID 2057 UInt m_ scaledRefLayerId[MAX_LAYERS];2057 UInt m_refLocationOffsetLayerId[MAX_LAYERS]; 2058 2058 #endif 2059 2059 Window m_scaledRefLayerWindow[MAX_LAYERS]; … … 2221 2221 #endif 2222 2222 #if MOVE_SCALED_OFFSET_TO_PPS 2223 UInt getNum ScaledRefLayerOffsets() { return m_numScaledRefLayerOffsets; }2224 Void setNum ScaledRefLayerOffsets(Int x) { m_numScaledRefLayerOffsets = x; }2223 UInt getNumRefLayerLocationOffsets() { return m_numRefLayerLocationOffsets; } 2224 Void setNumRefLayerLocationOffsets(Int x) { m_numRefLayerLocationOffsets = x; } 2225 2225 #if O0098_SCALED_REF_LAYER_ID 2226 UInt get ScaledRefLayerId(Int x) { return m_scaledRefLayerId[x]; }2227 Void set ScaledRefLayerId(Int x, UInt id) { m_scaledRefLayerId[x] = id; }2226 UInt getRefLocationOffsetLayerId(Int x) { return m_refLocationOffsetLayerId[x]; } 2227 Void setRefLocationOffsetLayerId(Int x, UInt id) { m_refLocationOffsetLayerId[x] = id; } 2228 2228 Window& getScaledRefLayerWindowForLayer( Int layerId ); 2229 2229 #endif -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1029 r1030 412 412 413 413 #if REF_REGION_OFFSET 414 READ_UVLC( uiCode, "num_ref_loc_offsets" ); pcPPS->setNum ScaledRefLayerOffsets(uiCode);415 for(Int k = 0; k < pcPPS->getNum ScaledRefLayerOffsets(); k++)414 READ_UVLC( uiCode, "num_ref_loc_offsets" ); pcPPS->setNumRefLayerLocationOffsets(uiCode); 415 for(Int k = 0; k < pcPPS->getNumRefLayerLocationOffsets(); k++) 416 416 { 417 READ_CODE( 6, uiCode, "ref_loc_offset_layer_id" ); pcPPS->set ScaledRefLayerId( k, uiCode );417 READ_CODE( 6, uiCode, "ref_loc_offset_layer_id" ); pcPPS->setRefLocationOffsetLayerId( k, uiCode ); 418 418 READ_FLAG( uiCode, "scaled_ref_layer_offset_present_flag" ); pcPPS->setScaledRefLayerOffsetPresentFlag( k, uiCode ); 419 419 if (uiCode) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1029 r1030 317 317 318 318 #if REF_REGION_OFFSET 319 WRITE_UVLC( pcPPS->getNum ScaledRefLayerOffsets(), "num_ref_loc_offsets" );320 for(Int k = 0; k < pcPPS->getNum ScaledRefLayerOffsets(); k++)319 WRITE_UVLC( pcPPS->getNumRefLayerLocationOffsets(), "num_ref_loc_offsets" ); 320 for(Int k = 0; k < pcPPS->getNumRefLayerLocationOffsets(); k++) 321 321 { 322 WRITE_CODE( pcPPS->get ScaledRefLayerId(k), 6, "ref_loc_offset_layer_id" );322 WRITE_CODE( pcPPS->getRefLocationOffsetLayerId(k), 6, "ref_loc_offset_layer_id" ); 323 323 WRITE_FLAG( pcPPS->getScaledRefLayerOffsetPresentFlag(k) ? 1 : 0, "scaled_ref_layer_offset_prsent_flag" ); 324 324 if (pcPPS->getScaledRefLayerOffsetPresentFlag(k)) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1029 r1030 84 84 m_bMFMEnabledFlag = false; 85 85 #endif 86 m_num ScaledRefLayerOffsets = 0;86 m_numRefLayerLocationOffsets = 0; 87 87 #if POC_RESET_FLAG || POC_RESET_IDC_ENCODER 88 88 m_pocAdjustmentValue = 0; … … 1151 1151 #endif 1152 1152 #if MOVE_SCALED_OFFSET_TO_PPS 1153 m_cPPS.setNum ScaledRefLayerOffsets(m_numScaledRefLayerOffsets);1154 for(Int i = 0; i < m_cPPS.getNum ScaledRefLayerOffsets(); i++)1153 m_cPPS.setNumRefLayerLocationOffsets(m_numRefLayerLocationOffsets); 1154 for(Int i = 0; i < m_cPPS.getNumRefLayerLocationOffsets(); i++) 1155 1155 { 1156 1156 #if O0098_SCALED_REF_LAYER_ID 1157 m_cPPS.set ScaledRefLayerId(i, m_scaledRefLayerId[i]);1157 m_cPPS.setRefLocationOffsetLayerId(i, m_refLocationOffsetLayerId[i]); 1158 1158 #endif 1159 1159 m_cPPS.getScaledRefLayerWindow(i) = m_scaledRefLayerWindow[i]; … … 1165 1165 #if R0209_GENERIC_PHASE 1166 1166 m_cPPS.setResamplePhaseSetPresentFlag( i, m_resamplePhaseSetPresentFlag[i] ); 1167 m_cPPS.setPhaseHorLuma( m_ scaledRefLayerId[i], m_phaseHorLuma[i] );1168 m_cPPS.setPhaseVerLuma( m_ scaledRefLayerId[i], m_phaseVerLuma[i] );1169 m_cPPS.setPhaseHorChroma( m_ scaledRefLayerId[i], m_phaseHorChroma[i] );1170 m_cPPS.setPhaseVerChroma( m_ scaledRefLayerId[i], m_phaseVerChroma[i] );1167 m_cPPS.setPhaseHorLuma( m_refLocationOffsetLayerId[i], m_phaseHorLuma[i] ); 1168 m_cPPS.setPhaseVerLuma( m_refLocationOffsetLayerId[i], m_phaseVerLuma[i] ); 1169 m_cPPS.setPhaseHorChroma( m_refLocationOffsetLayerId[i], m_phaseHorChroma[i] ); 1170 m_cPPS.setPhaseVerChroma( m_refLocationOffsetLayerId[i], m_phaseVerChroma[i] ); 1171 1171 #endif 1172 1172 #if P0312_VERT_PHASE_ADJ … … 1678 1678 static Window win; 1679 1679 1680 for (Int i = 0; i < m_num ScaledRefLayerOffsets; i++)1681 { 1682 if (layerId == m_ scaledRefLayerId[i])1680 for (Int i = 0; i < m_numRefLayerLocationOffsets; i++) 1681 { 1682 if (layerId == m_refLocationOffsetLayerId[i]) 1683 1683 { 1684 1684 return m_scaledRefLayerWindow[i]; … … 1694 1694 static Window win; 1695 1695 1696 for (Int i = 0; i < m_num ScaledRefLayerOffsets; i++)1696 for (Int i = 0; i < m_numRefLayerLocationOffsets; i++) 1697 1697 { 1698 1698 if (layerId == m_refLayerId[i]) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h
r1029 r1030 122 122 Bool m_bMFMEnabledFlag; 123 123 #endif 124 UInt m_num ScaledRefLayerOffsets;124 UInt m_numRefLayerLocationOffsets; 125 125 #if O0098_SCALED_REF_LAYER_ID 126 UInt m_ scaledRefLayerId[MAX_LAYERS];126 UInt m_refLocationOffsetLayerId[MAX_LAYERS]; 127 127 #endif 128 128 Window m_scaledRefLayerWindow[MAX_LAYERS]; … … 224 224 Int getNumPicRcvd () { return m_iNumPicRcvd; } 225 225 Void setNumPicRcvd ( Int num ) { m_iNumPicRcvd = num; } 226 Void setNum ScaledRefLayerOffsets(Int x) { m_numScaledRefLayerOffsets = x; }227 UInt getNum ScaledRefLayerOffsets() { return m_numScaledRefLayerOffsets; }226 Void setNumRefLayerLocationOffsets(Int x) { m_numRefLayerLocationOffsets = x; } 227 UInt getNumRefLayerLocationOffsets() { return m_numRefLayerLocationOffsets; } 228 228 #if O0098_SCALED_REF_LAYER_ID 229 Void set ScaledRefLayerId(Int x, UInt id) { m_scaledRefLayerId[x] = id; }230 UInt get ScaledRefLayerId(Int x) { return m_scaledRefLayerId[x]; }229 Void setRefLocationOffsetLayerId(Int x, UInt id) { m_refLocationOffsetLayerId[x] = id; } 230 UInt getRefLocationOffsetLayerId(Int x) { return m_refLocationOffsetLayerId[x]; } 231 231 Window& getScaledRefLayerWindowForLayer(Int layerId); 232 232 #endif
Note: See TracChangeset for help on using the changeset viewer.