Changeset 193 in 3DVCSoftware for branches/HTM-4.0.1-VSP-dev0/source/App/TAppDecoder
- Timestamp:
- 19 Nov 2012, 21:15:40 (12 years ago)
- Location:
- branches/HTM-4.0.1-VSP-dev0/source/App/TAppDecoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-4.0.1-VSP-dev0/source/App/TAppDecoder/TAppDecCfg.cpp
r100 r193 103 103 if (!m_pchBitstreamFile) 104 104 { 105 fprintf(stderr, "No input file specif ed, aborting\n");105 fprintf(stderr, "No input file specified, aborting\n"); 106 106 return false; 107 107 } -
branches/HTM-4.0.1-VSP-dev0/source/App/TAppDecoder/TAppDecTop.cpp
r166 r193 262 262 } 263 263 } 264 #if DEBUGIMGOUT265 for(Int viewDepthIdx=0; viewDepthIdx<m_tVideoIOYuvReconDbgFile.size() ; viewDepthIdx++)266 {267 if( m_tVideoIOYuvReconDbgFile[viewDepthIdx] )268 {269 m_tVideoIOYuvReconDbgFile[viewDepthIdx]->close();270 delete m_tVideoIOYuvReconDbgFile[viewDepthIdx];271 m_tVideoIOYuvReconDbgFile[viewDepthIdx] = NULL ;272 }273 }274 #endif275 264 276 265 for(Int viewDepthIdx=0; viewDepthIdx<m_tDecTop.size() ; viewDepthIdx++) … … 341 330 #endif 342 331 } 343 #if DEBUGIMGOUT344 #if PIC_CROPPING345 m_tVideoIOYuvReconDbgFile[viewDepthId]->write( pcPic->getPicYuvRecDbg(), sps->getPicCropLeftOffset(), sps->getPicCropRightOffset(), sps->getPicCropTopOffset(), sps->getPicCropBottomOffset() );346 #else347 m_tVideoIOYuvReconDbgFile[viewDepthId]->write( pcPic->getPicYuvRecDbg(), pcPic->getSlice(0)->getSPS()->getPad() );348 #endif349 #endif350 332 351 333 // update POC of display order … … 406 388 #endif 407 389 } 408 #if DEBUGIMGOUT409 #if PIC_CROPPING410 m_tVideoIOYuvReconDbgFile[viewDepthId]->write( pcPic->getPicYuvRecDbg(), sps->getPicCropLeftOffset(), sps->getPicCropRightOffset(), sps->getPicCropTopOffset(), sps->getPicCropBottomOffset() );411 #else412 m_tVideoIOYuvReconDbgFile[viewDepthId]->write( pcPic->getPicYuvRecDbg(), pcPic->getSlice(0)->getSPS()->getPad() );413 #endif414 #endif415 390 416 391 // update POC of display order … … 501 476 } 502 477 #endif 503 #if DEBUGIMGOUT 504 while( m_tVideoIOYuvReconDbgFile.size() < newNumberOfViewDepth) 505 { 506 m_tVideoIOYuvReconDbgFile.push_back(new TVideoIOYuv); 507 Char buffer[4]; 508 sprintf(buffer,"_%i", (Int)(m_tVideoIOYuvReconDbgFile.size()-1) / 2 ); 509 Char* nextFilename = NULL; 510 if( (m_tVideoIOYuvReconDbgFile.size() % 2) == 0 ) 511 { 512 Char* pchTempFilename = NULL; 513 xAppendToFileNameEnd( "DebugImg.yuv", "_depth", pchTempFilename); 514 xAppendToFileNameEnd( pchTempFilename, buffer, nextFilename); 515 free ( pchTempFilename ); 516 } 517 else 518 { 519 xAppendToFileNameEnd( "DebugImg.yuv", buffer, nextFilename); 520 } 521 if( isDepth || ( !isDepth && (m_tVideoIOYuvReconDbgFile.size() % 2) == 1 ) ) 522 { 523 m_tVideoIOYuvReconDbgFile.back()->open( nextFilename, true, m_outputBitDepth, g_uiBitDepth + g_uiBitIncrement ); 524 } 525 free ( nextFilename ); 526 } 527 #endif 478 528 479 while( m_pocLastDisplay.size() < newNumberOfViewDepth ) 529 480 { … … 587 538 { 588 539 //first view does not have VSP 589 #if VSP_TEXT_ONLY590 if((iCodedViewIdx == 0)||(bDepth))591 #else592 540 if((iCodedViewIdx == 0)) 593 #endif594 541 return; 595 542 pcPicVSP->getSlice(0)->setPOC( iCurPoc ); 543 pcPicVSP->getSlice(0)->setViewId( iCodedViewIdx ); 596 544 Int iNeighborViewId = 0; 597 545 Bool bRenderFromLeft; -
branches/HTM-4.0.1-VSP-dev0/source/App/TAppDecoder/TAppDecTop.h
r166 r193 68 68 69 69 std::vector<TVideoIOYuv*> m_tVideoIOYuvReconFile; ///< reconstruction YUV class 70 #if DEBUGIMGOUT71 std::vector<TVideoIOYuv*> m_tVideoIOYuvReconDbgFile; ///< debug YUV class72 #endif73 70 74 71 // for output control
Note: See TracChangeset for help on using the changeset viewer.