Changeset 823 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
- Timestamp:
- 9 Jul 2014, 03:42:42 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r820 r823 50 50 #endif 51 51 { 52 m_conf Left = m_confRight = m_confTop = m_confBottom = 0;52 m_confWinLeft = m_confWinRight = m_confWinTop = m_confWinBottom = 0; 53 53 m_aiPad[1] = m_aiPad[0] = 0; 54 54 m_numScaledRefLayerOffsets = 0; … … 114 114 ("ChromaFormatIDC", tmpChromaFormat, 420, "ChromaFormatIDC (400|420|422|444 or set 0 (default) for same as InputChromaFormat)") 115 115 #endif 116 ("CropLeft", m_confLeft, 0, "Left cropping/padding for cropping mode 3") 117 ("CropRight", m_confRight, 0, "Right cropping/padding for cropping mode 3") 118 ("CropTop", m_confTop, 0, "Top cropping/padding for cropping mode 3") 119 ("CropBottom", m_confBottom, 0, "Bottom cropping/padding for cropping mode 3") 116 ("ConfLeft", m_confWinLeft, 0, "Deprecated alias of ConfWinLeft") 117 ("ConfRight", m_confWinRight, 0, "Deprecated alias of ConfWinRight") 118 ("ConfTop", m_confWinTop, 0, "Deprecated alias of ConfWinTop") 119 ("ConfBottom", m_confWinBottom, 0, "Deprecated alias of ConfWinBottom") 120 ("ConfWinLeft", m_confWinLeft, 0, "Left offset for window conformance mode 3") 121 ("ConfWinRight", m_confWinRight, 0, "Right offset for window conformance mode 3") 122 ("ConfWinTop", m_confWinTop, 0, "Top offset for window conformance mode 3") 123 ("ConfWinBottom", m_confWinBottom, 0, "Bottom offset for window conformance mode 3") 120 124 ("HorizontalPadding,-pdx",m_aiPad[0], 0, "horizontal source padding for cropping mode 2") 121 125 ("VerticalPadding,-pdy", m_aiPad[1], 0, "vertical source padding for cropping mode 2") … … 162 166 printf("Reconstruction File : %s\n", m_cReconFile.c_str() ); 163 167 #if REPN_FORMAT_IN_VPS 164 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - ( m_conf Left + m_confRight ) * TComSPS::getWinUnitX( m_chromaFormatIDC ), m_iSourceHeight - ( m_confTop + m_confBottom ) * TComSPS::getWinUnitY( m_chromaFormatIDC ), m_iFrameRate );168 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - ( m_confWinLeft + m_confWinRight ) * TComSPS::getWinUnitX( m_chromaFormatIDC ), m_iSourceHeight - ( m_confWinTop + m_confWinBottom ) * TComSPS::getWinUnitY( m_chromaFormatIDC ), m_iFrameRate ); 165 169 #else 166 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - m_conf Left - m_confRight, m_iSourceHeight - m_confTop - m_confBottom, m_iFrameRate );170 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - m_confWinLeft - m_confWinRight, m_iSourceHeight - m_confWinTop - m_confWinBottom, m_iFrameRate ); 167 171 #endif 168 172 printf("Internal Format : %dx%d %dHz\n", m_iSourceWidth, m_iSourceHeight, m_iFrameRate ); … … 207 211 { 208 212 // no cropping or padding 209 m_conf Left = m_confRight = m_confTop = m_confBottom = 0;213 m_confWinLeft = m_confWinRight = m_confWinTop = m_confWinBottom = 0; 210 214 m_aiPad[1] = m_aiPad[0] = 0; 211 215 break; … … 221 225 if (m_iSourceWidth % minCuSize) 222 226 { 223 m_aiPad[0] = m_conf Right = ((m_iSourceWidth / minCuSize) + 1) * minCuSize - m_iSourceWidth;224 m_iSourceWidth += m_conf Right;225 #if REPN_FORMAT_IN_VPS 226 m_conf Right /= TComSPS::getWinUnitX( m_chromaFormatIDC );227 m_aiPad[0] = m_confWinRight = ((m_iSourceWidth / minCuSize) + 1) * minCuSize - m_iSourceWidth; 228 m_iSourceWidth += m_confWinRight; 229 #if REPN_FORMAT_IN_VPS 230 m_confWinRight /= TComSPS::getWinUnitX( m_chromaFormatIDC ); 227 231 #endif 228 232 } 229 233 if (m_iSourceHeight % minCuSize) 230 234 { 231 m_aiPad[1] = m_conf Bottom = ((m_iSourceHeight / minCuSize) + 1) * minCuSize - m_iSourceHeight;232 m_iSourceHeight += m_conf Bottom;235 m_aiPad[1] = m_confWinBottom = ((m_iSourceHeight / minCuSize) + 1) * minCuSize - m_iSourceHeight; 236 m_iSourceHeight += m_confWinBottom; 233 237 if ( isField ) 234 238 { 235 m_iSourceHeightOrg += m_conf Bottom << 1;236 m_aiPad[1] = m_conf Bottom << 1;239 m_iSourceHeightOrg += m_confWinBottom << 1; 240 m_aiPad[1] = m_confWinBottom << 1; 237 241 } 238 242 #if REPN_FORMAT_IN_VPS 239 m_conf Bottom /= TComSPS::getWinUnitY( m_chromaFormatIDC );243 m_confWinBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC ); 240 244 #endif 241 245 } … … 247 251 m_iSourceWidth += m_aiPad[0]; 248 252 m_iSourceHeight += m_aiPad[1]; 249 m_conf Right = m_aiPad[0];250 m_conf Bottom = m_aiPad[1];251 #if REPN_FORMAT_IN_VPS 252 m_conf Right /= TComSPS::getWinUnitX( m_chromaFormatIDC );253 m_conf Bottom /= TComSPS::getWinUnitY( m_chromaFormatIDC );253 m_confWinRight = m_aiPad[0]; 254 m_confWinBottom = m_aiPad[1]; 255 #if REPN_FORMAT_IN_VPS 256 m_confWinRight /= TComSPS::getWinUnitX( m_chromaFormatIDC ); 257 m_confWinBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC ); 254 258 #endif 255 259 break; … … 258 262 { 259 263 // conformance 260 if ((m_conf Left == 0) && (m_confRight == 0) && (m_confTop == 0) && (m_confBottom == 0))264 if ((m_confWinLeft == 0) && (m_confWinRight == 0) && (m_confWinTop == 0) && (m_confWinBottom == 0)) 261 265 { 262 266 fprintf(stderr, "Warning: Cropping enabled, but all cropping parameters set to zero\n");
Note: See TracChangeset for help on using the changeset viewer.