Changeset 1442 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
13 Aug 2015, 19:11:53 (10 years ago)
Author:
seregin
Message:

port rev 4590

Location:
branches/SHM-dev/source/Lib/TLibCommon
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/Debug.cpp

    r1398 r1442  
    4949#if DEBUG_STRING
    5050// these strings are used to reorder the debug output so that the encoder and decoder match.
    51 const Char *debug_reorder_data_inter_token[MAX_NUM_COMPONENT+1]
     51const TChar *debug_reorder_data_inter_token[MAX_NUM_COMPONENT+1]
    5252 = {"Start of channel 0 inter debug\n", "Start of channel 1 inter debug\n", "Start of channel 2 inter debug\n", "End of inter residual debug\n"} ;
    53 const Char *partSizeToString[NUMBER_OF_PART_SIZES]={"2Nx2N(0)", "2NxN(1)", "Nx2N(2)", "NxN(3)", "2Nx(N/2+3N/2)(4)", "2Nx(3N/2+N/2)(5)", "(N/2+3N/2)x2N(6)", "(3N/2+N/2)x2N(7)"};
     53const TChar *partSizeToString[NUMBER_OF_PART_SIZES]={"2Nx2N(0)", "2NxN(1)", "Nx2N(2)", "NxN(3)", "2Nx(N/2+3N/2)(4)", "2Nx(3N/2+N/2)(5)", "(N/2+3N/2)x2N(6)", "(3N/2+N/2)x2N(7)"};
    5454#endif
    5555
     
    421421
    422422
    423 Void printBlockToStream( std::ostream &ss, const Char *pLinePrefix, TComYuv &src, const UInt numSubBlocksAcross, const UInt numSubBlocksUp, const UInt defWidth )
     423Void printBlockToStream( std::ostream &ss, const TChar *pLinePrefix, TComYuv &src, const UInt numSubBlocksAcross, const UInt numSubBlocksUp, const UInt defWidth )
    424424{
    425425  const UInt numValidComp=src.getNumberValidComponents();
  • branches/SHM-dev/source/Lib/TLibCommon/Debug.h

    r1335 r1442  
    4848
    4949#if DEBUG_STRING
    50 extern const Char *debug_reorder_data_inter_token[MAX_NUM_COMPONENT+1];
    51 extern const Char *partSizeToString[NUMBER_OF_PART_SIZES];
     50extern const TChar *debug_reorder_data_inter_token[MAX_NUM_COMPONENT+1];
     51extern const TChar *partSizeToString[NUMBER_OF_PART_SIZES];
    5252#endif
    5353
     
    150150UInt getZScanIndex(const UInt x, const UInt y);
    151151
    152 //template specialisation for Char types to get it to render as a number
     152//template specialisation for SChar/UChar types to get it to render as a number
    153153template <typename ValueType> inline Void writeValueToStream       (const ValueType &value, std::ostream &stream, const UInt outputWidth) { stream << std::setw(outputWidth) <<      value;  }
    154 template <>                   inline Void writeValueToStream<Char >(const Char      &value, std::ostream &stream, const UInt outputWidth) { stream << std::setw(outputWidth) <<  Int(value); }
     154template <>                   inline Void writeValueToStream<SChar>(const SChar     &value, std::ostream &stream, const UInt outputWidth) { stream << std::setw(outputWidth) <<  Int(value); }
    155155template <>                   inline Void writeValueToStream<UChar>(const UChar     &value, std::ostream &stream, const UInt outputWidth) { stream << std::setw(outputWidth) << UInt(value); }
    156156
     
    232232
    233233template <typename T>
    234 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 )
     234Void 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 )
    235235{
    236236  for (UInt y=0; y<height; y++)
     
    256256
    257257class TComYuv;
    258 Void printBlockToStream( std::ostream &ss, const Char *pLinePrefix, TComYuv &src, const UInt numSubBlocksAcross=1, const UInt numSubBlocksUp=1, const UInt defWidth=3 );
     258Void printBlockToStream( std::ostream &ss, const TChar *pLinePrefix, TComYuv &src, const UInt numSubBlocksAcross=1, const UInt numSubBlocksUp=1, const UInt defWidth=3 );
    259259
    260260// ---------------------------------------------------------------------------------------------- //
  • branches/SHM-dev/source/Lib/TLibCommon/SEI.cpp

    r1434 r1442  
    115115
    116116// Static member
    117 const Char *SEI::getSEIMessageString(SEI::PayloadType payloadType)
     117const TChar *SEI::getSEIMessageString(SEI::PayloadType payloadType)
    118118{
    119119  switch (payloadType)
  • branches/SHM-dev/source/Lib/TLibCommon/SEI.h

    r1434 r1442  
    124124  virtual ~SEI() {}
    125125
    126   static const Char *getSEIMessageString(SEI::PayloadType payloadType);
     126  static const TChar *getSEIMessageString(SEI::PayloadType payloadType);
    127127
    128128  virtual PayloadType payloadType() const = 0;
  • branches/SHM-dev/source/Lib/TLibCommon/TComBitStream.cpp

    r1347 r1442  
    9191}
    9292
    93 Char* TComOutputBitstream::getByteStream() const
    94 {
    95   return (Char*) &m_fifo.front();
     93UChar* TComOutputBitstream::getByteStream() const
     94{
     95  return (UChar*) &m_fifo.front();
    9696}
    9797
  • branches/SHM-dev/source/Lib/TLibCommon/TComBitStream.h

    r1352 r1442  
    115115   * bytestream are stored in ascending addresses.
    116116   */
    117   Char* getByteStream() const;
     117  UChar* getByteStream() const;
    118118
    119119  /**
  • branches/SHM-dev/source/Lib/TLibCommon/TComCodingStatistics.h

    r1335 r1442  
    9595};
    9696
    97 static inline const Char* getName(TComCodingStatisticsType name)
     97static inline const TChar* getName(TComCodingStatisticsType name)
    9898{
    99   static const Char *statNames[]=
     99  static const TChar *statNames[]=
    100100  {
    101101    "NAL_UNIT_TOTAL_BODY", // This is a special case and is not included in the total sums.
     
    143143    "CABAC_BITS__ALIGNED_ESCAPE_BITS"
    144144  };
    145   assert(STATS__NUM_STATS == sizeof(statNames)/sizeof(Char *) && name < STATS__NUM_STATS);
     145  assert(STATS__NUM_STATS == sizeof(statNames)/sizeof(TChar *) && name < STATS__NUM_STATS);
    146146  return statNames[name];
    147147}
     
    183183  }
    184184
    185   static const Char *GetSubClassString(const UInt subClass)
     185  static const TChar *GetSubClassString(const UInt subClass)
    186186  {
    187187    assert (subClass<CODING_STATS_NUM_SUBCLASSES);
    188     static const Char *strings[1+MAX_NUM_COMPONENT+MAX_NUM_CHANNEL_TYPE]={"-", "Y", "Cb", "Cr", "Luma", "Chroma"};
     188    static const TChar *strings[1+MAX_NUM_COMPONENT+MAX_NUM_CHANNEL_TYPE]={"-", "Y", "Cb", "Cr", "Luma", "Chroma"};
    189189    return strings[subClass/CODING_STATS_NUM_WIDTHS];
    190190  }
     
    243243    { }
    244244
    245     static Void OutputLine(const Char *pName, const Char sep, UInt width, const Char *pSubClassStr, const SStat &sCABAC, const SStat &sEP)
     245    static Void OutputLine(const TChar *pName, const TChar sep, UInt width, const TChar *pSubClassStr, const SStat &sCABAC, const SStat &sEP)
    246246    {
    247247      if (width==0)
     
    256256      }
    257257    }
    258     static Void OutputLine(const Char *pName, const Char sep, const Char *pWidthString, const Char *pSubClassStr, const SStat &sCABAC, const SStat &sEP)
     258    static Void OutputLine(const TChar *pName, const TChar sep, const TChar *pWidthString, const TChar *pSubClassStr, const SStat &sCABAC, const SStat &sEP)
    259259    {
    260260      printf("%c%-45s%c  %6s %6s %12lld %12lld %12lld %12lld %12lld %12lld %12lld (%12lld)%c\n",
     
    262262              sCABAC.count, sCABAC.sum, sCABAC.bits, sEP.count, sEP.sum, sEP.bits, sCABAC.bits+sEP.bits, (sCABAC.bits+sEP.bits)/8, sep=='~'?']':' ');
    263263    }
    264     static Void OutputLine(const Char *pName, const Char sep, const Char *pWidthString, const Char *pSubClassStr,  const SStat &sEP)
     264    static Void OutputLine(const TChar *pName, const TChar sep, const TChar *pWidthString, const TChar *pSubClassStr,  const SStat &sEP)
    265265    {
    266266      printf("%c%-45s%c  %6s %6s %12s %12s %12s %12lld %12lld %12lld %12lld (%12lld)%c\n",
     
    269269    }
    270270
    271     static Void OutputDashedLine(const Char *pText)
     271    static Void OutputDashedLine(const TChar *pText)
    272272    {
    273273      printf("--%s",pText);
     
    314314        SStat cabacSubTotal, epSubTotal;
    315315        Bool bHadClassifiedEntry=false;
    316         const Char *pName=getName(TComCodingStatisticsType(i));
     316        const TChar *pName=getName(TComCodingStatisticsType(i));
    317317
    318318        for(UInt c=0; c<CODING_STATS_NUM_SUBCLASSES; c++)
     
    442442    static SStat &GetStatisticEP(const std::string &str) { return GetSingletonInstance().data.mappings_ep[str]; }
    443443
    444     static SStat &GetStatisticEP(const Char *pKey) {return GetStatisticEP(std::string(pKey)); }
     444    static SStat &GetStatisticEP(const TChar *pKey) {return GetStatisticEP(std::string(pKey)); }
    445445
    446446    static Void IncrementStatisticEP(const TComCodingStatisticsClassType &stat, const Int numBits, const Int value)
     
    460460    }
    461461
    462     static Void IncrementStatisticEP(const Char *pKey, const Int numBits, const Int value)
     462    static Void IncrementStatisticEP(const TChar *pKey, const Int numBits, const Int value)
    463463    {
    464464      SStat &s=GetStatisticEP(pKey);
  • branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.cpp

    r1421 r1442  
    127127  if ( !bDecSubCu )
    128128  {
    129     m_phQP               = (Char*     )xMalloc(Char,     uiNumPartition);
     129    m_phQP               = (SChar*    )xMalloc(SChar,    uiNumPartition);
    130130    m_puhDepth           = (UChar*    )xMalloc(UChar,    uiNumPartition);
    131131    m_puhWidth           = (UChar*    )xMalloc(UChar,    uiNumPartition);
     
    134134    m_ChromaQpAdj        = new UChar[ uiNumPartition ];
    135135    m_skipFlag           = new Bool[ uiNumPartition ];
    136     m_pePartSize         = new Char[ uiNumPartition ];
     136    m_pePartSize         = new SChar[ uiNumPartition ];
    137137    memset( m_pePartSize, NUMBER_OF_PART_SIZES,uiNumPartition * sizeof( *m_pePartSize ) );
    138     m_pePredMode         = new Char[ uiNumPartition ];
     138    m_pePredMode         = new SChar[ uiNumPartition ];
    139139    m_CUTransquantBypass = new Bool[ uiNumPartition ];
    140140
     
    153153    {
    154154      const RefPicList rpl=RefPicList(i);
    155       m_apiMVPIdx[rpl]       = new Char[ uiNumPartition ];
    156       m_apiMVPNum[rpl]       = new Char[ uiNumPartition ];
    157       memset( m_apiMVPIdx[rpl], -1,uiNumPartition * sizeof( Char ) );
     155      m_apiMVPIdx[rpl]       = new SChar[ uiNumPartition ];
     156      m_apiMVPNum[rpl]       = new SChar[ uiNumPartition ];
     157      memset( m_apiMVPIdx[rpl], -1,uiNumPartition * sizeof( SChar ) );
    158158    }
    159159
     
    164164      const UInt totalSize   = (uiWidth * uiHeight) >> chromaShift;
    165165
    166       m_crossComponentPredictionAlpha[compID] = (Char*  )xMalloc(Char,   uiNumPartition);
     166      m_crossComponentPredictionAlpha[compID] = (SChar* )xMalloc(SChar,  uiNumPartition);
    167167      m_puhTransformSkip[compID]              = (UChar* )xMalloc(UChar,  uiNumPartition);
    168168      m_explicitRdpcmMode[compID]             = (UChar* )xMalloc(UChar,  uiNumPartition);
     
    660660  Int iSizeInUchar = sizeof( UChar  ) * m_uiNumPartition;
    661661  Int iSizeInBool  = sizeof( Bool   ) * m_uiNumPartition;
    662   Int sizeInChar = sizeof( Char  ) * m_uiNumPartition;
     662  Int sizeInChar = sizeof( SChar  ) * m_uiNumPartition;
    663663
    664664  memset( m_phQP,              qp,  sizeInChar );
     
    887887  Int iSizeInBool   = sizeof( Bool  ) * uiNumPartition;
    888888
    889   Int sizeInChar  = sizeof( Char ) * uiNumPartition;
     889  Int sizeInChar  = sizeof( SChar ) * uiNumPartition;
    890890  memcpy( m_skipFlag   + uiOffset, pcCU->getSkipFlag(),       sizeof( *m_skipFlag )   * uiNumPartition );
    891891  memcpy( m_phQP       + uiOffset, pcCU->getQP(),             sizeInChar                        );
     
    969969  Int iSizeInUchar  = sizeof( UChar ) * m_uiNumPartition;
    970970  Int iSizeInBool   = sizeof( Bool  ) * m_uiNumPartition;
    971   Int sizeInChar  = sizeof( Char ) * m_uiNumPartition;
     971  Int sizeInChar  = sizeof( SChar ) * m_uiNumPartition;
    972972
    973973  memcpy( pCtu->getSkipFlag() + m_absZIdxInCtu, m_skipFlag, sizeof( *m_skipFlag ) * m_uiNumPartition );
     
    11581158  const UInt numPartInCtuWidth = m_pcPic->getNumPartInCtuWidth();
    11591159  UInt uiAbsZorderCUIdxLB = g_auiZscanToRaster[ m_absZIdxInCtu ] + ((m_puhHeight[0] / m_pcPic->getMinCUHeight()) - 1)*numPartInCtuWidth;
    1160  
     1160
    11611161#if SVC_EXTENSION
    11621162  if( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxLB] + (m_pcPic->getPicSym()->getMinCUHeight() * uiPartUnitOffset)) >= m_pcSlice->getPicHeightInLumaSamples())
     
    12061206  UInt uiAbsZorderCUIdx   = g_auiZscanToRaster[ m_absZIdxInCtu ] + (m_puhWidth[0] / m_pcPic->getMinCUWidth()) - 1;
    12071207  const UInt numPartInCtuWidth = m_pcPic->getNumPartInCtuWidth();
    1208  
     1208
    12091209#if SVC_EXTENSION
    12101210  if( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxRT] + (m_pcPic->getPicSym()->getMinCUHeight() * uiPartUnitOffset)) >= m_pcSlice->getPicWidthInLumaSamples() )
     
    13181318/** Get reference QP from left QpMinCu or latest coded QP
    13191319*\param   uiCurrAbsIdxInCtu
    1320 *\returns Char   reference QP value
     1320*\returns SChar   reference QP value
    13211321*/
    1322 Char TComDataCU::getRefQP( UInt uiCurrAbsIdxInCtu )
     1322SChar TComDataCU::getRefQP( UInt uiCurrAbsIdxInCtu )
    13231323{
    13241324  UInt lPartIdx = MAX_UINT;
     
    13411341}
    13421342
    1343 Char TComDataCU::getLastCodedQP( UInt uiAbsPartIdx )
     1343SChar TComDataCU::getLastCodedQP( UInt uiAbsPartIdx )
    13441344{
    13451345  UInt uiQUPartIdxMask = ~((1<<((getSlice()->getSPS()->getMaxTotalCUDepth() - getSlice()->getPPS()->getMaxCuDQPDepth())<<1))-1);
     
    18361836Void TComDataCU::setMVPIdxSubParts( Int iMVPIdx, RefPicList eRefPicList, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    18371837{
    1838   setSubPart<Char>( iMVPIdx, m_apiMVPIdx[eRefPicList], uiAbsPartIdx, uiDepth, uiPartIdx );
     1838  setSubPart<SChar>( iMVPIdx, m_apiMVPIdx[eRefPicList], uiAbsPartIdx, uiDepth, uiPartIdx );
    18391839}
    18401840
    18411841Void TComDataCU::setMVPNumSubParts( Int iMVPNum, RefPicList eRefPicList, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    18421842{
    1843   setSubPart<Char>( iMVPNum, m_apiMVPNum[eRefPicList], uiAbsPartIdx, uiDepth, uiPartIdx );
     1843  setSubPart<SChar>( iMVPNum, m_apiMVPNum[eRefPicList], uiAbsPartIdx, uiDepth, uiPartIdx );
    18441844}
    18451845
     
    18741874}
    18751875
    1876 Void TComDataCU::setCrossComponentPredictionAlphaPartRange( Char alphaValue, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes )
    1877 {
    1878   memset((m_crossComponentPredictionAlpha[compID] + uiAbsPartIdx), alphaValue, (sizeof(Char) * uiCoveredPartIdxes));
     1876Void TComDataCU::setCrossComponentPredictionAlphaPartRange( SChar alphaValue, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes )
     1877{
     1878  memset((m_crossComponentPredictionAlpha[compID] + uiAbsPartIdx), alphaValue, (sizeof(SChar) * uiCoveredPartIdxes));
    18791879}
    18801880
  • branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.h

    r1421 r1442  
    8686  UChar*        m_puhDepth;           ///< array of depths
    8787  Int           m_unitSize;           ///< size of a "minimum partition"
    88  
     88
    8989#if SVC_EXTENSION
    9090  UInt          m_layerId;          ///< layer id
     
    9999
    100100  Bool*          m_skipFlag;           ///< array of skip flags
    101   Char*          m_pePartSize;         ///< array of partition sizes
    102   Char*          m_pePredMode;         ///< array of prediction modes
    103   Char*          m_crossComponentPredictionAlpha[MAX_NUM_COMPONENT]; ///< array of cross-component prediction alpha values
     101  SChar*         m_pePartSize;         ///< array of partition sizes
     102  SChar*         m_pePredMode;         ///< array of prediction modes
     103  SChar*         m_crossComponentPredictionAlpha[MAX_NUM_COMPONENT]; ///< array of cross-component prediction alpha values
    104104  Bool*          m_CUTransquantBypass;   ///< array of cu_transquant_bypass flags
    105   Char*          m_phQP;               ///< array of QP values
     105  SChar*         m_phQP;               ///< array of QP values
    106106  UChar*         m_ChromaQpAdj;        ///< array of chroma QP adjustments (indexed). when value = 0, cu_chroma_qp_offset_flag=0; when value>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=value-1
    107107  UInt           m_codedChromaQpAdj;
     
    143143  UChar*        m_puhIntraDir[MAX_NUM_CHANNEL_TYPE]; // 0-> Luma, 1-> Chroma
    144144  UChar*        m_puhInterDir;        ///< array of inter directions
    145   Char*         m_apiMVPIdx[NUM_REF_PIC_LIST_01];       ///< array of motion vector predictor candidates
    146   Char*         m_apiMVPNum[NUM_REF_PIC_LIST_01];       ///< array of number of possible motion vectors predictors
     145  SChar*        m_apiMVPIdx[NUM_REF_PIC_LIST_01];       ///< array of motion vector predictor candidates
     146  SChar*        m_apiMVPNum[NUM_REF_PIC_LIST_01];       ///< array of number of possible motion vectors predictors
    147147  Bool*         m_pbIPCMFlag;         ///< array of intra_pcm flags
    148148
     
    156156  UInt          m_uiTotalBits;        ///< sum of partition bits
    157157  UInt          m_uiTotalBins;        ///< sum of partition bins
    158   Char          m_codedQP;
     158  SChar         m_codedQP;
    159159  UChar*        m_explicitRdpcmMode[MAX_NUM_COMPONENT]; ///< Stores the explicit RDPCM mode for all TUs belonging to this CU
    160160
     
    223223  // -------------------------------------------------------------------------------------------------------------------
    224224
    225   Char*         getPartitionSize      ()                        { return m_pePartSize;        }
     225  SChar*        getPartitionSize      ()                        { return m_pePartSize;        }
    226226  PartSize      getPartitionSize      ( UInt uiIdx )            { return static_cast<PartSize>( m_pePartSize[uiIdx] ); }
    227227  Void          setPartitionSize      ( UInt uiIdx, PartSize uh){ m_pePartSize[uiIdx] = uh;   }
     
    234234  Void          setSkipFlagSubParts   ( Bool skip, UInt absPartIdx, UInt depth );
    235235
    236   Char*         getPredictionMode     ()                        { return m_pePredMode;        }
     236  SChar*        getPredictionMode     ()                        { return m_pePredMode;        }
    237237  PredMode      getPredictionMode     ( UInt uiIdx )            { return static_cast<PredMode>( m_pePredMode[uiIdx] ); }
    238238  Void          setPredictionMode     ( UInt uiIdx, PredMode uh){ m_pePredMode[uiIdx] = uh;   }
    239239  Void          setPredModeSubParts   ( PredMode eMode, UInt uiAbsPartIdx, UInt uiDepth );
    240240
    241   Char*         getCrossComponentPredictionAlpha( ComponentID compID )             { return m_crossComponentPredictionAlpha[compID];         }
    242   Char          getCrossComponentPredictionAlpha( UInt uiIdx, ComponentID compID ) { return m_crossComponentPredictionAlpha[compID][uiIdx];  }
     241  SChar*        getCrossComponentPredictionAlpha( ComponentID compID )             { return m_crossComponentPredictionAlpha[compID];         }
     242  SChar         getCrossComponentPredictionAlpha( UInt uiIdx, ComponentID compID ) { return m_crossComponentPredictionAlpha[compID][uiIdx];  }
    243243
    244244  Bool*         getCUTransquantBypass ()                        { return m_CUTransquantBypass;        }
     
    255255  Void          setSizeSubParts       ( UInt uiWidth, UInt uiHeight, UInt uiAbsPartIdx, UInt uiDepth );
    256256
    257   Char*         getQP                 ()                        { return m_phQP;              }
    258   Char          getQP                 ( UInt uiIdx ) const      { return m_phQP[uiIdx];       }
    259   Void          setQP                 ( UInt uiIdx, Char value ){ m_phQP[uiIdx] =  value;     }
     257  SChar*        getQP                 ()                        { return m_phQP;              }
     258  SChar         getQP                 ( UInt uiIdx ) const      { return m_phQP[uiIdx];       }
     259  Void          setQP                 ( UInt uiIdx, SChar value){ m_phQP[uiIdx] =  value;     }
    260260  Void          setQPSubParts         ( Int qp,   UInt uiAbsPartIdx, UInt uiDepth );
    261261  Int           getLastValidPartIdx   ( Int iAbsPartIdx );
    262   Char          getLastCodedQP        ( UInt uiAbsPartIdx );
     262  SChar         getLastCodedQP        ( UInt uiAbsPartIdx );
    263263  Void          setQPSubCUs           ( Int qp, UInt absPartIdx, UInt depth, Bool &foundNonZeroCbf );
    264   Void          setCodedQP            ( Char qp )               { m_codedQP = qp;             }
    265   Char          getCodedQP            ()                        { return m_codedQP;           }
     264  Void          setCodedQP            ( SChar qp )              { m_codedQP = qp;             }
     265  SChar         getCodedQP            ()                        { return m_codedQP;           }
    266266
    267267  UChar*        getChromaQpAdj        ()                        { return m_ChromaQpAdj;       } ///< array of chroma QP adjustments (indexed). when value = 0, cu_chroma_qp_offset_flag=0; when value>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=value-1
     
    269269  Void          setChromaQpAdj        (Int idx, UChar val)      { m_ChromaQpAdj[idx] = val;   } ///< When val = 0,   cu_chroma_qp_offset_flag=0; when val>0,   indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=val-1
    270270  Void          setChromaQpAdjSubParts( UChar val, Int absPartIdx, Int depth );
    271   Void          setCodedChromaQpAdj   ( Char qp )               { m_codedChromaQpAdj = qp;    }
    272   Char          getCodedChromaQpAdj   ()                        { return m_codedChromaQpAdj;  }
     271  Void          setCodedChromaQpAdj   ( SChar qp )              { m_codedChromaQpAdj = qp;    }
     272  SChar         getCodedChromaQpAdj   ()                        { return m_codedChromaQpAdj;  }
    273273
    274274  Bool          isLosslessCoded       ( UInt absPartIdx );
     
    289289  Bool          isRDPCMEnabled         ( UInt uiAbsPartIdx )  { return getSlice()->getSPS()->getSpsRangeExtension().getRdpcmEnabledFlag(isIntra(uiAbsPartIdx) ? RDPCM_SIGNAL_IMPLICIT : RDPCM_SIGNAL_EXPLICIT); }
    290290
    291   Void          setCrossComponentPredictionAlphaPartRange    ( Char alphaValue, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes );
     291  Void          setCrossComponentPredictionAlphaPartRange    ( SChar alphaValue, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes );
    292292  Void          setTransformSkipPartRange                    ( UInt useTransformSkip, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes );
    293293
     
    375375  Void          setMVPIdx             ( RefPicList eRefPicList, UInt uiIdx, Int iMVPIdx)  { m_apiMVPIdx[eRefPicList][uiIdx] = iMVPIdx;  }
    376376  Int           getMVPIdx             ( RefPicList eRefPicList, UInt uiIdx)               { return m_apiMVPIdx[eRefPicList][uiIdx];     }
    377   Char*         getMVPIdx             ( RefPicList eRefPicList )                          { return m_apiMVPIdx[eRefPicList];            }
     377  SChar*        getMVPIdx             ( RefPicList eRefPicList )                          { return m_apiMVPIdx[eRefPicList];            }
    378378
    379379  Void          setMVPNum             ( RefPicList eRefPicList, UInt uiIdx, Int iMVPNum ) { m_apiMVPNum[eRefPicList][uiIdx] = iMVPNum;  }
    380380  Int           getMVPNum             ( RefPicList eRefPicList, UInt uiIdx )              { return m_apiMVPNum[eRefPicList][uiIdx];     }
    381   Char*         getMVPNum             ( RefPicList eRefPicList )                          { return m_apiMVPNum[eRefPicList];            }
     381  SChar*        getMVPNum             ( RefPicList eRefPicList )                          { return m_apiMVPNum[eRefPicList];            }
    382382
    383383  Void          setMVPIdxSubParts     ( Int iMVPIdx, RefPicList eRefPicList, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth );
     
    420420  TComDataCU*   getQpMinCuLeft              ( UInt&  uiLPartUnitIdx , UInt uiCurrAbsIdxInCtu );
    421421  TComDataCU*   getQpMinCuAbove             ( UInt&  uiAPartUnitIdx , UInt uiCurrAbsIdxInCtu );
    422   Char          getRefQP                    ( UInt   uiCurrAbsIdxInCtu                       );
     422  SChar         getRefQP                    ( UInt   uiCurrAbsIdxInCtu                       );
    423423
    424424  /// returns CU and part index of the PU above the top row of the current uiCurrPartUnitIdx of the CU, at a horizontal offset (to the right) of uiPartUnitOffset (in parts)
     
    475475
    476476  UInt          getCoefScanIdx(const UInt uiAbsPartIdx, const UInt uiWidth, const UInt uiHeight, const ComponentID compID) const ;
    477  
     477
    478478#if SVC_EXTENSION
    479479  Void          setLayerId (UInt layerId)       { m_layerId = layerId; }
  • branches/SHM-dev/source/Lib/TLibCommon/TComMotionInfo.cpp

    r1259 r1442  
    6060  m_pcMv     = new TComMv[ uiNumPartition ];
    6161  m_pcMvd    = new TComMv[ uiNumPartition ];
    62   m_piRefIdx = new Char [ uiNumPartition ];
     62  m_piRefIdx = new SChar [ uiNumPartition ];
    6363
    6464  m_uiNumPartition = uiNumPartition;
     
    315315Void TComCUMvField::setAllRefIdx ( Int iRefIdx, PartSize eCUMode, Int iPartAddr, UInt uiDepth, Int iPartIdx )
    316316{
    317   setAll(m_piRefIdx, static_cast<Char>(iRefIdx), eCUMode, iPartAddr, uiDepth, iPartIdx);
     317  setAll(m_piRefIdx, static_cast<SChar>(iRefIdx), eCUMode, iPartAddr, uiDepth, iPartIdx);
    318318}
    319319
     
    328328 * \param scale      Factor by which to subsample motion information
    329329 */
    330 Void TComCUMvField::compress(Char* pePredMode, Int scale)
     330Void TComCUMvField::compress(SChar* pePredMode, Int scale)
    331331{
    332332  Int N = scale * scale;
  • branches/SHM-dev/source/Lib/TLibCommon/TComMotionInfo.h

    r1259 r1442  
    9494  TComMv*   m_pcMv;
    9595  TComMv*   m_pcMvd;
    96   Char*     m_piRefIdx;
     96  SChar*    m_piRefIdx;
    9797  UInt      m_uiNumPartition;
    9898  AMVPInfo  m_cAMVPInfo;
     
    153153  }
    154154
    155   Void compress(Char* pePredMode, Int scale);
     155  Void compress(SChar* pePredMode, Int scale);
    156156
    157157#if SVC_EXTENSION
  • branches/SHM-dev/source/Lib/TLibCommon/TComPic.cpp

    r1428 r1442  
    363363      }
    364364    }
    365     memset( pcCUDes->getPartitionSize(), SIZE_2Nx2N, sizeof(Char)*numPartitions );
     365    memset( pcCUDes->getPartitionSize(), SIZE_2Nx2N, sizeof(SChar)*numPartitions );
    366366  }
    367367}
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp

    r1427 r1442  
    296296
    297297// NOTE: This function is never called, but may be useful for developers.
    298 Void TComPicYuv::dump (const Char* pFileName, const BitDepths &bitDepths, Bool bAdd) const
    299 {
    300   FILE* pFile;
    301   if (!bAdd)
    302   {
    303     pFile = fopen (pFileName, "wb");
    304   }
    305   else
    306   {
    307     pFile = fopen (pFileName, "ab");
    308   }
    309 
     298Void TComPicYuv::dump (const std::string &fileName, const BitDepths &bitDepths, Bool bAdd) const
     299{
     300  FILE* pFile = fopen (fileName.c_str(), bAdd?"ab":"wb");
    310301
    311302  for(Int comp = 0; comp < getNumberValidComponents(); comp++)
     
    333324}
    334325
    335 Void TComPicYuv::dump( Char* pFileName, Bool bAdd, Int bitDepth )
    336 {
    337   FILE* pFile;
    338   if (!bAdd)
    339   {
    340     pFile = fopen (pFileName, "wb");
    341   }
    342   else
    343   {
    344     pFile = fopen (pFileName, "ab");
    345   }
     326Void TComPicYuv::dump( const std::string &fileName, const Bool bAdd, const Int bitDepth )
     327{
     328  FILE* pFile = fopen (fileName.c_str(), bAdd?"ab":"wb");
    346329
    347330  if( bitDepth == 8 )
    348331  {
    349     dump( pFileName, bitDepth, bAdd );
     332    dump( fileName, bitDepth, bAdd );
    350333    return;
    351334  }
     
    378361
    379362#if AUXILIARY_PICTURES
    380 Void TComPicYuv::convertToMonochrome(Int bitDepthChroma)
     363Void TComPicYuv::convertToMonochrome(const Int bitDepthChroma)
    381364{
    382365  Pel grayVal = (1 << (bitDepthChroma - 1));
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.h

    r1428 r1442  
    180180
    181181  //  Dump picture
    182   Void          dump              (const Char* pFileName, const BitDepths &bitDepths, Bool bAdd = false) const ;
     182  Void          dump              (const std::string &fileName, const BitDepths &bitDepths, Bool bAdd = false) const ;
    183183
    184184  // Set border extension flag
     
    192192  Bool          isReconstructed()                                { return m_isReconstructed;                }
    193193#if AUXILIARY_PICTURES 
    194   Void          convertToMonochrome(Int bitDepthChroma);
    195 #endif
    196 #endif
    197 
    198   Void          dump( Char* pFileName, Bool bAdd, Int bitDepth );
     194  Void          convertToMonochrome(const Int bitDepthChroma);
     195#endif
     196#endif
     197
     198  Void          dump( const std::string &fileName, const Bool bAdd, const Int bitDepth );
    199199
    200200};// END CLASS DEFINITION TComPicYuv
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicYuvMD5.cpp

    r1287 r1442  
    209209std::string hashToString(const TComPictureHash &digest, Int numChar)
    210210{
    211   static const Char* hex = "0123456789abcdef";
     211  static const TChar* hex = "0123456789abcdef";
    212212  std::string result;
    213213
  • branches/SHM-dev/source/Lib/TLibCommon/TComRom.cpp

    r1419 r1442  
    5151//! \{
    5252
    53 const Char* nalUnitTypeToString(NalUnitType type)
     53const TChar* nalUnitTypeToString(NalUnitType type)
    5454{
    5555#if SVC_EXTENSION
     
    602602// ====================================================================================================================
    603603
    604 Char  g_aucConvertToBit  [ MAX_CU_SIZE+1 ];
     604SChar  g_aucConvertToBit  [ MAX_CU_SIZE+1 ];
    605605
    606606#if ENC_DEC_TRACE
     
    630630const UInt g_uiGroupIdx[ MAX_TU_SIZE ]   = {0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9};
    631631
    632 const Char *MatrixType[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM] =
     632const TChar *MatrixType[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM] =
    633633{
    634634  {
     
    666666};
    667667
    668 const Char *MatrixType_DC[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM] =
     668const TChar *MatrixType_DC[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM] =
    669669{
    670670  {
  • branches/SHM-dev/source/Lib/TLibCommon/TComRom.h

    r1419 r1442  
    125125// ====================================================================================================================
    126126
    127 extern       Char   g_aucConvertToBit  [ MAX_CU_SIZE+1 ];   // from width to log2(width)-2
     127extern       SChar   g_aucConvertToBit  [ MAX_CU_SIZE+1 ];   // from width to log2(width)-2
    128128
    129129
     
    159159#endif
    160160
    161 const Char* nalUnitTypeToString(NalUnitType type);
     161const TChar* nalUnitTypeToString(NalUnitType type);
    162162
    163 extern const Char *MatrixType[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM];
    164 extern const Char *MatrixType_DC[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM];
     163extern const TChar *MatrixType[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM];
     164extern const TChar *MatrixType_DC[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM];
    165165
    166166extern const Int g_quantTSDefault4x4[4*4];
  • branches/SHM-dev/source/Lib/TLibCommon/TComSampleAdaptiveOffset.cpp

    r1289 r1442  
    324324      m_signLineBuf1 = NULL;
    325325    }
    326     m_signLineBuf1 = new Char[m_lineBufWidth+1];
     326    m_signLineBuf1 = new SChar[m_lineBufWidth+1];
    327327
    328328    if (m_signLineBuf2)
     
    331331      m_signLineBuf2 = NULL;
    332332    }
    333     m_signLineBuf2 = new Char[m_lineBufWidth+1];
     333    m_signLineBuf2 = new SChar[m_lineBufWidth+1];
    334334  }
    335335
     
    338338  Int x,y, startX, startY, endX, endY, edgeType;
    339339  Int firstLineStartX, firstLineEndX, lastLineStartX, lastLineEndX;
    340   Char signLeft, signRight, signDown;
     340  SChar signLeft, signRight, signDown;
    341341
    342342  Pel* srcLine = srcBlk;
     
    352352      for (y=0; y< height; y++)
    353353      {
    354         signLeft = (Char)sgn(srcLine[startX] - srcLine[startX-1]);
     354        signLeft = (SChar)sgn(srcLine[startX] - srcLine[startX-1]);
    355355        for (x=startX; x< endX; x++)
    356356        {
    357           signRight = (Char)sgn(srcLine[x] - srcLine[x+1]);
     357          signRight = (SChar)sgn(srcLine[x] - srcLine[x+1]);
    358358          edgeType =  signRight + signLeft;
    359359          signLeft  = -signRight;
     
    370370    {
    371371      offset += 2;
    372       Char *signUpLine = m_signLineBuf1;
     372      SChar *signUpLine = m_signLineBuf1;
    373373
    374374      startY = isAboveAvail ? 0 : 1;
     
    383383      for (x=0; x< width; x++)
    384384      {
    385         signUpLine[x] = (Char)sgn(srcLine[x] - srcLineAbove[x]);
     385        signUpLine[x] = (SChar)sgn(srcLine[x] - srcLineAbove[x]);
    386386      }
    387387
     
    393393        for (x=0; x< width; x++)
    394394        {
    395           signDown  = (Char)sgn(srcLine[x] - srcLineBelow[x]);
     395          signDown  = (SChar)sgn(srcLine[x] - srcLineBelow[x]);
    396396          edgeType = signDown + signUpLine[x];
    397397          signUpLine[x]= -signDown;
     
    408408    {
    409409      offset += 2;
    410       Char *signUpLine, *signDownLine, *signTmpLine;
     410      SChar *signUpLine, *signDownLine, *signTmpLine;
    411411
    412412      signUpLine  = m_signLineBuf1;
     
    420420      for (x=startX; x< endX+1; x++)
    421421      {
    422         signUpLine[x] = (Char)sgn(srcLineBelow[x] - srcLine[x- 1]);
     422        signUpLine[x] = (SChar)sgn(srcLineBelow[x] - srcLine[x- 1]);
    423423      }
    424424
     
    444444        for (x=startX; x<endX; x++)
    445445        {
    446           signDown =  (Char)sgn(srcLine[x] - srcLineBelow[x+ 1]);
     446          signDown =  (SChar)sgn(srcLine[x] - srcLineBelow[x+ 1]);
    447447          edgeType =  signDown + signUpLine[x];
    448448          resLine[x] = Clip3<Int>(0, maxSampleValueIncl, srcLine[x] + offset[edgeType]);
     
    450450          signDownLine[x+1] = -signDown;
    451451        }
    452         signDownLine[startX] = (Char)sgn(srcLineBelow[startX] - srcLine[startX-1]);
     452        signDownLine[startX] = (SChar)sgn(srcLineBelow[startX] - srcLine[startX-1]);
    453453
    454454        signTmpLine  = signUpLine;
     
    475475    {
    476476      offset += 2;
    477       Char *signUpLine = m_signLineBuf1+1;
     477      SChar *signUpLine = m_signLineBuf1+1;
    478478
    479479      startX = isLeftAvail ? 0 : 1;
     
    484484      for (x=startX-1; x< endX; x++)
    485485      {
    486         signUpLine[x] = (Char)sgn(srcLineBelow[x] - srcLine[x+1]);
     486        signUpLine[x] = (SChar)sgn(srcLineBelow[x] - srcLine[x+1]);
    487487      }
    488488
     
    507507        for(x= startX; x< endX; x++)
    508508        {
    509           signDown =  (Char)sgn(srcLine[x] - srcLineBelow[x-1]);
     509          signDown =  (SChar)sgn(srcLine[x] - srcLineBelow[x-1]);
    510510          edgeType =  signDown + signUpLine[x];
    511511          resLine[x] = Clip3<Int>(0, maxSampleValueIncl, srcLine[x] + offset[edgeType]);
    512512          signUpLine[x-1] = -signDown;
    513513        }
    514         signUpLine[endX-1] = (Char)sgn(srcLineBelow[endX-1] - srcLine[endX]);
     514        signUpLine[endX-1] = (SChar)sgn(srcLineBelow[endX-1] - srcLine[endX]);
    515515        srcLine  += srcStride;
    516516        resLine += resStride;
  • branches/SHM-dev/source/Lib/TLibCommon/TComSampleAdaptiveOffset.h

    r1287 r1442  
    9696
    9797  Int m_lineBufWidth;
    98   Char* m_signLineBuf1;
    99   Char* m_signLineBuf2;
     98  SChar* m_signLineBuf1;
     99  SChar* m_signLineBuf2;
    100100  ChromaFormat m_chromaFormatIDC;
    101101private:
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1439 r1442  
    24442444}
    24452445
    2446 Bool TComScalingList::xParseScalingList(Char* pchFile)
     2446Bool TComScalingList::xParseScalingList(const std::string &fileName)
    24472447{
    24482448  static const Int LINE_SIZE=1024;
    24492449  FILE *fp = NULL;
    2450   Char line[LINE_SIZE];
    2451 
    2452   if (pchFile == NULL)
     2450  TChar line[LINE_SIZE];
     2451
     2452  if (fileName.empty())
    24532453  {
    24542454    fprintf(stderr, "Error: no scaling list file specified. Help on scaling lists being output\n");
     
    24592459    return true;
    24602460  }
    2461   else if ((fp = fopen(pchFile,"r")) == (FILE*)NULL)
    2462   {
    2463     fprintf(stderr, "Error: cannot open scaling list file %s for reading\n",pchFile);
     2461  else if ((fp = fopen(fileName.c_str(),"r")) == (FILE*)NULL)
     2462  {
     2463    fprintf(stderr, "Error: cannot open scaling list file %s for reading\n", fileName.c_str());
    24642464    return true;
    24652465  }
     
    24892489          while ((!feof(fp)) && (!bFound))
    24902490          {
    2491             Char *ret = fgets(line, LINE_SIZE, fp);
    2492             Char *findNamePosition= ret==NULL ? NULL : strstr(line, MatrixType[sizeIdc][listIdc]);
     2491            TChar *ret = fgets(line, LINE_SIZE, fp);
     2492            TChar *findNamePosition= ret==NULL ? NULL : strstr(line, MatrixType[sizeIdc][listIdc]);
    24932493            // This could be a match against the DC string as well, so verify it isn't
    24942494            if (findNamePosition!= NULL && (MatrixType_DC[sizeIdc][listIdc]==NULL || strstr(line, MatrixType_DC[sizeIdc][listIdc])==NULL))
     
    24992499          if (!bFound)
    25002500          {
    2501             fprintf(stderr, "Error: cannot find Matrix %s from scaling list file %s\n", MatrixType[sizeIdc][listIdc], pchFile);
     2501            fprintf(stderr, "Error: cannot find Matrix %s from scaling list file %s\n", MatrixType[sizeIdc][listIdc], fileName.c_str());
    25022502            return true;
    25032503          }
     
    25082508          if (fscanf(fp, "%d,", &data)!=1)
    25092509          {
    2510             fprintf(stderr, "Error: cannot read value #%d for Matrix %s from scaling list file %s at file position %ld\n", i, MatrixType[sizeIdc][listIdc], pchFile, ftell(fp));
     2510            fprintf(stderr, "Error: cannot read value #%d for Matrix %s from scaling list file %s at file position %ld\n", i, MatrixType[sizeIdc][listIdc], fileName.c_str(), ftell(fp));
    25112511            return true;
    25122512          }
    25132513          if (data<0 || data>255)
    25142514          {
    2515             fprintf(stderr, "Error: QMatrix entry #%d of value %d for Matrix %s from scaling list file %s at file position %ld is out of range (0 to 255)\n", i, data, MatrixType[sizeIdc][listIdc], pchFile, ftell(fp));
     2515            fprintf(stderr, "Error: QMatrix entry #%d of value %d for Matrix %s from scaling list file %s at file position %ld is out of range (0 to 255)\n", i, data, MatrixType[sizeIdc][listIdc], fileName.c_str(), ftell(fp));
    25162516            return true;
    25172517          }
     
    25292529            while ((!feof(fp)) && (!bFound))
    25302530            {
    2531               Char *ret = fgets(line, LINE_SIZE, fp);
    2532               Char *findNamePosition= ret==NULL ? NULL : strstr(line, MatrixType_DC[sizeIdc][listIdc]);
     2531              TChar *ret = fgets(line, LINE_SIZE, fp);
     2532              TChar *findNamePosition= ret==NULL ? NULL : strstr(line, MatrixType_DC[sizeIdc][listIdc]);
    25332533              if (findNamePosition!= NULL)
    25342534              {
     
    25392539            if (!bFound)
    25402540            {
    2541               fprintf(stderr, "Error: cannot find DC Matrix %s from scaling list file %s\n", MatrixType_DC[sizeIdc][listIdc], pchFile);
     2541              fprintf(stderr, "Error: cannot find DC Matrix %s from scaling list file %s\n", MatrixType_DC[sizeIdc][listIdc], fileName.c_str());
    25422542              return true;
    25432543            }
     
    25462546          if (fscanf(fp, "%d,", &data)!=1)
    25472547          {
    2548             fprintf(stderr, "Error: cannot read DC %s from scaling list file %s at file position %ld\n", MatrixType_DC[sizeIdc][listIdc], pchFile, ftell(fp));
     2548            fprintf(stderr, "Error: cannot read DC %s from scaling list file %s at file position %ld\n", MatrixType_DC[sizeIdc][listIdc], fileName.c_str(), ftell(fp));
    25492549            return true;
    25502550          }
    25512551          if (data<0 || data>255)
    25522552          {
    2553             fprintf(stderr, "Error: DC value %d for Matrix %s from scaling list file %s at file position %ld is out of range (0 to 255)\n", data, MatrixType[sizeIdc][listIdc], pchFile, ftell(fp));
     2553            fprintf(stderr, "Error: DC value %d for Matrix %s from scaling list file %s at file position %ld is out of range (0 to 255)\n", data, MatrixType[sizeIdc][listIdc], fileName.c_str(), ftell(fp));
    25542554            return true;
    25552555          }
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1439 r1442  
    176176  Void       checkDcOfMatrix();
    177177  Void       processRefMatrix(UInt sizeId, UInt listId , UInt refListId );
    178   Bool       xParseScalingList(Char* pchFile);
     178  Bool       xParseScalingList(const std::string &fileName);
    179179  Void       setDefaultScalingList();
    180180  Bool       checkDefaultScalingList();
     
    789789  UInt              getNumHrdParameters() const                          { return m_numHrdParameters;                                       }
    790790  Void              setNumHrdParameters(UInt v)                          { m_numHrdParameters = v;                                          }
    791  
     791
    792792#if !SVC_EXTENSION
    793793  UInt              getMaxNuhReservedZeroLayerId() const                 { return m_maxNuhReservedZeroLayerId;                              }
     
    11401140#endif //SVC_EXTENSION
    11411141};
     1142
    11421143
    11431144class TComVUI
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1433 r1442  
    259259typedef       bool                Bool;
    260260
    261 #ifdef __arm__
    262 typedef       signed char         Char;
    263 #else
    264 typedef       char                Char;
    265 #endif
    266 typedef       unsigned char       UChar;
     261typedef       char                TChar; // Used for text/characters
     262typedef       signed char         SChar; // Signed 8-bit values
     263typedef       unsigned char       UChar; // Unsigned 8-bit values
    267264typedef       short               Short;
    268265typedef       unsigned short      UShort;
Note: See TracChangeset for help on using the changeset viewer.