Changeset 1147 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 7 Jul 2015, 23:55:42 (9 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1132 r1147 781 781 string* cfg_predLayerIdsPtr [MAX_LAYERS]; 782 782 #endif 783 #if O0098_SCALED_REF_LAYER_ID784 783 string cfg_refLocationOffsetLayerId [MAX_LAYERS]; 785 #endif786 784 string cfg_scaledRefLayerLeftOffset [MAX_LAYERS]; 787 785 string cfg_scaledRefLayerTopOffset [MAX_LAYERS]; … … 800 798 string cfg_phaseHorChroma [MAX_LAYERS]; 801 799 string cfg_phaseVerChroma [MAX_LAYERS]; 802 803 #if O0098_SCALED_REF_LAYER_ID804 800 string* cfg_refLocationOffsetLayerIdPtr [MAX_LAYERS]; 805 #endif806 801 string* cfg_scaledRefLayerLeftOffsetPtr [MAX_LAYERS]; 807 802 string* cfg_scaledRefLayerTopOffsetPtr [MAX_LAYERS]; … … 898 893 for(Int i = 0; i < MAX_LAYERS; i++) 899 894 { 900 #if O0098_SCALED_REF_LAYER_ID901 895 cfg_refLocationOffsetLayerIdPtr [layer] = &cfg_refLocationOffsetLayerId[layer]; 902 #endif903 896 cfg_scaledRefLayerLeftOffsetPtr [layer] = &cfg_scaledRefLayerLeftOffset[layer]; 904 897 cfg_scaledRefLayerTopOffsetPtr [layer] = &cfg_scaledRefLayerTopOffset[layer]; … … 1120 1113 #endif 1121 1114 ("NumRefLocationOffsets%d", cfg_numRefLayerLocationOffsets, 0, MAX_LAYERS, "Number of reference layer offset sets ") 1122 #if O0098_SCALED_REF_LAYER_ID1123 1115 ("RefLocationOffsetLayerId%d", cfg_refLocationOffsetLayerIdPtr, string(""), MAX_LAYERS, "Layer ID of reference location offset") 1124 #endif1125 1116 ("ScaledRefLayerLeftOffset%d", cfg_scaledRefLayerLeftOffsetPtr, string(""), MAX_LAYERS, "Horizontal offset of top-left luma sample of scaled base layer picture with respect to" 1126 1117 " top-left luma sample of the EL picture, in units of two luma samples") … … 1131 1122 ("ScaledRefLayerBottomOffset%d", cfg_scaledRefLayerBottomOffsetPtr, string(""), MAX_LAYERS, "Vertical offset of bottom-right luma sample of scaled base layer picture with respect to" 1132 1123 " bottom-right luma sample of the EL picture, in units of two luma samples") 1133 #if SVC_EXTENSION1134 1124 ("ScaledRefLayerOffsetPresentFlag%d", cfg_scaledRefLayerOffsetPresentFlagPtr, string(""), MAX_LAYERS, "presense flag of scaled reference layer offsets") 1135 1125 ("RefRegionOffsetPresentFlag%d", cfg_refRegionOffsetPresentFlagPtr, string(""), MAX_LAYERS, "presense flag of reference region offsets") … … 1147 1137 ("PhaseHorChroma%d", cfg_phaseHorChromaPtr, string(""), MAX_LAYERS, "chroma shift in the horizontal direction used in resampling proces") 1148 1138 ("PhaseVerChroma%d", cfg_phaseVerChromaPtr, string(""), MAX_LAYERS, "chroma shift in the vertical direction used in resampling proces") 1149 #endif1150 1139 #if Q0074_COLOUR_REMAPPING_SEI 1151 1140 ("SEIColourRemappingInfoFileRoot%d", cfg_colourRemapSEIFileRoot, string(""), MAX_LAYERS, "Colour Remapping Information SEI parameters file name for layer %d") … … 2096 2085 if(m_acLayerCfg[layer].m_numRefLayerLocationOffsets) 2097 2086 { 2098 #if O0098_SCALED_REF_LAYER_ID2099 2087 assert( strcmp(cfg_refLocationOffsetLayerId[layer].c_str(), "")); 2100 #endif 2088 2101 2089 Bool srloFlag = 2102 2090 strcmp(cfg_scaledRefLayerLeftOffset [layer].c_str(), "") || … … 2121 2109 Int *tempArray = NULL; // Contain the value 2122 2110 2123 #if O0098_SCALED_REF_LAYER_ID2124 2111 // ID // 2125 2112 if(strcmp(cfg_refLocationOffsetLayerId[layer].c_str(), "")) … … 2135 2122 } 2136 2123 } 2137 #endif2138 2124 2139 2125 // Presense Flag // -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r1090 r1147 65 65 m_aiPad[1] = m_aiPad[0] = 0; 66 66 m_numRefLayerLocationOffsets = 0; 67 #if O0098_SCALED_REF_LAYER_ID68 67 ::memset(m_refLocationOffsetLayerId, 0, sizeof(m_refLocationOffsetLayerId)); 69 #endif70 68 ::memset(m_scaledRefLayerLeftOffset, 0, sizeof(m_scaledRefLayerLeftOffset)); 71 69 ::memset(m_scaledRefLayerTopOffset, 0, sizeof(m_scaledRefLayerTopOffset)); -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r1131 r1147 94 94 TAppEncCfg* m_cAppEncCfg; ///< pointer to app encoder config 95 95 Int m_numRefLayerLocationOffsets; 96 #if O0098_SCALED_REF_LAYER_ID97 96 Int m_refLocationOffsetLayerId [MAX_LAYERS]; 98 #endif99 97 Int m_scaledRefLayerLeftOffset [MAX_LAYERS]; 100 98 Int m_scaledRefLayerTopOffset [MAX_LAYERS]; -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1146 r1147 766 766 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) 767 767 { 768 #if O0098_SCALED_REF_LAYER_ID769 768 m_acTEncTop[layer].setRefLocationOffsetLayerId (i, m_acLayerCfg[layer].m_refLocationOffsetLayerId[i]); 770 #endif771 769 m_acTEncTop[layer].setScaledRefLayerOffsetPresentFlag ( i, m_acLayerCfg[layer].m_scaledRefLayerOffsetPresentFlag[i] ); 772 770 m_acTEncTop[layer].getScaledRefLayerWindow(i).setWindow ( subWidthC * m_acLayerCfg[layer].m_scaledRefLayerLeftOffset[i], subWidthC * m_acLayerCfg[layer].m_scaledRefLayerRightOffset[i],
Note: See TracChangeset for help on using the changeset viewer.