Changeset 537 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder/TDecBinCoderCABAC.cpp
- Timestamp:
- 13 Jul 2013, 15:51:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder/TDecBinCoderCABAC.cpp
r521 r537 76 76 TDecBinCABAC::finish() 77 77 { 78 } 79 80 Void 81 TDecBinCABAC::flush() 82 { 83 while (m_pcTComBitstream->getNumBitsLeft() > 0 && m_pcTComBitstream->getNumBitsUntilByteAligned() != 0) 84 { 85 UInt uiBits; 86 m_pcTComBitstream->read ( 1, uiBits ); 87 } 88 start(); 78 UInt lastByte; 79 80 m_pcTComBitstream->peekPreviousByte( lastByte ); 81 // Check for proper stop/alignment pattern 82 assert( ((lastByte << (8 + m_bitsNeeded)) & 0xff) == 0x80 ); 89 83 } 90 84 … … 242 236 } 243 237 244 /** Reset BAC register values.245 * \returns Void246 */247 Void TDecBinCABAC::resetBac()248 {249 m_uiRange = 510;250 m_bitsNeeded = -8;251 m_uiValue = m_pcTComBitstream->read( 16 );252 }253 254 /** Decode PCM alignment zero bits.255 * \returns Void256 */257 Void TDecBinCABAC::decodePCMAlignBits()258 {259 Int iNum = m_pcTComBitstream->getNumBitsUntilByteAligned();260 261 UInt uiBit = 0;262 m_pcTComBitstream->read( iNum, uiBit );263 #if H_MV_ENC_DEC_TRAC264 DTRACE_CU("Number of pcm_alignment_zero_bit", iNum)265 #endif266 }267 268 238 /** Read a PCM code. 269 239 * \param uiLength code bit-depth
Note: See TracChangeset for help on using the changeset viewer.