Changeset 105 in 3DVCSoftware for trunk/source/App
- Timestamp:
- 14 Aug 2012, 20:24:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppDecoder/TAppDecTop.cpp
r81 r105 435 435 if( isDepth ) 436 436 m_useDepth = true; 437 while( m_tVideoIOYuvReconFile.size() < newNumberOfViewDepth) 438 { 439 m_tVideoIOYuvReconFile.push_back(new TVideoIOYuv); 440 Char buffer[4]; 441 #if VIDYO_VPS_INTEGRATION 442 sprintf(buffer,"_%i", viewId ); 443 #else 444 sprintf(buffer,"_%i", (Int)(m_tVideoIOYuvReconFile.size()-1) / 2 ); 445 #endif 446 Char* nextFilename = NULL; 447 #if VIDYO_VPS_INTEGRATION 448 if( isDepth) 449 #else 450 if( (m_tVideoIOYuvReconFile.size() % 2) == 0 ) 451 #endif 452 { 453 Char* pchTempFilename = NULL; 454 xAppendToFileNameEnd( m_pchReconFile, "_depth", pchTempFilename); 455 xAppendToFileNameEnd( pchTempFilename, buffer, nextFilename); 456 free ( pchTempFilename ); 457 } 458 else 459 { 460 xAppendToFileNameEnd( m_pchReconFile, buffer, nextFilename); 461 } 437 438 #if FIX_DECODING_WO_WRITING 439 if ( m_pchReconFile ) 440 { 441 #endif 442 while( m_tVideoIOYuvReconFile.size() < newNumberOfViewDepth) 443 { 444 m_tVideoIOYuvReconFile.push_back(new TVideoIOYuv); 445 Char buffer[4]; 446 #if VIDYO_VPS_INTEGRATION 447 sprintf(buffer,"_%i", viewId ); 448 #else 449 sprintf(buffer,"_%i", (Int)(m_tVideoIOYuvReconFile.size()-1) / 2 ); 450 #endif 451 Char* nextFilename = NULL; 452 #if VIDYO_VPS_INTEGRATION 453 if( isDepth) 454 #else 455 if( (m_tVideoIOYuvReconFile.size() % 2) == 0 ) 456 #endif 457 { 458 Char* pchTempFilename = NULL; 459 xAppendToFileNameEnd( m_pchReconFile, "_depth", pchTempFilename); 460 xAppendToFileNameEnd( pchTempFilename, buffer, nextFilename); 461 free ( pchTempFilename ); 462 } 463 else 464 { 465 xAppendToFileNameEnd( m_pchReconFile, buffer, nextFilename); 466 } 462 467 #if !VIDYO_VPS_INTEGRATION 463 if( isDepth || ( !isDepth && (m_tVideoIOYuvReconFile.size() % 2) == 1 ) )464 #endif 465 {466 m_tVideoIOYuvReconFile.back()->open( nextFilename, true, m_outputBitDepth, g_uiBitDepth + g_uiBitIncrement );467 }468 if( isDepth || ( !isDepth && (m_tVideoIOYuvReconFile.size() % 2) == 1 ) ) 469 #endif 470 { 471 m_tVideoIOYuvReconFile.back()->open( nextFilename, true, m_outputBitDepth, g_uiBitDepth + g_uiBitIncrement ); 472 } 468 473 free ( nextFilename ); 469 } 474 } 475 #if FIX_DECODING_WO_WRITING 476 } 477 #endif 478 470 479 while( m_pocLastDisplay.size() < newNumberOfViewDepth ) 471 480 {
Note: See TracChangeset for help on using the changeset viewer.