Changeset 1390 in 3DVCSoftware for branches/HTM-16.0-MV-draft-5/source/App/TAppDecoder
- Timestamp:
- 13 Nov 2015, 17:00:20 (9 years ago)
- Location:
- branches/HTM-16.0-MV-draft-5/source/App/TAppDecoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.0-MV-draft-5/source/App/TAppDecoder/TAppDecCfg.cpp
r1386 r1390 66 66 Bool do_help = false; 67 67 string cfg_TargetDecLayerIdSetFile; 68 #if NH_3D69 string cfg_ScaleOffsetFile;70 #endif71 68 string outputColourSpaceConvert; 72 69 Int warnUnknowParameter = 0; … … 80 77 ("ReconFile,o", m_reconFileName, string(""), "reconstructed YUV output file name\n" 81 78 "YUV writing is skipped if omitted") 82 #if NH_3D83 ("ScaleOffsetFile,p", cfg_ScaleOffsetFile, string(""), "file with coded scales and offsets")84 ("Depth420OutputFlag", m_depth420OutputFlag, true , "Output depth layers in 4:2:0 ")85 #endif86 79 ("WarnUnknowParameter,w", warnUnknowParameter, 0, "warn for unknown configuration parameters instead of failing") 87 80 ("SkipFrames,s", m_iSkipFrame, 0, "number of frames to skip before random access") … … 148 141 } 149 142 150 #if NH_3D151 m_pchScaleOffsetFile = cfg_ScaleOffsetFile.empty() ? NULL : strdup(cfg_ScaleOffsetFile.c_str());152 #endif153 143 154 144 if (m_bitstreamFileName.empty()) -
branches/HTM-16.0-MV-draft-5/source/App/TAppDecoder/TAppDecCfg.h
r1386 r1390 96 96 Bool m_printPicOutput; ///< Print information on picture output 97 97 Bool m_printReceivedNalus; ///< Print information on received NAL units 98 #if NH_3D99 TChar* m_pchScaleOffsetFile; ///< output coded scale and offset parameters100 Bool m_depth420OutputFlag; ///< output depth layers in 4:2:0101 #endif102 98 103 99 Void xAppendToFileNameEnd( const TChar* pchInputFileName, const TChar* pchStringToAppend, TChar*& rpchOutputFileName); ///< create filenames … … 132 128 m_outputBitDepth[channelTypeIndex] = 0; 133 129 } 134 #if NH_3D135 m_pchScaleOffsetFile = NULL;136 #endif137 130 } 138 131 -
branches/HTM-16.0-MV-draft-5/source/App/TAppDecoder/TAppDecTop.cpp
r1386 r1390 94 94 m_cvsStartFound = false; 95 95 #endif 96 #if NH_3D97 m_pScaleOffsetFile = 0;98 #endif99 96 } 100 97 … … 131 128 #endif 132 129 m_reconFileName.clear(); 133 #if NH_3D134 if (m_pchScaleOffsetFile)135 {136 free (m_pchScaleOffsetFile);137 m_pchScaleOffsetFile = NULL;138 }139 #endif140 130 } 141 131 … … 405 395 // initialize global variables 406 396 initROM(); 407 #if NH_3D_DMM408 initWedgeLists();409 #endif410 397 #else 411 398 // create decoder class … … 453 440 m_pcSeiColourRemappingInfoPrevious = NULL; 454 441 } 455 #if NH_3D456 m_cCamParsCollector.uninit();457 if( m_pScaleOffsetFile )458 {459 ::fclose( m_pScaleOffsetFile );460 }461 #endif462 442 } 463 443 … … 465 445 { 466 446 467 #if NH_3D468 m_cCamParsCollector.setCodeScaleOffsetFile( m_pScaleOffsetFile );469 #endif470 447 #if NH_MV 471 448 m_dpb.setPrintPicOutput(m_printPicOutput); … … 1059 1036 xFinalizeAU ( ); 1060 1037 1061 #if NH_3D1062 if( m_cCamParsCollector.isInitialized() )1063 {1064 m_cCamParsCollector.setSlice( 0 );1065 }1066 #endif1067 1038 xFlushOutput(); 1068 1039 m_dpb.emptyAllSubDpbs(); … … 1092 1063 m_newVpsActivatedbyCurAu = true; //TBD 1093 1064 m_newVpsActivatedbyCurPic = true; 1094 #if NH_3D_VSO1095 m_dpb.setVPS( m_vps );1096 #endif1097 1065 } 1098 1066 … … 1216 1184 Void TAppDecTop::xFinalizeAU() 1217 1185 { 1218 #if NH_3D1219 if ( !m_curAu.empty())1220 {1221 for (TComList<TComPic*>::iterator it = m_curAu.begin(); it != m_curAu.end(); it++)1222 {1223 TComPic* pic = (*it);1224 if ( !pic->getHasGeneratedRefPics() )1225 {1226 pic->compressMotion(1);1227 }1228 }1229 }1230 #endif1231 1186 } 1232 1187 … … 2688 2643 m_tDecTop[ decIdx ]->setDecodedSEIMessageOutputStream(&os); 2689 2644 } 2690 #if NH_3D2691 m_tDecTop[ decIdx ]->setCamParsCollector( &m_cCamParsCollector );2692 #endif2693 2645 2694 2646 // append pic list of new decoder to PicLists … … 2912 2864 } 2913 2865 2914 #if NH_3D2915 if( m_pchScaleOffsetFile )2916 {2917 m_pScaleOffsetFile = ::fopen( m_pchScaleOffsetFile, "wt" );2918 if (!m_pScaleOffsetFile)2919 {2920 fprintf(stderr, "\nUnable to open file `%s' for writing decoded Camera Parameters messages\n", m_pchScaleOffsetFile);2921 exit(EXIT_FAILURE);2922 }2923 }2924 #endif2925 2866 } 2926 2867 … … 3011 2952 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(), 3012 2953 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset(), 3013 #if NH_3D3014 m_depth420OutputFlag && curPic->getIsDepth() ? CHROMA_420 : NUM_CHROMA_FORMAT3015 #else3016 2954 NUM_CHROMA_FORMAT 3017 #endif3018 2955 , m_bClipOutputVideoToRec709Range); 3019 2956 } -
branches/HTM-16.0-MV-draft-5/source/App/TAppDecoder/TAppDecTop.h
r1386 r1390 117 117 118 118 Bool m_reconOpen [ MAX_NUM_LAYERS ]; ///< reconstruction file opened 119 #if NH_3D120 FILE* m_pScaleOffsetFile;121 CamParsCollector m_cCamParsCollector;122 #endif123 119 #else 124 120 TDecTop m_cTDecTop; ///< decoder class
Note: See TracChangeset for help on using the changeset viewer.