Changeset 1072 in 3DVCSoftware for branches/HTM-12.1-MV-draft-1/source/App/TAppDecoder
- Timestamp:
- 13 Oct 2014, 16:44:51 (11 years ago)
- Location:
- branches/HTM-12.1-MV-draft-1/source/App/TAppDecoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-12.1-MV-draft-1/source/App/TAppDecoder/TAppDecCfg.cpp
r1066 r1072 68 68 string cfg_ReconFile; 69 69 string cfg_TargetDecLayerIdSetFile; 70 #if H_3D71 string cfg_ScaleOffsetFile;72 #endif73 70 74 71 po::Options opts; … … 78 75 ("ReconFile,o", cfg_ReconFile, string(""), "reconstructed YUV output file name\n" 79 76 "YUV writing is skipped if omitted") 80 #if H_3D81 ("ScaleOffsetFile,p", cfg_ScaleOffsetFile, string(""), "file with coded scales and offsets")82 #endif83 77 ("SkipFrames,s", m_iSkipFrame, 0, "number of frames to skip before random access") 84 78 ("OutputBitDepth,d", m_outputBitDepthY, 0, "bit depth of YUV output luma component (default: use 0 for native depth)") … … 118 112 m_pchReconFile = cfg_ReconFile.empty() ? NULL : strdup(cfg_ReconFile.c_str()); 119 113 120 #if H_3D121 m_pchScaleOffsetFile = cfg_ScaleOffsetFile.empty() ? NULL : strdup(cfg_ScaleOffsetFile.c_str());122 #endif123 114 if (!m_pchBitstreamFile) 124 115 { -
branches/HTM-12.1-MV-draft-1/source/App/TAppDecoder/TAppDecCfg.h
r1066 r1072 63 63 #endif 64 64 Char* m_pchReconFile; ///< output reconstruction file name 65 #if H_3D66 Char* m_pchScaleOffsetFile; ///< output coded scale and offset parameters67 #endif68 65 Int m_iSkipFrame; ///< counter for frames prior to the random access point to skip 69 66 Int m_outputBitDepthY; ///< bit depth used for writing output (luma) -
branches/HTM-12.1-MV-draft-1/source/App/TAppDecoder/TAppDecTop.cpp
r1066 r1072 67 67 } 68 68 #endif 69 #if H_3D70 m_pScaleOffsetFile = 0;71 #endif72 69 73 70 #if H_MV … … 103 100 m_pchReconFile = NULL; 104 101 } 105 #if H_3D106 if (m_pchScaleOffsetFile)107 {108 free (m_pchScaleOffsetFile);109 m_pchScaleOffsetFile = NULL;110 }111 #endif112 102 } 113 103 … … 139 129 } 140 130 141 #if H_3D142 if( m_pchScaleOffsetFile )143 {144 m_pScaleOffsetFile = ::fopen( m_pchScaleOffsetFile, "wt" );145 AOF( m_pScaleOffsetFile );146 }147 #endif148 131 InputByteStream bytestream(bitstreamFile); 149 132 … … 269 252 #endif 270 253 } 271 #if H_3D272 if (nalu.m_nalUnitType == NAL_UNIT_VPS )273 {274 m_cCamParsCollector.init( m_pScaleOffsetFile, m_tDecTop[decIdx]->getPrefetchedVPS() );275 }276 #endif277 254 bNewPicture = ( newSliceDiffLayer || newSliceDiffPoc ) && !sliceSkippedFlag; 278 255 if ( nalu.isSlice() && firstSlice && !sliceSkippedFlag ) … … 350 327 #endif 351 328 #endif 352 #if H_3D353 if ( allLayersDecoded || !bitstreamFile )354 {355 for( Int dI = 0; dI < m_numDecoders; dI++ )356 {357 TComPic* picLastCoded = m_ivPicLists.getPic( m_tDecTop[dI]->getLayerId(), pocLastPic );358 assert( picLastCoded != NULL );359 picLastCoded->compressMotion(1);360 }361 }362 #endif363 329 364 330 if( pcListPic ) … … 473 439 } 474 440 #if H_MV 475 #if H_3D476 if( m_cCamParsCollector.isInitialized() )477 {478 m_cCamParsCollector.setSlice( 0 );479 }480 #endif481 441 for(UInt decIdx = 0; decIdx < m_numDecoders; decIdx++) 482 442 { … … 502 462 // initialize global variables 503 463 initROM(); 504 #if H_3D_DIM_DMM505 initWedgeLists();506 #endif507 464 #else 508 465 // create decoder class … … 542 499 // destroy decoder class 543 500 m_cTDecTop.destroy(); 544 #endif545 #if H_3D546 m_cCamParsCollector.uninit();547 if( m_pScaleOffsetFile )548 {549 ::fclose( m_pScaleOffsetFile );550 }551 501 #endif 552 502 } … … 1060 1010 m_tDecTop[ decIdx ]->setTargetOptLayerSetIdx( m_targetOptLayerSetIdx ); 1061 1011 1062 #if H_3D1063 m_tDecTop[ decIdx ]->setCamParsCollector( &m_cCamParsCollector );1064 #endif1065 1012 1066 1013 // append pic list of new decoder to PicLists -
branches/HTM-12.1-MV-draft-1/source/App/TAppDecoder/TAppDecTop.h
r976 r1072 82 82 #endif 83 83 84 #if H_3D85 FILE* m_pScaleOffsetFile;86 CamParsCollector m_cCamParsCollector;87 #endif88 84 public: 89 85 TAppDecTop();
Note: See TracChangeset for help on using the changeset viewer.