Changeset 1412 in 3DVCSoftware for branches/HTM-16.2-dev/source/Lib/TLibDecoder/SyntaxElementParser.h
- Timestamp:
- 12 Apr 2018, 11:12:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.2-dev/source/Lib/TLibDecoder/SyntaxElementParser.h
r1405 r1412 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 6, ITU/ISO/IEC6 * Copyright (c) 2010-2017, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 43 43 #endif // _MSC_VER > 1000 44 44 #include "TLibCommon/TComRom.h" 45 #i f ENC_DEC_TRACE45 #include "TDecConformance.h" 46 46 47 #define READ_CODE(length, code, name) xReadCodeTr ( length, code, name ) 48 #define READ_UVLC( code, name) xReadUvlcTr ( code, name ) 49 #define READ_SVLC( code, name) xReadSvlcTr ( code, name ) 50 #define READ_FLAG( code, name) xReadFlagTr ( code, name ) 51 #if NH_MV 52 #define READ_STRING(bufSize, code, length, name) xReadStringTr ( bufSize, code, length, name ) 47 #if DECODER_PARTIAL_CONFORMANCE_CHECK!=0 48 #define READ_CODE_CHK(length, code, name, minValIncl, maxValIncl) xReadCodeChk ( length, code, name, minValIncl, maxValIncl ) 49 #define READ_UVLC_CHK( code, name, minValIncl, maxValIncl) xReadUvlcChk ( code, name, minValIncl, maxValIncl ) 50 #define READ_SVLC_CHK( code, name, minValIncl, maxValIncl) xReadSvlcChk ( code, name, minValIncl, maxValIncl ) 51 #define READ_FLAG_CHK( code, name, minValIncl, maxValIncl) xReadFlagChk ( code, name, minValIncl, maxValIncl ) 52 #elif RExt__DECODER_DEBUG_BIT_STATISTICS || ENC_DEC_TRACE 53 #define READ_CODE_CHK(length, code, name, minValIncl, maxValIncl) xReadCode ( length, code, name ) 54 #define READ_UVLC_CHK( code, name, minValIncl, maxValIncl) xReadUvlc ( code, name ) 55 #define READ_SVLC_CHK( code, name, minValIncl, maxValIncl) xReadSvlc ( code, name ) 56 #define READ_FLAG_CHK( code, name, minValIncl, maxValIncl) xReadFlag ( code, name ) 57 #else 58 #define READ_CODE_CHK(length, code, name, minValIncl, maxValIncl) xReadCode ( length, code ) 59 #define READ_UVLC_CHK( code, name, minValIncl, maxValIncl) xReadUvlc ( code ) 60 #define READ_SVLC_CHK( code, name, minValIncl, maxValIncl) xReadSvlc ( code ) 61 #define READ_FLAG_CHK( code, name, minValIncl, maxValIncl) xReadFlag ( code ) 53 62 #endif 54 #else 55 56 #if RExt__DECODER_DEBUG_BIT_STATISTICS 57 63 #if RExt__DECODER_DEBUG_BIT_STATISTICS || ENC_DEC_TRACE 58 64 #define READ_CODE(length, code, name) xReadCode ( length, code, name ) 59 65 #define READ_UVLC( code, name) xReadUvlc ( code, name ) … … 64 70 #endif 65 71 #else 66 67 72 #define READ_CODE(length, code, name) xReadCode ( length, code ) 68 73 #define READ_UVLC( code, name) xReadUvlc ( code ) … … 71 76 #if NH_MV 72 77 #define READ_STRING(bufSize, code, length, name) xReadString ( bufSize, code, length ) 73 #endif74 75 78 #endif 76 79 … … 94 97 virtual ~SyntaxElementParser() {}; 95 98 96 #if RExt__DECODER_DEBUG_BIT_STATISTICS 99 #if DECODER_PARTIAL_CONFORMANCE_CHECK!=0 100 Void xReadCodeChk ( UInt length, UInt& val, const TChar *pSymbolName, const UInt minValIncl, const UInt maxValIncl ); 101 Void xReadUvlcChk ( UInt& val, const TChar *pSymbolName, const UInt minValIncl, const UInt maxValIncl ); 102 Void xReadSvlcChk ( Int& val, const TChar *pSymbolName, const Int minValIncl, const Int maxValIncl ); 103 Void xReadFlagChk ( UInt& val, const TChar *pSymbolName, const UInt minValIncl, const UInt maxValIncl ); 104 #endif 105 106 107 #if RExt__DECODER_DEBUG_BIT_STATISTICS || ENC_DEC_TRACE 97 108 Void xReadCode ( UInt length, UInt& val, const TChar *pSymbolName ); 98 109 Void xReadUvlc ( UInt& val, const TChar *pSymbolName ); … … 109 120 #if NH_MV 110 121 Void xReadString ( UInt bufSize, UChar *val, UInt& length); 111 #endif112 #endif113 #if ENC_DEC_TRACE114 Void xReadCodeTr (UInt length, UInt& rValue, const TChar *pSymbolName);115 Void xReadUvlcTr ( UInt& rValue, const TChar *pSymbolName);116 Void xReadSvlcTr ( Int& rValue, const TChar *pSymbolName);117 Void xReadFlagTr ( UInt& rValue, const TChar *pSymbolName);118 #if NH_MV119 122 Void xReadStringTr(UInt bufSize, UChar *pValue, UInt& rLength, const TChar *pSymbolName); 120 123 #endif
Note: See TracChangeset for help on using the changeset viewer.