Changeset 1386 in 3DVCSoftware for trunk/source/Lib/TLibCommon/Debug.h
- Timestamp:
- 13 Nov 2015, 16:29:39 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/Debug.h
r1313 r1386 47 47 #include <TLibCommon/CommonDef.h> 48 48 #if DEBUG_STRING 49 extern const Char *debug_reorder_data_inter_token[MAX_NUM_COMPONENT+1];50 extern const Char *partSizeToString[NUMBER_OF_PART_SIZES];49 extern const TChar *debug_reorder_data_inter_token[MAX_NUM_COMPONENT+1]; 50 extern const TChar *partSizeToString[NUMBER_OF_PART_SIZES]; 51 51 #endif 52 52 … … 149 149 UInt getZScanIndex(const UInt x, const UInt y); 150 150 151 //template specialisation for Char types to get it to render as a number151 //template specialisation for SChar/UChar types to get it to render as a number 152 152 template <typename ValueType> inline Void writeValueToStream (const ValueType &value, std::ostream &stream, const UInt outputWidth) { stream << std::setw(outputWidth) << value; } 153 template <> inline Void writeValueToStream< Char >(const Char&value, std::ostream &stream, const UInt outputWidth) { stream << std::setw(outputWidth) << Int(value); }153 template <> inline Void writeValueToStream<SChar>(const SChar &value, std::ostream &stream, const UInt outputWidth) { stream << std::setw(outputWidth) << Int(value); } 154 154 template <> inline Void writeValueToStream<UChar>(const UChar &value, std::ostream &stream, const UInt outputWidth) { stream << std::setw(outputWidth) << UInt(value); } 155 155 … … 231 231 232 232 template <typename T> 233 Void printBlockToStream( std::ostream &ss, const Char *pLinePrefix, const T * blkSrc, const UInt width, const UInt height, const UInt stride, const UInt subBlockWidth=0, const UInt subBlockHeight=0, const UInt defWidth=3 )233 Void printBlockToStream( std::ostream &ss, const TChar *pLinePrefix, const T * blkSrc, const UInt width, const UInt height, const UInt stride, const UInt subBlockWidth=0, const UInt subBlockHeight=0, const UInt defWidth=3 ) 234 234 { 235 235 for (UInt y=0; y<height; y++) … … 255 255 256 256 class TComYuv; 257 Void printBlockToStream( std::ostream &ss, const Char *pLinePrefix, TComYuv &src, const UInt numSubBlocksAcross=1, const UInt numSubBlocksUp=1, const UInt defWidth=3 );257 Void printBlockToStream( std::ostream &ss, const TChar *pLinePrefix, TComYuv &src, const UInt numSubBlocksAcross=1, const UInt numSubBlocksUp=1, const UInt defWidth=3 ); 258 258 259 259 // ---------------------------------------------------------------------------------------------- //
Note: See TracChangeset for help on using the changeset viewer.