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


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

port rev 4590

Location:
branches/SHM-dev/source/Lib
Files:
49 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;
  • branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp

    r1434 r1442  
    6363#endif
    6464
    65 Void SEIReader::sei_read_code(std::ostream *pOS, UInt uiLength, UInt& ruiCode, const Char *pSymbolName)
     65Void SEIReader::sei_read_code(std::ostream *pOS, UInt uiLength, UInt& ruiCode, const TChar *pSymbolName)
    6666{
    6767  READ_CODE(uiLength, ruiCode, pSymbolName);
     
    7272}
    7373
    74 Void SEIReader::sei_read_uvlc(std::ostream *pOS, UInt& ruiCode, const Char *pSymbolName)
     74Void SEIReader::sei_read_uvlc(std::ostream *pOS, UInt& ruiCode, const TChar *pSymbolName)
    7575{
    7676  READ_UVLC(ruiCode, pSymbolName);
     
    8181}
    8282
    83 Void SEIReader::sei_read_svlc(std::ostream *pOS, Int& ruiCode, const Char *pSymbolName)
     83Void SEIReader::sei_read_svlc(std::ostream *pOS, Int& ruiCode, const TChar *pSymbolName)
    8484{
    8585  READ_SVLC(ruiCode, pSymbolName);
     
    9090}
    9191
    92 Void SEIReader::sei_read_flag(std::ostream *pOS, UInt& ruiCode, const Char *pSymbolName)
     92Void SEIReader::sei_read_flag(std::ostream *pOS, UInt& ruiCode, const TChar *pSymbolName)
    9393{
    9494  READ_FLAG(ruiCode, pSymbolName);
     
    522522  sei.method = static_cast<SEIDecodedPictureHash::Method>(val); bytesRead++;
    523523
    524   const Char *traceString="\0";
     524  const TChar *traceString="\0";
    525525  switch (sei.method)
    526526  {
  • branches/SHM-dev/source/Lib/TLibDecoder/SEIread.h

    r1434 r1442  
    109109  Void xParseSEIMasteringDisplayColourVolume  (SEIMasteringDisplayColourVolume& sei,  UInt payloadSize,                     std::ostream *pDecodedMessageOutputStream);
    110110
    111   Void sei_read_code(std::ostream *pOS, UInt uiLength, UInt& ruiCode, const Char *pSymbolName);
    112   Void sei_read_uvlc(std::ostream *pOS,                UInt& ruiCode, const Char *pSymbolName);
    113   Void sei_read_svlc(std::ostream *pOS,                Int&  ruiCode, const Char *pSymbolName);
    114   Void sei_read_flag(std::ostream *pOS,                UInt& ruiCode, const Char *pSymbolName);
     111  Void sei_read_code(std::ostream *pOS, UInt uiLength, UInt& ruiCode, const TChar *pSymbolName);
     112  Void sei_read_uvlc(std::ostream *pOS,                UInt& ruiCode, const TChar *pSymbolName);
     113  Void sei_read_svlc(std::ostream *pOS,                Int&  ruiCode, const TChar *pSymbolName);
     114  Void sei_read_flag(std::ostream *pOS,                UInt& ruiCode, const TChar *pSymbolName);
    115115
    116116#if Q0074_COLOUR_REMAPPING_SEI
  • branches/SHM-dev/source/Lib/TLibDecoder/SyntaxElementParser.cpp

    r1351 r1442  
    4949#if ENC_DEC_TRACE
    5050
    51 Void  SyntaxElementParser::xReadCodeTr           (UInt length, UInt& rValue, const Char *pSymbolName)
     51Void  SyntaxElementParser::xReadCodeTr           (UInt length, UInt& rValue, const TChar *pSymbolName)
    5252{
    5353#if RExt__DECODER_DEBUG_BIT_STATISTICS
     
    6868}
    6969
    70 Void  SyntaxElementParser::xReadUvlcTr           (UInt& rValue, const Char *pSymbolName)
     70Void  SyntaxElementParser::xReadUvlcTr           (UInt& rValue, const TChar *pSymbolName)
    7171{
    7272#if RExt__DECODER_DEBUG_BIT_STATISTICS
     
    8080}
    8181
    82 Void  SyntaxElementParser::xReadSvlcTr           (Int& rValue, const Char *pSymbolName)
     82Void  SyntaxElementParser::xReadSvlcTr           (Int& rValue, const TChar *pSymbolName)
    8383{
    8484#if RExt__DECODER_DEBUG_BIT_STATISTICS
     
    9292}
    9393
    94 Void  SyntaxElementParser::xReadFlagTr           (UInt& rValue, const Char *pSymbolName)
     94Void  SyntaxElementParser::xReadFlagTr           (UInt& rValue, const TChar *pSymbolName)
    9595{
    9696#if RExt__DECODER_DEBUG_BIT_STATISTICS
     
    135135// ====================================================================================================================
    136136#if RExt__DECODER_DEBUG_BIT_STATISTICS
    137 Void SyntaxElementParser::xReadCode (UInt uiLength, UInt& ruiCode, const Char *pSymbolName)
     137Void SyntaxElementParser::xReadCode (UInt uiLength, UInt& ruiCode, const TChar *pSymbolName)
    138138#else
    139139Void SyntaxElementParser::xReadCode (UInt uiLength, UInt& ruiCode)
     
    148148
    149149#if RExt__DECODER_DEBUG_BIT_STATISTICS
    150 Void SyntaxElementParser::xReadUvlc( UInt& ruiVal, const Char *pSymbolName)
     150Void SyntaxElementParser::xReadUvlc( UInt& ruiVal, const TChar *pSymbolName)
    151151#else
    152152Void SyntaxElementParser::xReadUvlc( UInt& ruiVal)
     
    186186
    187187#if RExt__DECODER_DEBUG_BIT_STATISTICS
    188 Void SyntaxElementParser::xReadSvlc( Int& riVal, const Char *pSymbolName)
     188Void SyntaxElementParser::xReadSvlc( Int& riVal, const TChar *pSymbolName)
    189189#else
    190190Void SyntaxElementParser::xReadSvlc( Int& riVal)
     
    224224
    225225#if RExt__DECODER_DEBUG_BIT_STATISTICS
    226 Void SyntaxElementParser::xReadFlag (UInt& ruiCode, const Char *pSymbolName)
     226Void SyntaxElementParser::xReadFlag (UInt& ruiCode, const TChar *pSymbolName)
    227227#else
    228228Void SyntaxElementParser::xReadFlag (UInt& ruiCode)
     
    281281#if Q0096_OVERLAY_SEI
    282282#if RExt__DECODER_DEBUG_BIT_STATISTICS
    283 Void SyntaxElementParser::xReadString (UInt bufSize, UChar *pVal, UInt& rLength, const Char *pSymbolName)
     283Void SyntaxElementParser::xReadString (UInt bufSize, UChar *pVal, UInt& rLength, const TChar *pSymbolName)
    284284#else
    285285Void  SyntaxElementParser::xReadString (UInt bufSize, UChar *pVal, UInt& rLength)
  • branches/SHM-dev/source/Lib/TLibDecoder/SyntaxElementParser.h

    r1351 r1442  
    9898
    9999#if RExt__DECODER_DEBUG_BIT_STATISTICS
    100   Void  xReadCode    ( UInt   length, UInt& val, const Char *pSymbolName );
    101   Void  xReadUvlc    ( UInt&  val, const Char *pSymbolName );
    102   Void  xReadSvlc    ( Int&   val, const Char *pSymbolName );
    103   Void  xReadFlag    ( UInt&  val, const Char *pSymbolName );
     100  Void  xReadCode    ( UInt   length, UInt& val, const TChar *pSymbolName );
     101  Void  xReadUvlc    ( UInt&  val, const TChar *pSymbolName );
     102  Void  xReadSvlc    ( Int&   val, const TChar *pSymbolName );
     103  Void  xReadFlag    ( UInt&  val, const TChar *pSymbolName );
    104104#if Q0096_OVERLAY_SEI
    105   Void  xReadString  (UInt bufSize, UChar *pValue, UInt& rLength, const Char *pSymbolName);
     105  Void  xReadString  (UInt bufSize, UChar *pValue, UInt& rLength, const TChar *pSymbolName);
    106106#endif
    107107#else
     
    115115#endif
    116116#if ENC_DEC_TRACE
    117   Void  xReadCodeTr  (UInt  length, UInt& rValue, const Char *pSymbolName);
    118   Void  xReadUvlcTr  (              UInt& rValue, const Char *pSymbolName);
    119   Void  xReadSvlcTr  (               Int& rValue, const Char *pSymbolName);
    120   Void  xReadFlagTr  (              UInt& rValue, const Char *pSymbolName);
     117  Void  xReadCodeTr  (UInt  length, UInt& rValue, const TChar *pSymbolName);
     118  Void  xReadUvlcTr  (              UInt& rValue, const TChar *pSymbolName);
     119  Void  xReadSvlcTr  (               Int& rValue, const TChar *pSymbolName);
     120  Void  xReadFlagTr  (              UInt& rValue, const TChar *pSymbolName);
    121121#if Q0096_OVERLAY_SEI
    122122  Void  xReadStringTr(UInt bufSize, UChar *pValue, UInt& rLength, const Char *pSymbolName);
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecBinCoderCABAC.cpp

    r1335 r1442  
    169169  if (g_debugCounter >= debugCabacBinTargetLine)
    170170  {
    171     Char breakPointThis;
     171    UChar breakPointThis;
    172172    breakPointThis = 7;
    173173  }
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1439 r1442  
    343343  {
    344344#if ENC_DEC_TRACE || RExt__DECODER_DEBUG_BIT_STATISTICS
    345     static const char *syntaxStrings[]={ "pps_range_extension_flag",
    346                                          "pps_multilayer_extension_flag",
    347                                          "pps_extension_6bits[0]",
    348                                          "pps_extension_6bits[1]",
    349                                          "pps_extension_6bits[2]",
    350                                          "pps_extension_6bits[3]",
    351                                          "pps_extension_6bits[4]",
    352                                          "pps_extension_6bits[5]" };
     345    static const TChar *syntaxStrings[]={ "pps_range_extension_flag",
     346                                          "pps_multilayer_extension_flag",
     347                                          "pps_extension_6bits[0]",
     348                                          "pps_extension_6bits[1]",
     349                                          "pps_extension_6bits[2]",
     350                                          "pps_extension_6bits[3]",
     351                                          "pps_extension_6bits[4]",
     352                                          "pps_extension_6bits[5]" };
    353353#endif
    354354
     
    969969  {
    970970#if ENC_DEC_TRACE || RExt__DECODER_DEBUG_BIT_STATISTICS
    971     static const char *syntaxStrings[]={ "sps_range_extension_flag",
    972                                          "sps_multilayer_extension_flag",
    973                                          "sps_extension_6bits[0]",
    974                                          "sps_extension_6bits[1]",
    975                                          "sps_extension_6bits[2]",
    976                                          "sps_extension_6bits[3]",
    977                                          "sps_extension_6bits[4]",
    978                                          "sps_extension_6bits[5]" };
     971    static const TChar *syntaxStrings[]={ "sps_range_extension_flag",
     972                                          "sps_multilayer_extension_flag",
     973                                          "sps_extension_6bits[0]",
     974                                          "sps_extension_6bits[1]",
     975                                          "sps_extension_6bits[2]",
     976                                          "sps_extension_6bits[3]",
     977                                          "sps_extension_6bits[4]",
     978                                          "sps_extension_6bits[5]" };
    979979#endif
    980980    Bool sps_extension_flags[NUM_SPS_EXTENSION_FLAGS];
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecGop.cpp

    r1431 r1442  
    181181
    182182  pcPic->compressMotion();
    183   Char c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B');
     183  TChar c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B');
    184184  if (!pcSlice->isReferenced())
    185185  {
     
    284284  TComPictureHash recon_digest;
    285285  Int numChar=0;
    286   const Char* hashType = "\0";
     286  const TChar* hashType = "\0";
    287287
    288288  if (pictureHashSEI)
     
    317317
    318318  /* compare digest against received version */
    319   const Char* ok = "(unk)";
     319  const TChar* ok = "(unk)";
    320320  Bool mismatch = false;
    321321
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecSbac.cpp

    r1316 r1442  
    860860  if (!pcCU->isIntra(uiAbsPartIdx) || (pcCU->getIntraDir( CHANNEL_TYPE_CHROMA, uiAbsPartIdx ) == DM_CHROMA_IDX))
    861861  {
    862     Char alpha = 0;
     862    SChar alpha = 0;
    863863    UInt symbol = 0;
    864864
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1431 r1442  
    13861386        for( Int i = 0; i < uiHeight; i++ )
    13871387        {
    1388           pFile->read(reinterpret_cast<Char*>(buf), len);
     1388          pFile->read(reinterpret_cast<TChar*>(buf), len);
    13891389
    13901390          if( !is16bit )
     
    14151415        for( Int i = 0; i < uiHeight; i++ )
    14161416        {
    1417           pFile->read(reinterpret_cast<Char*>(buf), len);
     1417          pFile->read(reinterpret_cast<TChar*>(buf), len);
    14181418
    14191419          if( !is16bit )
     
    14401440        for( Int i = 0; i < uiHeight; i++ )
    14411441        {
    1442           pFile->read(reinterpret_cast<Char*>(buf), len);
     1442          pFile->read(reinterpret_cast<TChar*>(buf), len);
    14431443
    14441444          if( !is16bit )
  • branches/SHM-dev/source/Lib/TLibEncoder/AnnexBwrite.h

    r1259 r1442  
    6060    UInt size = 0; /* size of annexB unit in bytes */
    6161
    62     static const Char start_code_prefix[] = {0,0,0,1};
     62    static const UChar start_code_prefix[] = {0,0,0,1};
    6363    if (it == au.begin() || nalu.m_nalUnitType == NAL_UNIT_VPS || nalu.m_nalUnitType == NAL_UNIT_SPS || nalu.m_nalUnitType == NAL_UNIT_PPS)
    6464    {
     
    7171       *    7.4.1.2.3.
    7272       */
    73       out.write(start_code_prefix, 4);
     73      out.write(reinterpret_cast<const TChar*>(start_code_prefix), 4);
    7474      size += 4;
    7575    }
    7676    else
    7777    {
    78       out.write(start_code_prefix+1, 3);
     78      out.write(reinterpret_cast<const TChar*>(start_code_prefix+1), 3);
    7979      size += 3;
    8080    }
  • branches/SHM-dev/source/Lib/TLibEncoder/NALwrite.cpp

    r1352 r1442  
    4545//! \{
    4646
    47 static const Char emulation_prevention_three_byte[] = {3};
     47static const UChar emulation_prevention_three_byte[] = {3};
    4848
    4949Void writeNalUnitHeader(ostream& out, OutputNALUnit& nalu)       // nal_unit_header()
     
    5656  bsNALUHeader.write(nalu.m_temporalId+1, 3); // nuh_temporal_id_plus1
    5757
    58   out.write(bsNALUHeader.getByteStream(), bsNALUHeader.getByteStreamLength());
     58  out.write(reinterpret_cast<const TChar*>(bsNALUHeader.getByteStream()), bsNALUHeader.getByteStreamLength());
    5959}
    6060/**
     
    120120    outputBuffer[outputAmount++]=emulation_prevention_three_byte[0];
    121121  }
    122   out.write((Char*)&(*outputBuffer.begin()), outputAmount);
     122  out.write(reinterpret_cast<const TChar*>(&(*outputBuffer.begin())), outputAmount);
    123123}
    124124
  • branches/SHM-dev/source/Lib/TLibEncoder/SEIwrite.cpp

    r1434 r1442  
    306306Void SEIWriter::xWriteSEIDecodedPictureHash(const SEIDecodedPictureHash& sei)
    307307{
    308   const Char *traceString="\0";
     308  const TChar *traceString="\0";
    309309  switch (sei.method)
    310310  {
  • branches/SHM-dev/source/Lib/TLibEncoder/SyntaxElementWriter.cpp

    r1352 r1442  
    4444#if ENC_DEC_TRACE
    4545
    46 Void  SyntaxElementWriter::xWriteCodeTr (UInt value, UInt  length, const Char *pSymbolName)
     46Void  SyntaxElementWriter::xWriteCodeTr (UInt value, UInt  length, const TChar *pSymbolName)
    4747{
    4848  xWriteCode (value,length);
     
    6161}
    6262
    63 Void  SyntaxElementWriter::xWriteUvlcTr (UInt value, const Char *pSymbolName)
     63Void  SyntaxElementWriter::xWriteUvlcTr (UInt value, const TChar *pSymbolName)
    6464{
    6565  xWriteUvlc (value);
     
    7171}
    7272
    73 Void  SyntaxElementWriter::xWriteSvlcTr (Int value, const Char *pSymbolName)
     73Void  SyntaxElementWriter::xWriteSvlcTr (Int value, const TChar *pSymbolName)
    7474{
    7575  xWriteSvlc(value);
     
    8181}
    8282
    83 Void  SyntaxElementWriter::xWriteFlagTr(UInt value, const Char *pSymbolName)
     83Void  SyntaxElementWriter::xWriteFlagTr(UInt value, const TChar *pSymbolName)
    8484{
    8585  xWriteFlag(value);
  • branches/SHM-dev/source/Lib/TLibEncoder/SyntaxElementWriter.h

    r1352 r1442  
    9292#endif
    9393#if ENC_DEC_TRACE
    94   Void  xWriteCodeTr          ( UInt value, UInt  length, const Char *pSymbolName);
    95   Void  xWriteUvlcTr          ( UInt value,               const Char *pSymbolName);
    96   Void  xWriteSvlcTr          ( Int  value,               const Char *pSymbolName);
    97   Void  xWriteFlagTr          ( UInt value,               const Char *pSymbolName);
     94  Void  xWriteCodeTr          ( UInt value, UInt  length, const TChar *pSymbolName);
     95  Void  xWriteUvlcTr          ( UInt value,               const TChar *pSymbolName);
     96  Void  xWriteSvlcTr          ( Int  value,               const TChar *pSymbolName);
     97  Void  xWriteFlagTr          ( UInt value,               const TChar *pSymbolName);
    9898#if Q0096_OVERLAY_SEI
    9999  Void  xWriteStringTr        ( UChar* value, UInt length, const Char *pSymbolName);
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncAnalyze.h

    r1333 r1442  
    137137
    138138#if SVC_EXTENSION
    139   Void    printOut ( Char cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths, UInt layer = 0 )
    140 #else
    141   Void    printOut ( Char cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths )
     139  Void    printOut ( TChar cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths, UInt layer = 0 )
     140#else
     141  Void    printOut ( TChar cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths )
    142142#endif
    143143  {
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncBinCoderCABAC.cpp

    r1335 r1442  
    236236  if (g_debugCounter >= debugCabacBinTargetLine)
    237237  {
    238     Char breakPointThis;
     238    UChar breakPointThis;
    239239    breakPointThis = 7;
    240240  }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncBinCoderCABACCounter.cpp

    r1335 r1442  
    9090  if (g_debugCounter >= debugEncoderSearchBinTargetLine)
    9191  {
    92     Char breakPointThis;
     92    UChar breakPointThis;
    9393    breakPointThis = 7;
    9494  }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1434 r1442  
    269269  {
    270270#if ENC_DEC_TRACE || RExt__DECODER_DEBUG_BIT_STATISTICS
    271     static const char *syntaxStrings[]={ "pps_range_extension_flag",
    272                                          "pps_multilayer_extension_flag",
    273                                          "pps_extension_6bits[0]",
    274                                          "pps_extension_6bits[1]",
    275                                          "pps_extension_6bits[2]",
    276                                          "pps_extension_6bits[3]",
    277                                          "pps_extension_6bits[4]",
    278                                          "pps_extension_6bits[5]" };
     271    static const TChar *syntaxStrings[]={ "pps_range_extension_flag",
     272                                          "pps_multilayer_extension_flag",
     273                                          "pps_extension_6bits[0]",
     274                                          "pps_extension_6bits[1]",
     275                                          "pps_extension_6bits[2]",
     276                                          "pps_extension_6bits[3]",
     277                                          "pps_extension_6bits[4]",
     278                                          "pps_extension_6bits[5]" };
    279279#endif
    280280
     
    748748  {
    749749#if ENC_DEC_TRACE || RExt__DECODER_DEBUG_BIT_STATISTICS
    750     static const char *syntaxStrings[]={ "sps_range_extension_flag",
    751                                          "sps_multilayer_extension_flag",
    752                                          "sps_extension_6bits[0]",
    753                                          "sps_extension_6bits[1]",
    754                                          "sps_extension_6bits[2]",
    755                                          "sps_extension_6bits[3]",
    756                                          "sps_extension_6bits[4]",
    757                                          "sps_extension_6bits[5]" };
     750    static const TChar *syntaxStrings[]={ "sps_range_extension_flag",
     751                                          "sps_multilayer_extension_flag",
     752                                          "sps_extension_6bits[0]",
     753                                          "sps_extension_6bits[1]",
     754                                          "sps_extension_6bits[2]",
     755                                          "sps_extension_6bits[3]",
     756                                          "sps_extension_6bits[4]",
     757                                          "sps_extension_6bits[5]" };
    758758#endif
    759759
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h

    r1434 r1442  
    5757  Bool m_refPic;
    5858  Int m_numRefPicsActive;
    59   Char m_sliceType;
     59  SChar m_sliceType;
    6060  Int m_numRefPics;
    6161  Int m_referencePics[MAX_NUM_REF_PICS];
     
    328328  UInt      m_log2ParallelMergeLevelMinus2;       ///< Parallel merge estimation region
    329329  UInt      m_maxNumMergeCand;                    ///< Maximum number of merge candidates
    330   ScalingListMode m_useScalingListId;            ///< Using quantization matrix i.e. 0=off, 1=default, 2=file.
    331   Char*     m_scalingListFile;          ///< quantization matrix file name
     330  ScalingListMode m_useScalingListId;             ///< Using quantization matrix i.e. 0=off, 1=default, 2=file.
     331  std::string m_scalingListFileName;              ///< quantization matrix file name
    332332  Int       m_TMVPModeId;
    333333  Bool      m_signHideFlag;
     
    484484#endif //SVC_EXTENSION
    485485#if Q0074_COLOUR_REMAPPING_SEI
    486   Char*                               m_colourRemapSEIFileRoot;          ///< SEI Colour Remapping File (initialized from external file)
     486  string                              m_colourRemapSEIFileName;          ///< SEI Colour Remapping File (initialized from external file)
    487487#endif
    488488
     
    492492  , m_tileRowHeight()
    493493#if Q0074_COLOUR_REMAPPING_SEI
    494   , m_colourRemapSEIFileRoot(NULL)
     494  , m_colourRemapSEIFileName()
    495495#endif
    496496  {
     
    919919  Void         setUseScalingListId    ( ScalingListMode u )          { m_useScalingListId       = u;   }
    920920  ScalingListMode getUseScalingListId    ()                          { return m_useScalingListId;      }
    921   Void         setScalingListFile     ( Char*  pch )                 { m_scalingListFile     = pch; }
    922   Char*        getScalingListFile     ()                             { return m_scalingListFile;    }
     921  Void         setScalingListFileName       ( const std::string &s ) { m_scalingListFileName = s;      }
     922  const std::string& getScalingListFileName () const                 { return m_scalingListFileName;   }
    923923  Void         setTMVPModeId ( Int  u )                              { m_TMVPModeId = u;    }
    924924  Int          getTMVPModeId ()                                      { return m_TMVPModeId; }
     
    11001100#endif
    11011101#if Q0074_COLOUR_REMAPPING_SEI
    1102   Void  xSetCRISEIFileRoot( Char* pch )                       { m_colourRemapSEIFileRoot = pch; }
    1103   Char* getCRISEIFileRoot()                                  { return m_colourRemapSEIFileRoot; }
     1102  Void  xSetCRISEIFileRoot( std::string pch )                { m_colourRemapSEIFileName = pch; }
     1103  std::string& getCRISEIFileRoot()                           { return m_colourRemapSEIFileName; }
    11041104#endif
    11051105#if SVC_EXTENSION
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1435 r1442  
    814814  return 1;
    815815}
    816 Bool confirmParameter(Bool bflag, const Char* message);
     816
     817Bool confirmParameter(Bool bflag, const TChar* message);
    817818// ====================================================================================================================
    818819// Private member functions
     
    939940    string  colourRemapSEIFileWithPoc(m_pcCfg->getCRISEIFileRoot());
    940941    colourRemapSEIFileWithPoc.append(suffix);
    941     xSetCRISEIFile( const_cast<Char*>(colourRemapSEIFileWithPoc.c_str()) );
     942    xSetCRISEIFile( colourRemapSEIFileWithPoc );
    942943 
    943944    Int ret = xReadingCRIparameters();
    944945
    945     if(ret != -1 && m_pcCfg->getCRISEIFileRoot())
     946    if(ret != -1 && !m_pcCfg->getCRISEIFileRoot().empty())
    946947    {
    947948      // check validity of input parameters
     
    12691270      if (cabacZeroWordPaddingEnabled)
    12701271      {
    1271         std::vector<Char> zeroBytesPadding(numberOfAdditionalCabacZeroBytes, Char(0));
     1272        std::vector<UChar> zeroBytesPadding(numberOfAdditionalCabacZeroBytes, UChar(0));
    12721273        for(std::size_t i=0; i<numberOfAdditionalCabacZeroWords; i++)
    12731274        {
    12741275          zeroBytesPadding[i*3+2]=3;  // 00 00 03
    12751276        }
    1276         nalUnitData.write(&(zeroBytesPadding[0]), numberOfAdditionalCabacZeroBytes);
     1277        nalUnitData.write(reinterpret_cast<const TChar*>(&(zeroBytesPadding[0])), numberOfAdditionalCabacZeroBytes);
    12771278        printf("Adding %d bytes of padding\n", UInt(numberOfAdditionalCabacZeroWords*3));
    12781279      }
     
    32953296  }
    32963297
    3297   Char c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B');
     3298  TChar c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B');
    32983299  if (!pcSlice->isReferenced())
    32993300  {
     
    45714572
    45724573#if Q0074_COLOUR_REMAPPING_SEI
    4573 Bool confirmParameter(Bool bflag, const Char* message)
     4574Bool confirmParameter(Bool bflag, const TChar* message)
    45744575{
    45754576  if (!bflag)
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h

    r1433 r1442  
    152152  TComPicYuv*             m_pColorMappedPic;
    153153
    154   Char                    m_cgsFilterLength;
    155   Char                    m_cgsFilterPhases;
     154  UChar                   m_cgsFilterLength;
     155  UChar                   m_cgsFilterPhases;
    156156  Int                     m_iN;
    157157  Int                   **m_temp;
     
    276276#if Q0074_COLOUR_REMAPPING_SEI
    277277  TComSEIColourRemappingInfo* xGetSEIColourRemappingInfo()  { return &m_seiColourRemappingInfo; }
    278   Void xSetCRISEIFile( Char* pch )                          { m_seiColourRemappingInfo.m_colourRemapSEIFile = pch; }
     278  Void xSetCRISEIFile( std::string pch )                    { m_seiColourRemappingInfo.m_colourRemapSEIFile = pch; }
    279279
    280280  Void xFreeColourCRI();
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSampleAdaptiveOffset.cpp

    r1344 r1442  
    917917      m_signLineBuf1 = NULL;
    918918    }
    919     m_signLineBuf1 = new Char[m_lineBufWidth+1];
     919    m_signLineBuf1 = new SChar[m_lineBufWidth+1];
    920920
    921921    if (m_signLineBuf2)
     
    924924      m_signLineBuf2 = NULL;
    925925    }
    926     m_signLineBuf2 = new Char[m_lineBufWidth+1];
     926    m_signLineBuf2 = new SChar[m_lineBufWidth+1];
    927927  }
    928928
    929929  Int x,y, startX, startY, endX, endY, edgeType, firstLineStartX, firstLineEndX;
    930   Char signLeft, signRight, signDown;
     930  SChar signLeft, signRight, signDown;
    931931  Int64 *diff, *count;
    932932  Pel *srcLine, *orgLine;
     
    958958        for (y=0; y<endY; y++)
    959959        {
    960           signLeft = (Char)sgn(srcLine[startX] - srcLine[startX-1]);
     960          signLeft = (SChar)sgn(srcLine[startX] - srcLine[startX-1]);
    961961          for (x=startX; x<endX; x++)
    962962          {
    963             signRight =  (Char)sgn(srcLine[x] - srcLine[x+1]);
     963            signRight =  (SChar)sgn(srcLine[x] - srcLine[x+1]);
    964964            edgeType  =  signRight + signLeft;
    965965            signLeft  = -signRight;
     
    980980            for(y=0; y<skipLinesB[typeIdx]; y++)
    981981            {
    982               signLeft = (Char)sgn(srcLine[startX] - srcLine[startX-1]);
     982              signLeft = (SChar)sgn(srcLine[startX] - srcLine[startX-1]);
    983983              for (x=startX; x<endX; x++)
    984984              {
    985                 signRight =  (Char)sgn(srcLine[x] - srcLine[x+1]);
     985                signRight =  (SChar)sgn(srcLine[x] - srcLine[x+1]);
    986986                edgeType  =  signRight + signLeft;
    987987                signLeft  = -signRight;
     
    10011001        diff +=2;
    10021002        count+=2;
    1003         Char *signUpLine = m_signLineBuf1;
     1003        SChar *signUpLine = m_signLineBuf1;
    10041004
    10051005        startX = (!isCalculatePreDeblockSamples) ? 0
     
    10201020        for (x=startX; x<endX; x++)
    10211021        {
    1022           signUpLine[x] = (Char)sgn(srcLine[x] - srcLineAbove[x]);
     1022          signUpLine[x] = (SChar)sgn(srcLine[x] - srcLineAbove[x]);
    10231023        }
    10241024
     
    10301030          for (x=startX; x<endX; x++)
    10311031          {
    1032             signDown  = (Char)sgn(srcLine[x] - srcLineBelow[x]);
     1032            signDown  = (SChar)sgn(srcLine[x] - srcLineBelow[x]);
    10331033            edgeType  = signDown + signUpLine[x];
    10341034            signUpLine[x]= -signDown;
     
    10701070        diff +=2;
    10711071        count+=2;
    1072         Char *signUpLine, *signDownLine, *signTmpLine;
     1072        SChar *signUpLine, *signDownLine, *signTmpLine;
    10731073
    10741074        signUpLine  = m_signLineBuf1;
     
    10881088        for (x=startX; x<endX+1; x++)
    10891089        {
    1090           signUpLine[x] = (Char)sgn(srcLineBelow[x] - srcLine[x-1]);
     1090          signUpLine[x] = (SChar)sgn(srcLineBelow[x] - srcLine[x-1]);
    10911091        }
    10921092
     
    11121112          for (x=startX; x<endX; x++)
    11131113          {
    1114             signDown = (Char)sgn(srcLine[x] - srcLineBelow[x+1]);
     1114            signDown = (SChar)sgn(srcLine[x] - srcLineBelow[x+1]);
    11151115            edgeType = signDown + signUpLine[x];
    11161116            diff [edgeType] += (orgLine[x] - srcLine[x]);
     
    11191119            signDownLine[x+1] = -signDown;
    11201120          }
    1121           signDownLine[startX] = (Char)sgn(srcLineBelow[startX] - srcLine[startX-1]);
     1121          signDownLine[startX] = (SChar)sgn(srcLineBelow[startX] - srcLine[startX-1]);
    11221122
    11231123          signTmpLine  = signUpLine;
     
    11571157        diff +=2;
    11581158        count+=2;
    1159         Char *signUpLine = m_signLineBuf1+1;
     1159        SChar *signUpLine = m_signLineBuf1+1;
    11601160
    11611161        startX = (!isCalculatePreDeblockSamples) ? (isLeftAvail  ? 0 : 1)
     
    11711171        for (x=startX-1; x<endX; x++)
    11721172        {
    1173           signUpLine[x] = (Char)sgn(srcLineBelow[x] - srcLine[x+1]);
     1173          signUpLine[x] = (SChar)sgn(srcLineBelow[x] - srcLine[x+1]);
    11741174        }
    11751175
     
    12001200          for(x=startX; x<endX; x++)
    12011201          {
    1202             signDown = (Char)sgn(srcLine[x] - srcLineBelow[x-1]);
     1202            signDown = (SChar)sgn(srcLine[x] - srcLineBelow[x-1]);
    12031203            edgeType = signDown + signUpLine[x];
    12041204
     
    12081208            signUpLine[x-1] = -signDown;
    12091209          }
    1210           signUpLine[endX-1] = (Char)sgn(srcLineBelow[endX-1] - srcLine[endX]);
     1210          signUpLine[endX-1] = (SChar)sgn(srcLineBelow[endX-1] - srcLine[endX]);
    12111211          srcLine  += srcStride;
    12121212          orgLine  += orgStride;
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.cpp

    r1424 r1442  
    305305    }
    306306
    307     m_phQTTempCrossComponentPredictionAlpha[ch]    = new Char  [uiNumPartitions];
     307    m_phQTTempCrossComponentPredictionAlpha[ch]    = new SChar  [uiNumPartitions];
    308308    m_pSharedPredTransformSkip[ch]                 = new Pel   [MAX_CU_SIZE*MAX_CU_SIZE];
    309309    m_pcQTTempTUCoeff[ch]                          = new TCoeff[MAX_CU_SIZE*MAX_CU_SIZE];
     
    18841884}
    18851885
    1886 Char
     1886SChar
    18871887TEncSearch::xCalcCrossComponentPredictionAlpha(       TComTU &rTu,
    18881888                                                const ComponentID compID,
     
    19011901  const Int diffBitDepth = pCU->getSlice()->getSPS()->getDifferentialLumaChromaBitDepth();
    19021902
    1903   Char alpha = 0;
     1903  SChar alpha = 0;
    19041904  Int SSxy  = 0;
    19051905  Int SSxx  = 0;
     
    19211921  {
    19221922    Double dAlpha = SSxy / Double( SSxx );
    1923     alpha = Char(Clip3<Int>(-16, 16, (Int)(dAlpha * 16)));
    1924 
    1925     static const Char alphaQuant[17] = {0, 1, 1, 2, 2, 2, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 8};
     1923    alpha = SChar(Clip3<Int>(-16, 16, (Int)(dAlpha * 16)));
     1924
     1925    static const SChar alphaQuant[17] = {0, 1, 1, 2, 2, 2, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 8};
    19261926
    19271927    alpha = (alpha < 0) ? -alphaQuant[Int(-alpha)] : alphaQuant[Int(alpha)];
     
    20022002        Double     singleCostTmp             = 0;
    20032003        UInt       singleCbfCTmp             = 0;
    2004         Char       bestCrossCPredictionAlpha = 0;
     2004        SChar      bestCrossCPredictionAlpha = 0;
    20052005        Int        bestTransformSkipMode     = 0;
    20062006
     
    27012701              ::memcpy( m_puhQTTempCbf[compID], pcCU->getCbf( compID )+uiPartOffset, uiQPartNum * sizeof( UChar ) );
    27022702              ::memcpy( m_puhQTTempTransformSkipFlag[compID], pcCU->getTransformSkip( compID )+uiPartOffset, uiQPartNum * sizeof( UChar ) );
    2703               ::memcpy( m_phQTTempCrossComponentPredictionAlpha[compID], pcCU->getCrossComponentPredictionAlpha(compID)+uiPartOffset, uiQPartNum * sizeof( Char ) );
     2703              ::memcpy( m_phQTTempCrossComponentPredictionAlpha[compID], pcCU->getCrossComponentPredictionAlpha(compID)+uiPartOffset, uiQPartNum * sizeof( SChar ) );
    27042704            }
    27052705          }
     
    27142714          ::memcpy( pcCU->getCbf( compID )+uiPartOffset, m_puhQTTempCbf[compID], uiQPartNum * sizeof( UChar ) );
    27152715          ::memcpy( pcCU->getTransformSkip( compID )+uiPartOffset, m_puhQTTempTransformSkipFlag[compID], uiQPartNum * sizeof( UChar ) );
    2716           ::memcpy( pcCU->getCrossComponentPredictionAlpha(compID)+uiPartOffset, m_phQTTempCrossComponentPredictionAlpha[compID], uiQPartNum * sizeof( Char ) );
     2716          ::memcpy( pcCU->getCrossComponentPredictionAlpha(compID)+uiPartOffset, m_phQTTempCrossComponentPredictionAlpha[compID], uiQPartNum * sizeof( SChar ) );
    27172717        }
    27182718      }
     
    33253325
    33263326        Bool bChanged = false;
    3327        
     3327
    33283328#if ENCODER_FAST_MODE
    33293329        Bool     testIter = true;
     
    34143414        } // for loop-iRefIdxTemp
    34153415#endif
    3416        
     3416 
    34173417        if ( !bChanged )
    34183418        {
     
    39633963  }
    39643964#endif
    3965  
     3965
    39663966  m_pcRdCost->getMotionCost( true, 0, pcCU->getCUTransquantBypass(uiPartAddr) );
    39673967  m_pcRdCost->setCostScale ( 1 );
     
    47394739      const ComponentID component = ComponentID(comp);
    47404740      ::memset( pcCU->getCbf( component ) , 0, uiQPartNum * sizeof(UChar) );
    4741       ::memset( pcCU->getCrossComponentPredictionAlpha(component), 0, ( uiQPartNum * sizeof(Char) ) );
     4741      ::memset( pcCU->getCrossComponentPredictionAlpha(component), 0, ( uiQPartNum * sizeof(SChar) ) );
    47424742    }
    47434743    static const UInt useTS[MAX_NUM_COMPONENT]={0,0,0};
     
    48474847  //  Stores the best explicit RDPCM mode for a TU encoded without split
    48484848  UInt       bestExplicitRdpcmModeUnSplit[MAX_NUM_COMPONENT][2/*0 = top (or whole TU for non-4:2:2) sub-TU, 1 = bottom sub-TU*/] = {{3,3}, {3,3}, {3,3}};
    4849   Char       bestCrossCPredictionAlpha   [MAX_NUM_COMPONENT][2/*0 = top (or whole TU for non-4:2:2) sub-TU, 1 = bottom sub-TU*/] = {{0,0},{0,0},{0,0}};
     4849  SChar      bestCrossCPredictionAlpha   [MAX_NUM_COMPONENT][2/*0 = top (or whole TU for non-4:2:2) sub-TU, 1 = bottom sub-TU*/] = {{0,0},{0,0},{0,0}};
    48504850
    48514851  m_pcRDGoOnSbacCoder->store( m_pppcRDSbacCoder[ uiDepth ][ CI_QT_TRAFO_ROOT ] );
     
    49184918                                                         && (pcCU->getCbf(subTUAbsPartIdx, COMPONENT_Y, uiTrMode) != 0);
    49194919
    4920           Char preCalcAlpha = 0;
     4920          SChar preCalcAlpha = 0;
    49214921          const Pel *pLumaResi = m_pcQTTempTComYuv[uiQTTempAccessLayer].getAddrPix( COMPONENT_Y, rTu.getRect( COMPONENT_Y ).x0, rTu.getRect( COMPONENT_Y ).y0 );
    49224922
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.h

    r1407 r1442  
    8181  TComYuv         m_tmpYuvPred; // To be used in xGetInterPredictionError() to avoid constant memory allocation/deallocation
    8282
    83   Char*           m_phQTTempCrossComponentPredictionAlpha[MAX_NUM_COMPONENT];
     83  SChar*          m_phQTTempCrossComponentPredictionAlpha[MAX_NUM_COMPONENT];
    8484  Pel*            m_pSharedPredTransformSkip[MAX_NUM_COMPONENT];
    8585  TCoeff*         m_pcQTTempTUCoeff[MAX_NUM_COMPONENT];
     
    297297                                               const Int     strideBest );
    298298
    299   Char xCalcCrossComponentPredictionAlpha    (       TComTU &rTu,
     299  SChar xCalcCrossComponentPredictionAlpha   (       TComTU &rTu,
    300300                                               const ComponentID compID,
    301301                                               const Pel*        piResiL,
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1433 r1442  
    350350#endif
    351351    m_cSPS.getScalingList().setDefaultScalingList ();
    352     if(m_cSPS.getScalingList().xParseScalingList(getScalingListFile()))
     352    if(m_cSPS.getScalingList().xParseScalingList(getScalingListFileName()))
    353353    {
    354354      Bool bParsedScalingList=false; // Use of boolean so that assertion outputs useful string
  • branches/SHM-dev/source/Lib/TLibVideoIO/TVideoIOYuv.cpp

    r1427 r1442  
    118118 * \param internalBitDepth bit-depth array to scale image data to/from when reading/writing.
    119119 */
    120 Void TVideoIOYuv::open( Char* pchFile, Bool bWriteMode, const Int fileBitDepth[MAX_NUM_CHANNEL_TYPE], const Int MSBExtendedBitDepth[MAX_NUM_CHANNEL_TYPE], const Int internalBitDepth[MAX_NUM_CHANNEL_TYPE] )
     120Void TVideoIOYuv::open( const std::string &fileName, Bool bWriteMode, const Int fileBitDepth[MAX_NUM_CHANNEL_TYPE], const Int MSBExtendedBitDepth[MAX_NUM_CHANNEL_TYPE], const Int internalBitDepth[MAX_NUM_CHANNEL_TYPE] )
    121121{
    122122  //NOTE: files cannot have bit depth greater than 16
     
    143143  if ( bWriteMode )
    144144  {
    145     m_cHandle.open( pchFile, ios::binary | ios::out );
     145    m_cHandle.open( fileName.c_str(), ios::binary | ios::out );
    146146
    147147    if( m_cHandle.fail() )
     
    153153  else
    154154  {
    155     m_cHandle.open( pchFile, ios::binary | ios::in );
     155    m_cHandle.open( fileName.c_str(), ios::binary | ios::in );
    156156
    157157    if( m_cHandle.fail() )
     
    219219
    220220  /* fall back to consuming the input */
    221   Char buf[512];
     221  TChar buf[512];
    222222  const streamoff offset_mod_bufsize = offset % sizeof(buf);
    223223  for (streamoff i = 0; i < offset - offset_mod_bufsize; i += sizeof(buf))
     
    275275
    276276  const UInt stride_file      = (width444 * (is16bit ? 2 : 1)) >> csx_file;
    277 
    278   UChar  *buf   = new UChar[stride_file];
     277  std::vector<UChar> bufVec(stride_file);
     278  UChar *buf=&(bufVec[0]);
    279279
    280280  if (compID!=COMPONENT_Y && (fileFormat==CHROMA_400 || destFormat==CHROMA_400))
     
    299299      if (fd.eof() || fd.fail() )
    300300      {
    301         delete[] buf;
    302301        return false;
    303302      }
     
    313312      {
    314313        // read a new line
    315         fd.read(reinterpret_cast<Char*>(buf), stride_file);
     314        fd.read(reinterpret_cast<TChar*>(buf), stride_file);
    316315        if (fd.eof() || fd.fail() )
    317316        {
    318           delete[] buf;
    319317          return false;
    320318        }
     
    383381    }
    384382  }
    385   delete[] buf;
    386383  return true;
    387384}
     
    421418  const UInt height_file      = height444>>csy_file;
    422419
    423   UChar  *buf   = new UChar[stride_file];
     420  std::vector<UChar> bufVec(stride_file);
     421  UChar *buf=&(bufVec[0]);
    424422
    425423  if (compID!=COMPONENT_Y && (fileFormat==CHROMA_400 || srcFormat==CHROMA_400))
     
    449447        }
    450448
    451         fd.write(reinterpret_cast<Char*>(buf), stride_file);
     449        fd.write(reinterpret_cast<const TChar*>(buf), stride_file);
    452450        if (fd.eof() || fd.fail() )
    453451        {
    454           delete[] buf;
    455452          return false;
    456453        }
     
    508505        }
    509506
    510         fd.write(reinterpret_cast<Char*>(buf), stride_file);
     507        fd.write(reinterpret_cast<const TChar*>(buf), stride_file);
    511508        if (fd.eof() || fd.fail() )
    512509        {
    513           delete[] buf;
    514510          return false;
    515511        }
     
    523519    }
    524520  }
    525   delete[] buf;
    526521  return true;
    527522}
     
    546541  const UInt height_file      = height444>>csy_file;
    547542
    548   UChar  *buf   = new UChar[stride_file * 2];
     543  std::vector<UChar> bufVec(stride_file * 2);
     544  UChar *buf=&(bufVec[0]);
    549545
    550546  if (compID!=COMPONENT_Y && (fileFormat==CHROMA_400 || srcFormat==CHROMA_400))
     
    579575        }
    580576
    581         fd.write(reinterpret_cast<Char*>(buf), (stride_file * 2));
     577        fd.write(reinterpret_cast<const TChar*>(buf), (stride_file * 2));
    582578        if (fd.eof() || fd.fail() )
    583579        {
    584           delete[] buf;
    585580          return false;
    586581        }
     
    644639        }
    645640
    646         fd.write(reinterpret_cast<Char*>(buf), (stride_file * 2));
     641        fd.write(reinterpret_cast<const TChar*>(buf), (stride_file * 2));
    647642        if (fd.eof() || fd.fail() )
    648643        {
    649           delete[] buf;
    650644          return false;
    651645        }
     
    660654    }
    661655  }
    662   delete[] buf;
    663656  return true;
    664657}
  • branches/SHM-dev/source/Lib/TLibVideoIO/TVideoIOYuv.h

    r1323 r1442  
    6464  virtual ~TVideoIOYuv()  {}
    6565
    66   Void  open  ( Char* pchFile, Bool bWriteMode, const Int fileBitDepth[MAX_NUM_CHANNEL_TYPE], const Int MSBExtendedBitDepth[MAX_NUM_CHANNEL_TYPE], const Int internalBitDepth[MAX_NUM_CHANNEL_TYPE] ); ///< open or create file
     66  Void  open  ( const std::string &fileName, Bool bWriteMode, const Int fileBitDepth[MAX_NUM_CHANNEL_TYPE], const Int MSBExtendedBitDepth[MAX_NUM_CHANNEL_TYPE], const Int internalBitDepth[MAX_NUM_CHANNEL_TYPE] ); ///< open or create file
    6767  Void  close ();                                           ///< close file
    6868
Note: See TracChangeset for help on using the changeset viewer.