Ignore:
Timestamp:
26 Jun 2013, 23:47:59 (12 years ago)
Author:
tech
Message:

Further fixes and new nonctc cfg files.

Location:
branches/HTM-DEV-0.3-dev0/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r495 r498  
    912912    for( Int sIdx = 0; sIdx < pcVPS->getNumScalabilityTypes( ) - ( pcVPS->getSplittingFlag() ? 1 : 0 ); sIdx++ )
    913913    {
    914         READ_CODE( 3, uiCode, "dimension_id_len_minus1[j]" );       pcVPS->setDimensionIdLen( sIdx, uiCode + 1 );
    915     }
    916        
     914        READ_CODE( 3, uiCode, "dimension_id_len_minus1[j]" );       pcVPS->setDimensionIdLen( sIdx, uiCode + 1 );       
     915    }
     916     
     917    if ( pcVPS->getSplittingFlag() )
     918    {
     919      pcVPS->setDimensionIdLen( pcVPS->getNumScalabilityTypes( ) - 1, pcVPS->inferLastDimsionIdLen() );       
     920    }   
     921
    917922    READ_FLAG( uiCode, "vps_nuh_layer_id_present_flag" );           pcVPS->setVpsNuhLayerIdPresentFlag( uiCode == 1 ? true : false );
    918923
    919924    for( Int i = 0; i <= pcVPS->getMaxLayers() - 1; i++ )
    920925    {
    921        
    922926      if ( pcVPS->getVpsNuhLayerIdPresentFlag() && ( i > 0 ) )
    923927      {
     
    928932        pcVPS->setLayerIdInNuh( i, i );;
    929933      }
    930      
     934
    931935      pcVPS->setLayerIdInVps( pcVPS->getLayerIdInNuh( i ), i );
    932936
    933       if ( !pcVPS->getSplittingFlag() )
    934       {   
    935         for( Int j = 0; j < pcVPS->getNumScalabilityTypes() ; j++ )
    936         {
     937      for( Int j = 0; j < pcVPS->getNumScalabilityTypes() ; j++ )
     938      {
     939        if ( !pcVPS->getSplittingFlag() )
     940        {   
    937941          READ_CODE( pcVPS->getDimensionIdLen( j ), uiCode, "dimension_id[i][j]" );  pcVPS->setDimensionId( i, j, uiCode );
    938942        }
    939       }
    940     }
     943        else
     944        {
     945          pcVPS->setDimensionId( i, j, pcVPS->inferDimensionId( i, j)  );
     946        }
     947      }
     948    }
     949   
    941950
    942951    for( Int i = 1; i <= pcVPS->getMaxLayers() - 1; i++ )
     
    979988    {
    980989      READ_CODE( 10, uiCode, "num_add_output_layer_sets_minus1"      ); pcVPS->setNumAddOutputLayerSetsMinus1( uiCode );
    981       numOutputLayerSets += pcVPS->getNumAddOutputLayerSetsMinus1( );
     990      numOutputLayerSets += ( pcVPS->getNumAddOutputLayerSetsMinus1( ) + 1);
    982991    }
    983992
  • branches/HTM-DEV-0.3-dev0/source/Lib/TLibDecoder/TDecSlice.cpp

    r324 r498  
    123123  DTRACE_CABAC_T( "\tPOC: " );
    124124  DTRACE_CABAC_V( rpcPic->getPOC() );
     125#if H_MV
     126  DTRACE_CABAC_T( "\tLayer: " );
     127  DTRACE_CABAC_V( rpcPic->getLayerId()  );
     128#endif
     129
    125130  DTRACE_CABAC_T( "\n" );
    126131
Note: See TracChangeset for help on using the changeset viewer.