Ticket #800: wpp1-removeredundanttests.patch

File wpp1-removeredundanttests.patch, 2.7 KB (added by gordon, 12 years ago)
  • source/Lib/TLibDecoder/TDecSlice.cpp

     
    371371#if ENC_DEC_TRACE
    372372    g_bJustDoIt = g_bEncDecTraceDisable;
    373373#endif
    374     /*If at the end of a LCU line but not at the end of a substream, perform CABAC flush*/
    375     if (!uiIsLast && pcSlice->getPPS()->getNumSubstreams() > 1)
    376     {
    377       if ((uiCol == uiTileLCUX+uiTileWidth-1) && (uiLin+iNumSubstreamsPerTile < uiTileLCUY+uiTileHeight))
    378       {
    379         m_pcEntropyDecoder->decodeFlush();
    380       }
    381     }
    382374    pcSbacDecoders[uiSubStrm].load(pcSbacDecoder);
    383375
    384376    //Store probabilities of second LCU in line into buffer
  • source/Lib/TLibEncoder/TEncCu.cpp

     
    263263
    264264  // Encode CU data
    265265  xEncodeCU( pcCU, 0, 0 );
    266  
    267   bool bTerminateSlice = bForceTerminate;
    268   UInt uiCUAddr = pcCU->getAddr();
    269     /* If at the end of an LCU line but not at the end of a substream, perform CABAC flush */
    270     if (!bTerminateSlice && pcCU->getSlice()->getPPS()->getNumSubstreams() > 1)
    271     {
    272       Int iNumSubstreams = pcCU->getSlice()->getPPS()->getNumSubstreams();
    273       UInt uiWidthInLCUs = pcCU->getPic()->getPicSym()->getFrameWidthInCU();
    274       UInt uiCol     = uiCUAddr % uiWidthInLCUs;
    275       UInt uiLin     = uiCUAddr / uiWidthInLCUs;
    276       UInt uiTileStartLCU = pcCU->getPic()->getPicSym()->getTComTile(pcCU->getPic()->getPicSym()->getTileIdxMap(uiCUAddr))->getFirstCUAddr();
    277       UInt uiTileLCUX = uiTileStartLCU % uiWidthInLCUs;
    278       UInt uiTileLCUY = uiTileStartLCU / uiWidthInLCUs;
    279       UInt uiTileWidth = pcCU->getPic()->getPicSym()->getTComTile(pcCU->getPic()->getPicSym()->getTileIdxMap(uiCUAddr))->getTileWidth();
    280       UInt uiTileHeight = pcCU->getPic()->getPicSym()->getTComTile(pcCU->getPic()->getPicSym()->getTileIdxMap(uiCUAddr))->getTileHeight();
    281       Int iNumSubstreamsPerTile = iNumSubstreams;
    282       if (pcCU->getSlice()->getPPS()->getNumSubstreams() > 1)
    283       {
    284         iNumSubstreamsPerTile /= pcCU->getPic()->getPicSym()->getNumTiles();
    285       }
    286       if ((uiCol == uiTileLCUX+uiTileWidth-1) && (uiLin+iNumSubstreamsPerTile < uiTileLCUY+uiTileHeight))
    287       {
    288         m_pcEntropyCoder->encodeFlush();
    289       }
    290     }
    291266}
    292267
    293268// ====================================================================================================================