Changeset 1442 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 13 Aug 2015, 19:11:53 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/AnnexBwrite.h
r1259 r1442 60 60 UInt size = 0; /* size of annexB unit in bytes */ 61 61 62 static const Char start_code_prefix[] = {0,0,0,1};62 static const UChar start_code_prefix[] = {0,0,0,1}; 63 63 if (it == au.begin() || nalu.m_nalUnitType == NAL_UNIT_VPS || nalu.m_nalUnitType == NAL_UNIT_SPS || nalu.m_nalUnitType == NAL_UNIT_PPS) 64 64 { … … 71 71 * 7.4.1.2.3. 72 72 */ 73 out.write( start_code_prefix, 4);73 out.write(reinterpret_cast<const TChar*>(start_code_prefix), 4); 74 74 size += 4; 75 75 } 76 76 else 77 77 { 78 out.write( start_code_prefix+1, 3);78 out.write(reinterpret_cast<const TChar*>(start_code_prefix+1), 3); 79 79 size += 3; 80 80 } -
branches/SHM-dev/source/Lib/TLibEncoder/NALwrite.cpp
r1352 r1442 45 45 //! \{ 46 46 47 static const Char emulation_prevention_three_byte[] = {3};47 static const UChar emulation_prevention_three_byte[] = {3}; 48 48 49 49 Void writeNalUnitHeader(ostream& out, OutputNALUnit& nalu) // nal_unit_header() … … 56 56 bsNALUHeader.write(nalu.m_temporalId+1, 3); // nuh_temporal_id_plus1 57 57 58 out.write( bsNALUHeader.getByteStream(), bsNALUHeader.getByteStreamLength());58 out.write(reinterpret_cast<const TChar*>(bsNALUHeader.getByteStream()), bsNALUHeader.getByteStreamLength()); 59 59 } 60 60 /** … … 120 120 outputBuffer[outputAmount++]=emulation_prevention_three_byte[0]; 121 121 } 122 out.write( (Char*)&(*outputBuffer.begin()), outputAmount);122 out.write(reinterpret_cast<const TChar*>(&(*outputBuffer.begin())), outputAmount); 123 123 } 124 124 -
branches/SHM-dev/source/Lib/TLibEncoder/SEIwrite.cpp
r1434 r1442 306 306 Void SEIWriter::xWriteSEIDecodedPictureHash(const SEIDecodedPictureHash& sei) 307 307 { 308 const Char *traceString="\0";308 const TChar *traceString="\0"; 309 309 switch (sei.method) 310 310 { -
branches/SHM-dev/source/Lib/TLibEncoder/SyntaxElementWriter.cpp
r1352 r1442 44 44 #if ENC_DEC_TRACE 45 45 46 Void SyntaxElementWriter::xWriteCodeTr (UInt value, UInt length, const Char *pSymbolName)46 Void SyntaxElementWriter::xWriteCodeTr (UInt value, UInt length, const TChar *pSymbolName) 47 47 { 48 48 xWriteCode (value,length); … … 61 61 } 62 62 63 Void SyntaxElementWriter::xWriteUvlcTr (UInt value, const Char *pSymbolName)63 Void SyntaxElementWriter::xWriteUvlcTr (UInt value, const TChar *pSymbolName) 64 64 { 65 65 xWriteUvlc (value); … … 71 71 } 72 72 73 Void SyntaxElementWriter::xWriteSvlcTr (Int value, const Char *pSymbolName)73 Void SyntaxElementWriter::xWriteSvlcTr (Int value, const TChar *pSymbolName) 74 74 { 75 75 xWriteSvlc(value); … … 81 81 } 82 82 83 Void SyntaxElementWriter::xWriteFlagTr(UInt value, const Char *pSymbolName)83 Void SyntaxElementWriter::xWriteFlagTr(UInt value, const TChar *pSymbolName) 84 84 { 85 85 xWriteFlag(value); -
branches/SHM-dev/source/Lib/TLibEncoder/SyntaxElementWriter.h
r1352 r1442 92 92 #endif 93 93 #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); 98 98 #if Q0096_OVERLAY_SEI 99 99 Void xWriteStringTr ( UChar* value, UInt length, const Char *pSymbolName); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncAnalyze.h
r1333 r1442 137 137 138 138 #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 ) 142 142 #endif 143 143 { -
branches/SHM-dev/source/Lib/TLibEncoder/TEncBinCoderCABAC.cpp
r1335 r1442 236 236 if (g_debugCounter >= debugCabacBinTargetLine) 237 237 { 238 Char breakPointThis;238 UChar breakPointThis; 239 239 breakPointThis = 7; 240 240 } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncBinCoderCABACCounter.cpp
r1335 r1442 90 90 if (g_debugCounter >= debugEncoderSearchBinTargetLine) 91 91 { 92 Char breakPointThis;92 UChar breakPointThis; 93 93 breakPointThis = 7; 94 94 } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1434 r1442 269 269 { 270 270 #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]" }; 279 279 #endif 280 280 … … 748 748 { 749 749 #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]" }; 758 758 #endif 759 759 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1434 r1442 57 57 Bool m_refPic; 58 58 Int m_numRefPicsActive; 59 Char m_sliceType;59 SChar m_sliceType; 60 60 Int m_numRefPics; 61 61 Int m_referencePics[MAX_NUM_REF_PICS]; … … 328 328 UInt m_log2ParallelMergeLevelMinus2; ///< Parallel merge estimation region 329 329 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 name330 ScalingListMode m_useScalingListId; ///< Using quantization matrix i.e. 0=off, 1=default, 2=file. 331 std::string m_scalingListFileName; ///< quantization matrix file name 332 332 Int m_TMVPModeId; 333 333 Bool m_signHideFlag; … … 484 484 #endif //SVC_EXTENSION 485 485 #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) 487 487 #endif 488 488 … … 492 492 , m_tileRowHeight() 493 493 #if Q0074_COLOUR_REMAPPING_SEI 494 , m_colourRemapSEIFile Root(NULL)494 , m_colourRemapSEIFileName() 495 495 #endif 496 496 { … … 919 919 Void setUseScalingListId ( ScalingListMode u ) { m_useScalingListId = u; } 920 920 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; } 923 923 Void setTMVPModeId ( Int u ) { m_TMVPModeId = u; } 924 924 Int getTMVPModeId () { return m_TMVPModeId; } … … 1100 1100 #endif 1101 1101 #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; } 1104 1104 #endif 1105 1105 #if SVC_EXTENSION -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1435 r1442 814 814 return 1; 815 815 } 816 Bool confirmParameter(Bool bflag, const Char* message); 816 817 Bool confirmParameter(Bool bflag, const TChar* message); 817 818 // ==================================================================================================================== 818 819 // Private member functions … … 939 940 string colourRemapSEIFileWithPoc(m_pcCfg->getCRISEIFileRoot()); 940 941 colourRemapSEIFileWithPoc.append(suffix); 941 xSetCRISEIFile( co nst_cast<Char*>(colourRemapSEIFileWithPoc.c_str()));942 xSetCRISEIFile( colourRemapSEIFileWithPoc ); 942 943 943 944 Int ret = xReadingCRIparameters(); 944 945 945 if(ret != -1 && m_pcCfg->getCRISEIFileRoot())946 if(ret != -1 && !m_pcCfg->getCRISEIFileRoot().empty()) 946 947 { 947 948 // check validity of input parameters … … 1269 1270 if (cabacZeroWordPaddingEnabled) 1270 1271 { 1271 std::vector< Char> zeroBytesPadding(numberOfAdditionalCabacZeroBytes,Char(0));1272 std::vector<UChar> zeroBytesPadding(numberOfAdditionalCabacZeroBytes, UChar(0)); 1272 1273 for(std::size_t i=0; i<numberOfAdditionalCabacZeroWords; i++) 1273 1274 { 1274 1275 zeroBytesPadding[i*3+2]=3; // 00 00 03 1275 1276 } 1276 nalUnitData.write( &(zeroBytesPadding[0]), numberOfAdditionalCabacZeroBytes);1277 nalUnitData.write(reinterpret_cast<const TChar*>(&(zeroBytesPadding[0])), numberOfAdditionalCabacZeroBytes); 1277 1278 printf("Adding %d bytes of padding\n", UInt(numberOfAdditionalCabacZeroWords*3)); 1278 1279 } … … 3295 3296 } 3296 3297 3297 Char c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B');3298 TChar c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B'); 3298 3299 if (!pcSlice->isReferenced()) 3299 3300 { … … 4571 4572 4572 4573 #if Q0074_COLOUR_REMAPPING_SEI 4573 Bool confirmParameter(Bool bflag, const Char* message)4574 Bool confirmParameter(Bool bflag, const TChar* message) 4574 4575 { 4575 4576 if (!bflag) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h
r1433 r1442 152 152 TComPicYuv* m_pColorMappedPic; 153 153 154 Charm_cgsFilterLength;155 Charm_cgsFilterPhases;154 UChar m_cgsFilterLength; 155 UChar m_cgsFilterPhases; 156 156 Int m_iN; 157 157 Int **m_temp; … … 276 276 #if Q0074_COLOUR_REMAPPING_SEI 277 277 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; } 279 279 280 280 Void xFreeColourCRI(); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSampleAdaptiveOffset.cpp
r1344 r1442 917 917 m_signLineBuf1 = NULL; 918 918 } 919 m_signLineBuf1 = new Char[m_lineBufWidth+1];919 m_signLineBuf1 = new SChar[m_lineBufWidth+1]; 920 920 921 921 if (m_signLineBuf2) … … 924 924 m_signLineBuf2 = NULL; 925 925 } 926 m_signLineBuf2 = new Char[m_lineBufWidth+1];926 m_signLineBuf2 = new SChar[m_lineBufWidth+1]; 927 927 } 928 928 929 929 Int x,y, startX, startY, endX, endY, edgeType, firstLineStartX, firstLineEndX; 930 Char signLeft, signRight, signDown;930 SChar signLeft, signRight, signDown; 931 931 Int64 *diff, *count; 932 932 Pel *srcLine, *orgLine; … … 958 958 for (y=0; y<endY; y++) 959 959 { 960 signLeft = ( Char)sgn(srcLine[startX] - srcLine[startX-1]);960 signLeft = (SChar)sgn(srcLine[startX] - srcLine[startX-1]); 961 961 for (x=startX; x<endX; x++) 962 962 { 963 signRight = ( Char)sgn(srcLine[x] - srcLine[x+1]);963 signRight = (SChar)sgn(srcLine[x] - srcLine[x+1]); 964 964 edgeType = signRight + signLeft; 965 965 signLeft = -signRight; … … 980 980 for(y=0; y<skipLinesB[typeIdx]; y++) 981 981 { 982 signLeft = ( Char)sgn(srcLine[startX] - srcLine[startX-1]);982 signLeft = (SChar)sgn(srcLine[startX] - srcLine[startX-1]); 983 983 for (x=startX; x<endX; x++) 984 984 { 985 signRight = ( Char)sgn(srcLine[x] - srcLine[x+1]);985 signRight = (SChar)sgn(srcLine[x] - srcLine[x+1]); 986 986 edgeType = signRight + signLeft; 987 987 signLeft = -signRight; … … 1001 1001 diff +=2; 1002 1002 count+=2; 1003 Char *signUpLine = m_signLineBuf1;1003 SChar *signUpLine = m_signLineBuf1; 1004 1004 1005 1005 startX = (!isCalculatePreDeblockSamples) ? 0 … … 1020 1020 for (x=startX; x<endX; x++) 1021 1021 { 1022 signUpLine[x] = ( Char)sgn(srcLine[x] - srcLineAbove[x]);1022 signUpLine[x] = (SChar)sgn(srcLine[x] - srcLineAbove[x]); 1023 1023 } 1024 1024 … … 1030 1030 for (x=startX; x<endX; x++) 1031 1031 { 1032 signDown = ( Char)sgn(srcLine[x] - srcLineBelow[x]);1032 signDown = (SChar)sgn(srcLine[x] - srcLineBelow[x]); 1033 1033 edgeType = signDown + signUpLine[x]; 1034 1034 signUpLine[x]= -signDown; … … 1070 1070 diff +=2; 1071 1071 count+=2; 1072 Char *signUpLine, *signDownLine, *signTmpLine;1072 SChar *signUpLine, *signDownLine, *signTmpLine; 1073 1073 1074 1074 signUpLine = m_signLineBuf1; … … 1088 1088 for (x=startX; x<endX+1; x++) 1089 1089 { 1090 signUpLine[x] = ( Char)sgn(srcLineBelow[x] - srcLine[x-1]);1090 signUpLine[x] = (SChar)sgn(srcLineBelow[x] - srcLine[x-1]); 1091 1091 } 1092 1092 … … 1112 1112 for (x=startX; x<endX; x++) 1113 1113 { 1114 signDown = ( Char)sgn(srcLine[x] - srcLineBelow[x+1]);1114 signDown = (SChar)sgn(srcLine[x] - srcLineBelow[x+1]); 1115 1115 edgeType = signDown + signUpLine[x]; 1116 1116 diff [edgeType] += (orgLine[x] - srcLine[x]); … … 1119 1119 signDownLine[x+1] = -signDown; 1120 1120 } 1121 signDownLine[startX] = ( Char)sgn(srcLineBelow[startX] - srcLine[startX-1]);1121 signDownLine[startX] = (SChar)sgn(srcLineBelow[startX] - srcLine[startX-1]); 1122 1122 1123 1123 signTmpLine = signUpLine; … … 1157 1157 diff +=2; 1158 1158 count+=2; 1159 Char *signUpLine = m_signLineBuf1+1;1159 SChar *signUpLine = m_signLineBuf1+1; 1160 1160 1161 1161 startX = (!isCalculatePreDeblockSamples) ? (isLeftAvail ? 0 : 1) … … 1171 1171 for (x=startX-1; x<endX; x++) 1172 1172 { 1173 signUpLine[x] = ( Char)sgn(srcLineBelow[x] - srcLine[x+1]);1173 signUpLine[x] = (SChar)sgn(srcLineBelow[x] - srcLine[x+1]); 1174 1174 } 1175 1175 … … 1200 1200 for(x=startX; x<endX; x++) 1201 1201 { 1202 signDown = ( Char)sgn(srcLine[x] - srcLineBelow[x-1]);1202 signDown = (SChar)sgn(srcLine[x] - srcLineBelow[x-1]); 1203 1203 edgeType = signDown + signUpLine[x]; 1204 1204 … … 1208 1208 signUpLine[x-1] = -signDown; 1209 1209 } 1210 signUpLine[endX-1] = ( Char)sgn(srcLineBelow[endX-1] - srcLine[endX]);1210 signUpLine[endX-1] = (SChar)sgn(srcLineBelow[endX-1] - srcLine[endX]); 1211 1211 srcLine += srcStride; 1212 1212 orgLine += orgStride; -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r1424 r1442 305 305 } 306 306 307 m_phQTTempCrossComponentPredictionAlpha[ch] = new Char [uiNumPartitions];307 m_phQTTempCrossComponentPredictionAlpha[ch] = new SChar [uiNumPartitions]; 308 308 m_pSharedPredTransformSkip[ch] = new Pel [MAX_CU_SIZE*MAX_CU_SIZE]; 309 309 m_pcQTTempTUCoeff[ch] = new TCoeff[MAX_CU_SIZE*MAX_CU_SIZE]; … … 1884 1884 } 1885 1885 1886 Char1886 SChar 1887 1887 TEncSearch::xCalcCrossComponentPredictionAlpha( TComTU &rTu, 1888 1888 const ComponentID compID, … … 1901 1901 const Int diffBitDepth = pCU->getSlice()->getSPS()->getDifferentialLumaChromaBitDepth(); 1902 1902 1903 Char alpha = 0;1903 SChar alpha = 0; 1904 1904 Int SSxy = 0; 1905 1905 Int SSxx = 0; … … 1921 1921 { 1922 1922 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}; 1926 1926 1927 1927 alpha = (alpha < 0) ? -alphaQuant[Int(-alpha)] : alphaQuant[Int(alpha)]; … … 2002 2002 Double singleCostTmp = 0; 2003 2003 UInt singleCbfCTmp = 0; 2004 CharbestCrossCPredictionAlpha = 0;2004 SChar bestCrossCPredictionAlpha = 0; 2005 2005 Int bestTransformSkipMode = 0; 2006 2006 … … 2701 2701 ::memcpy( m_puhQTTempCbf[compID], pcCU->getCbf( compID )+uiPartOffset, uiQPartNum * sizeof( UChar ) ); 2702 2702 ::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 ) ); 2704 2704 } 2705 2705 } … … 2714 2714 ::memcpy( pcCU->getCbf( compID )+uiPartOffset, m_puhQTTempCbf[compID], uiQPartNum * sizeof( UChar ) ); 2715 2715 ::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 ) ); 2717 2717 } 2718 2718 } … … 3325 3325 3326 3326 Bool bChanged = false; 3327 3327 3328 3328 #if ENCODER_FAST_MODE 3329 3329 Bool testIter = true; … … 3414 3414 } // for loop-iRefIdxTemp 3415 3415 #endif 3416 3416 3417 3417 if ( !bChanged ) 3418 3418 { … … 3963 3963 } 3964 3964 #endif 3965 3965 3966 3966 m_pcRdCost->getMotionCost( true, 0, pcCU->getCUTransquantBypass(uiPartAddr) ); 3967 3967 m_pcRdCost->setCostScale ( 1 ); … … 4739 4739 const ComponentID component = ComponentID(comp); 4740 4740 ::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) ) ); 4742 4742 } 4743 4743 static const UInt useTS[MAX_NUM_COMPONENT]={0,0,0}; … … 4847 4847 // Stores the best explicit RDPCM mode for a TU encoded without split 4848 4848 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 CharbestCrossCPredictionAlpha [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}}; 4850 4850 4851 4851 m_pcRDGoOnSbacCoder->store( m_pppcRDSbacCoder[ uiDepth ][ CI_QT_TRAFO_ROOT ] ); … … 4918 4918 && (pcCU->getCbf(subTUAbsPartIdx, COMPONENT_Y, uiTrMode) != 0); 4919 4919 4920 Char preCalcAlpha = 0;4920 SChar preCalcAlpha = 0; 4921 4921 const Pel *pLumaResi = m_pcQTTempTComYuv[uiQTTempAccessLayer].getAddrPix( COMPONENT_Y, rTu.getRect( COMPONENT_Y ).x0, rTu.getRect( COMPONENT_Y ).y0 ); 4922 4922 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.h
r1407 r1442 81 81 TComYuv m_tmpYuvPred; // To be used in xGetInterPredictionError() to avoid constant memory allocation/deallocation 82 82 83 Char*m_phQTTempCrossComponentPredictionAlpha[MAX_NUM_COMPONENT];83 SChar* m_phQTTempCrossComponentPredictionAlpha[MAX_NUM_COMPONENT]; 84 84 Pel* m_pSharedPredTransformSkip[MAX_NUM_COMPONENT]; 85 85 TCoeff* m_pcQTTempTUCoeff[MAX_NUM_COMPONENT]; … … 297 297 const Int strideBest ); 298 298 299 Char xCalcCrossComponentPredictionAlpha( TComTU &rTu,299 SChar xCalcCrossComponentPredictionAlpha ( TComTU &rTu, 300 300 const ComponentID compID, 301 301 const Pel* piResiL, -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1433 r1442 350 350 #endif 351 351 m_cSPS.getScalingList().setDefaultScalingList (); 352 if(m_cSPS.getScalingList().xParseScalingList(getScalingListFile ()))352 if(m_cSPS.getScalingList().xParseScalingList(getScalingListFileName())) 353 353 { 354 354 Bool bParsedScalingList=false; // Use of boolean so that assertion outputs useful string
Note: See TracChangeset for help on using the changeset viewer.