Changeset 294 in 3DVCSoftware for branches/HTM-5.1-dev0/source/Lib/TLibDecoder/TDecBinCoderCABAC.cpp
- Timestamp:
- 19 Feb 2013, 20:33:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev0/source/Lib/TLibDecoder/TDecBinCoderCABAC.cpp
r56 r294 65 65 TDecBinCABAC::start() 66 66 { 67 #if !OL_FLUSH ||OL_FLUSH_ALIGN67 #if OL_FLUSH_ALIGN 68 68 assert( m_pcTComBitstream->getNumBitsUntilByteAligned() == 0 ); 69 69 #endif … … 72 72 m_bitsNeeded = -8; 73 73 m_uiValue = m_pcTComBitstream->readByte() << 8; 74 #if OL_FLUSH &&!OL_FLUSH_ALIGN74 #if !OL_FLUSH_ALIGN 75 75 m_uiLastByte = m_pcTComBitstream->readByte(); 76 76 m_uiValue |= m_uiLastByte; … … 85 85 } 86 86 87 #if OL_FLUSH88 87 Void 89 88 TDecBinCABAC::flush() … … 108 107 #endif // OL_FLUSH_ALIGN 109 108 } 110 #endif // OL_FLUSH111 109 112 110 /** … … 122 120 m_uiValue = pcTDecBinCABAC->m_uiValue; 123 121 m_bitsNeeded= pcTDecBinCABAC->m_bitsNeeded; 124 #if OL_FLUSH &&!OL_FLUSH_ALIGN122 #if !OL_FLUSH_ALIGN 125 123 m_uiLastByte= pcTDecBinCABAC->m_uiLastByte; 126 124 #endif … … 152 150 { 153 151 m_bitsNeeded = -8; 154 #if OL_FLUSH &&!OL_FLUSH_ALIGN152 #if !OL_FLUSH_ALIGN 155 153 m_uiLastByte = m_pcTComBitstream->readByte(); 156 154 m_uiValue += m_uiLastByte; … … 173 171 if ( m_bitsNeeded >= 0 ) 174 172 { 175 #if OL_FLUSH &&!OL_FLUSH_ALIGN173 #if !OL_FLUSH_ALIGN 176 174 m_uiLastByte = m_pcTComBitstream->readByte(); 177 175 m_uiValue += m_uiLastByte << m_bitsNeeded; … … 192 190 { 193 191 m_bitsNeeded = -8; 194 #if OL_FLUSH &&!OL_FLUSH_ALIGN192 #if !OL_FLUSH_ALIGN 195 193 m_uiLastByte = m_pcTComBitstream->readByte(); 196 194 m_uiValue += m_uiLastByte; … … 215 213 while ( numBins > 8 ) 216 214 { 217 #if OL_FLUSH &&!OL_FLUSH_ALIGN215 #if !OL_FLUSH_ALIGN 218 216 m_uiLastByte = m_pcTComBitstream->readByte(); 219 217 m_uiValue = ( m_uiValue << 8 ) + ( m_uiLastByte << ( 8 + m_bitsNeeded ) ); … … 241 239 if ( m_bitsNeeded >= 0 ) 242 240 { 243 #if OL_FLUSH &&!OL_FLUSH_ALIGN241 #if !OL_FLUSH_ALIGN 244 242 m_uiLastByte = m_pcTComBitstream->readByte(); 245 243 m_uiValue += m_uiLastByte << m_bitsNeeded; … … 285 283 { 286 284 m_bitsNeeded = -8; 287 #if OL_FLUSH &&!OL_FLUSH_ALIGN285 #if !OL_FLUSH_ALIGN 288 286 m_uiLastByte = m_pcTComBitstream->readByte(); 289 287 m_uiValue += m_uiLastByte; … … 306 304 } 307 305 308 #if BURST_IPCM309 306 /** Decode subsequent_pcm_num. 310 307 * \param numSubseqIPCM … … 323 320 { 324 321 m_bitsNeeded = -8; 325 #if OL_FLUSH &&!OL_FLUSH_ALIGN322 #if !OL_FLUSH_ALIGN 326 323 m_uiLastByte = m_pcTComBitstream->readByte(); 327 324 m_uiValue += m_uiLastByte; … … 342 339 numSubseqIPCM --; 343 340 } 344 #endif345 341 346 342 /** Decode PCM alignment zero bits.
Note: See TracChangeset for help on using the changeset viewer.