Changeset 1366 in SHVCSoftware for branches/SHM-dev
- Timestamp:
- 22 Jul 2015, 04:32:08 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1364 r1366 109 109 #if SVC_EXTENSION 110 110 TAppEncCfg::TAppEncCfg() 111 : m_p BitstreamFile()111 : m_pchBitstreamFile() 112 112 #if AVC_BASE 113 113 , m_nonHEVCBaseLayerFlag(0) … … 148 148 TAppEncCfg::~TAppEncCfg() 149 149 { 150 #if SVC_EXTENSION 151 if( m_pBitstreamFile ) 152 { 153 free(m_pBitstreamFile); 154 m_pBitstreamFile = NULL; 155 } 156 #else 150 #if !SVC_EXTENSION 157 151 if ( m_aidQP ) 158 152 { … … 176 170 177 171 free(m_pchInputFile); 172 #endif 178 173 free(m_pchBitstreamFile); 179 #endif180 174 #if !SVC_EXTENSION 181 175 free(m_pchReconFile); … … 1772 1766 } 1773 1767 #endif 1774 m_pBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str());1775 1768 #else //SVC_EXTENSION 1776 1769 m_pchInputFile = cfg_InputFile.empty() ? NULL : strdup(cfg_InputFile.c_str()); 1770 #endif 1777 1771 m_pchBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str()); 1772 #if !SVC_EXTENSION 1778 1773 m_pchReconFile = cfg_ReconFile.empty() ? NULL : strdup(cfg_ReconFile.c_str()); 1779 1774 m_pchdQPFile = cfg_dQPFile.empty() ? NULL : strdup(cfg_dQPFile.c_str()); … … 4341 4336 } 4342 4337 printf("=== Common configuration settings === \n"); 4343 printf("Bitstream File : %s\n", m_p BitstreamFile );4338 printf("Bitstream File : %s\n", m_pchBitstreamFile ); 4344 4339 #else //SVC_EXTENSION 4345 4340 printf("\n"); -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1356 r1366 64 64 Int m_numLayers; ///< number of layers 65 65 Int m_scalabilityMask[MAX_VPS_NUM_SCALABILITY_TYPES]; ///< scalability_mask 66 Char* m_pBitstreamFile; ///< output bitstream file67 Double m_adLambdaModifier[ MAX_TLAYER ]; ///< Lambda modifier array for each temporal layer68 // source specification69 UInt m_FrameSkip; ///< number of skipped frames from the beginning70 Int m_framesToBeEncoded; ///< number of encoded frames71 66 #if AVC_BASE 72 67 Int m_nonHEVCBaseLayerFlag; ///< non HEVC BL … … 88 83 #else 89 84 Char* m_pchInputFile; ///< source file name 85 #endif 90 86 Char* m_pchBitstreamFile; ///< output bitstream file 87 #if !SVC_EXTENSION 91 88 Char* m_pchReconFile; ///< output reconstruction file 89 #endif 92 90 Double m_adLambdaModifier[ MAX_TLAYER ]; ///< Lambda modifier array for each temporal layer 93 91 // source specification 92 #if !SVC_EXTENSION 94 93 Int m_iFrameRate; ///< source frame-rates (Hz) 94 #endif 95 95 UInt m_FrameSkip; ///< number of skipped frames from the beginning 96 #if !SVC_EXTENSION 96 97 Int m_iSourceWidth; ///< source width in pixel 97 98 Int m_iSourceHeight; ///< source height in pixel (when interlaced = field height) … … 110 111 Int m_confWinTop; 111 112 Int m_confWinBottom; 113 #endif 112 114 Int m_framesToBeEncoded; ///< number of encoded frames 115 #if !SVC_EXTENSION 113 116 Int m_aiPad[2]; ///< number of padded pixels for width and height 114 117 #endif -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1356 r1366 1680 1680 Void TAppEncTop::encode() 1681 1681 { 1682 fstream bitstreamFile(m_p BitstreamFile, fstream::binary | fstream::out);1682 fstream bitstreamFile(m_pchBitstreamFile, fstream::binary | fstream::out); 1683 1683 if (!bitstreamFile) 1684 1684 { 1685 fprintf(stderr, "\nfailed to open bitstream file `%s' for writing\n", m_p BitstreamFile);1685 fprintf(stderr, "\nfailed to open bitstream file `%s' for writing\n", m_pchBitstreamFile); 1686 1686 exit(EXIT_FAILURE); 1687 1687 } -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1356 r1366 2025 2025 Int m_iAssociatedIRAP; 2026 2026 NalUnitType m_iAssociatedIRAPType; 2027 TComReferencePictureSet* m_pcRPS;2027 const TComReferencePictureSet* m_pcRPS; 2028 2028 TComReferencePictureSet m_LocalRPS; 2029 2029 Int m_iBDidx; … … 2170 2170 Void setSaoEnabledFlag(ChannelType chType, Bool s) {m_saoEnabledFlag[chType] =s; } 2171 2171 Bool getSaoEnabledFlag(ChannelType chType) const { return m_saoEnabledFlag[chType]; } 2172 Void setRPS( TComReferencePictureSet *pcRPS ){ m_pcRPS = pcRPS; }2173 TComReferencePictureSet* getRPS() { return m_pcRPS; }2172 Void setRPS( const TComReferencePictureSet *pcRPS ) { m_pcRPS = pcRPS; } 2173 const TComReferencePictureSet* getRPS() { return m_pcRPS; } 2174 2174 TComReferencePictureSet* getLocalRPS() { return &m_LocalRPS; } 2175 2175 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1358 r1366 1162 1162 1163 1163 TComSlice *slice = dpbPic->getSlice(i); 1164 TComReferencePictureSet *rps = slice->get RPS();1164 TComReferencePictureSet *rps = slice->getLocalRPS(); 1165 1165 slice->setPOC( slice->getPOC() - deltaPocVal ); 1166 1166 … … 1170 1170 rps->setPOC( j, rps->getPOC(j) - deltaPocVal ); 1171 1171 } 1172 1173 slice->setRPS(rps); 1174 1172 1175 // Also adjust the value of refPOC 1173 1176 for(Int k = 0; k < 2; k++) // For List 0 and List 1 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1353 r1366 1926 1926 #endif 1927 1927 m_pcEncTop->selectReferencePictureSet(pcSlice, pocCurr, iGOPid); 1928 pcSlice->getRPS()->setNumberOfLongtermPictures(0);1928 // pcSlice->getRPS()->setNumberOfLongtermPictures(0); 1929 1929 if (!m_pcCfg->getEfficientFieldIRAPEnabled()) 1930 1930 { … … 3544 3544 Void TEncGOP::arrangeLongtermPicturesInRPS(TComSlice *pcSlice, TComList<TComPic*>& rcListPic) 3545 3545 { 3546 TComReferencePictureSet *rps = pcSlice->getRPS(); 3547 if(!rps->getNumberOfLongtermPictures()) 3546 if(pcSlice->getRPS()->getNumberOfLongtermPictures() == 0) 3548 3547 { 3549 3548 return; 3550 3549 } 3550 // we can only modify the local RPS! 3551 assert (pcSlice->getRPSidx()==-1); 3552 TComReferencePictureSet *rps = pcSlice->getLocalRPS(); 3551 3553 3552 3554 // Arrange long-term reference pictures in the correct order of LSB and MSB, … … 4013 4015 { 4014 4016 TComSlice *dpbPicSlice = dpbPic->getSlice( i ); 4015 TComReferencePictureSet *dpbPicRps = dpbPicSlice->get RPS();4017 TComReferencePictureSet *dpbPicRps = dpbPicSlice->getLocalRPS(); 4016 4018 4017 4019 // Decrement POC of slice … … 4023 4025 dpbPicRps->setPOC( j, dpbPicRps->getPOC(j) - deltaPocVal ); 4024 4026 } 4027 4028 dpbPicSlice->setRPS(dpbPicRps); 4025 4029 4026 4030 // Decrement value of refPOC -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1360 r1366 1512 1512 } 1513 1513 1514 TComReferencePictureSet *rps=slice->getLocalRPS(); 1515 (*rps) = *(slice->getSPS()->getRPSList()->getReferencePictureSet(slice->getRPSidx())); 1514 const TComReferencePictureSet *rps = (slice->getSPS()->getRPSList()->getReferencePictureSet(slice->getRPSidx())); 1516 1515 slice->setRPS(rps); 1517 slice->getRPS()->setNumberOfPictures(slice->getRPS()->getNumberOfNegativePictures()+slice->getRPS()->getNumberOfPositivePictures());1518 1516 } 1519 1517
Note: See TracChangeset for help on using the changeset viewer.