Changeset 1353 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
22 Jul 2015, 03:47:00 (10 years ago)
Author:
seregin
Message:

port rev 4431

Location:
branches/SHM-dev/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/NALread.cpp

    r1319 r1353  
    4848#include "TLibCommon/TComCodingStatistics.h"
    4949#endif
     50#if ENC_DEC_TRACE && DEC_NUH_TRACE
     51#include "TLibCommon/TComRom.h"
     52#endif
    5053
    5154using namespace std;
     
    102105  nalUnitBuf.resize(it_write - nalUnitBuf.begin());
    103106}
     107
     108#if ENC_DEC_TRACE && DEC_NUH_TRACE
     109void xTraceNalUnitHeader(InputNALUnit& nalu)
     110{
     111  fprintf( g_hTrace, "*********** NAL UNIT (%s) ***********\n", nalUnitTypeToString(nalu.m_nalUnitType) );
     112
     113  fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter++ );
     114  fprintf( g_hTrace, "%-50s u(%d)  : %u\n", "forbidden_zero_bit", 1, 0 );
     115
     116  fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter++ );
     117  fprintf( g_hTrace, "%-50s u(%d)  : %u\n", "nal_unit_type", 6, nalu.m_nalUnitType );
     118
     119  fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter++ );
     120  fprintf( g_hTrace, "%-50s u(%d)  : %u\n", "nuh_layer_id", 6, nalu.m_nuhLayerId );
     121
     122  fprintf( g_hTrace, "%8lld  ", g_nSymbolCounter++ );
     123  fprintf( g_hTrace, "%-50s u(%d)  : %u\n", "nuh_temporal_id_plus1", 3, nalu.m_temporalId + 1 );
     124
     125  fflush ( g_hTrace );
     126}
     127#endif
    104128
    105129Void readNalUnitHeader(InputNALUnit& nalu)
     
    114138#if RExt__DECODER_DEBUG_BIT_STATISTICS
    115139  TComCodingStatistics::IncrementStatisticEP(STATS__NAL_UNIT_HEADER_BITS, 1+6+6+3, 0);
     140#endif
     141
     142#if ENC_DEC_TRACE && DEC_NUH_TRACE
     143  xTraceNalUnitHeader(nalu);
    116144#endif
    117145
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecGop.cpp

    r1319 r1353  
    193193                                                    pcSlice->getTLayer(),
    194194                                                    c,
    195                                                     NaluToStr( pcSlice->getNalUnitType() ).data(),
     195                                                    nalUnitTypeToString( pcSlice->getNalUnitType() ),
    196196                                                    pcSlice->getSliceQp() );
    197197#else
Note: See TracChangeset for help on using the changeset viewer.