Changeset 1117 in SHVCSoftware
- Timestamp:
- 7 Jul 2015, 01:35:39 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1116 r1117 188 188 #endif 189 189 190 #if R0156_CONF_WINDOW_IN_REP_FORMAT191 190 repFormat->getConformanceWindowVps().setWindow ( m_acLayerCfg[mapIdxToLayer[idx]].m_confWinLeft, 192 191 m_acLayerCfg[mapIdxToLayer[idx]].m_confWinRight, 193 192 m_acLayerCfg[mapIdxToLayer[idx]].m_confWinTop, 194 193 m_acLayerCfg[mapIdxToLayer[idx]].m_confWinBottom ); 195 #endif196 194 197 195 #if HIGHER_LAYER_IRAP_SKIP_FLAG -
branches/SHM-dev/source/Lib/TLibCommon/TComPic.cpp
r1029 r1117 82 82 if (!bIsVirtual) 83 83 { 84 #if R0156_CONF_WINDOW_IN_REP_FORMAT85 84 m_apcPicYuv[PIC_YUV_ORG] = new TComPicYuv; m_apcPicYuv[PIC_YUV_ORG]->create( iWidth, iHeight, chromaFormatIDC, uiMaxWidth, uiMaxHeight, uiMaxDepth, &conformanceWindow ); 86 #else87 m_apcPicYuv[PIC_YUV_ORG] = new TComPicYuv; m_apcPicYuv[PIC_YUV_ORG]->create( iWidth, iHeight, chromaFormatIDC, uiMaxWidth, uiMaxHeight, uiMaxDepth, pcSps );88 #endif89 #if R0156_CONF_WINDOW_IN_REP_FORMAT90 85 m_apcPicYuv[PIC_YUV_TRUE_ORG] = new TComPicYuv; m_apcPicYuv[PIC_YUV_TRUE_ORG]->create( iWidth, iHeight, chromaFormatIDC, uiMaxWidth, uiMaxHeight, uiMaxDepth, &conformanceWindow ); 91 #else 92 m_apcPicYuv[PIC_YUV_TRUE_ORG] = new TComPicYuv; m_apcPicYuv[PIC_YUV_TRUE_ORG]->create( iWidth, iHeight, chromaFormatIDC, uiMaxWidth, uiMaxHeight, uiMaxDepth, pcSps ); 93 #endif 94 } 95 #if R0156_CONF_WINDOW_IN_REP_FORMAT 86 } 96 87 m_apcPicYuv[PIC_YUV_REC] = new TComPicYuv; m_apcPicYuv[PIC_YUV_REC]->create( iWidth, iHeight, chromaFormatIDC, uiMaxWidth, uiMaxHeight, uiMaxDepth, &conformanceWindow ); 97 #else98 m_apcPicYuv[PIC_YUV_REC] = new TComPicYuv; m_apcPicYuv[PIC_YUV_REC]->create( iWidth, iHeight, chromaFormatIDC, uiMaxWidth, uiMaxHeight, uiMaxDepth, pcSps );99 #endif100 88 101 89 for( Int i = 0; i < MAX_LAYERS; i++ ) … … 103 91 if( m_bSpatialEnhLayer[i] ) 104 92 { 105 #if R0156_CONF_WINDOW_IN_REP_FORMAT106 93 m_pcFullPelBaseRec[i] = new TComPicYuv; m_pcFullPelBaseRec[i]->create( iWidth, iHeight, chromaFormatIDC, uiMaxWidth, uiMaxHeight, uiMaxDepth, &conformanceWindow ); 107 #else108 m_pcFullPelBaseRec[i] = new TComPicYuv; m_pcFullPelBaseRec[i]->create( iWidth, iHeight, chromaFormatIDC, uiMaxWidth, uiMaxHeight, uiMaxDepth, pcSps );109 #endif110 94 } 111 95 } -
branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp
r1091 r1117 77 77 78 78 #if SVC_EXTENSION 79 #if R0156_CONF_WINDOW_IN_REP_FORMAT80 79 Void TComPicYuv::create( const Int iPicWidth, const Int iPicHeight, const ChromaFormat chromaFormatIDC, const UInt uiMaxCUWidth, const UInt uiMaxCUHeight, const UInt uiMaxCUDepth, Window* conformanceWindow ) 81 #else82 Void TComPicYuv::create( const Int iPicWidth, const Int iPicHeight, const ChromaFormat chromaFormatIDC, const UInt uiMaxCUWidth, const UInt uiMaxCUHeight, const UInt uiMaxCUDepth, TComSPS* pcSps )83 #endif84 80 #else 85 81 Void TComPicYuv::create( const Int iPicWidth, const Int iPicHeight, const ChromaFormat chromaFormatIDC, … … 92 88 93 89 #if SVC_EXTENSION 94 #if R0156_CONF_WINDOW_IN_REP_FORMAT95 90 if(conformanceWindow != NULL) 96 91 { 97 92 m_conformanceWindow = *conformanceWindow; 98 93 } 99 #else100 if(pcSps != NULL)101 {102 m_conformanceWindow = pcSps->getConformanceWindow();103 }104 #endif105 94 #endif 106 95 -
branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.h
r1029 r1117 98 98 // ------------------------------------------------------------------------------------------------ 99 99 #if SVC_EXTENSION 100 #if R0156_CONF_WINDOW_IN_REP_FORMAT101 100 Void create ( Int iPicWidth, Int iPicHeight, ChromaFormat chromaFormatIDC, UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxCUDepth, Window* conformanceWindow = NULL); 102 #else103 Void create ( Int iPicWidth, Int iPicHeight, ChromaFormat chromaFormatIDC, UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxCUDepth, TComSPS* pcSps = NULL);104 #endif105 101 #else 106 102 Void create (const Int iPicWidth, -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1116 r1117 3910 3910 } 3911 3911 3912 #if R0156_CONF_WINDOW_IN_REP_FORMAT3913 3912 Window& TComSlice::getConformanceWindow() 3914 3913 { … … 3949 3948 #endif 3950 3949 } 3951 #endif3952 3950 3953 3951 RepFormat::RepFormat() … … 3963 3961 , m_bitDepthVpsChroma (0) 3964 3962 {} 3965 #endif 3963 #endif //REPN_FORMAT_IN_VPS 3966 3964 3967 3965 #if VPS_EXTN_PROFILE_INFO -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1116 r1117 525 525 Int m_bitDepthVpsChroma; // coded as minus8 526 526 527 #if R0156_CONF_WINDOW_IN_REP_FORMAT528 527 Window m_conformanceWindowVps; 529 #endif530 528 531 529 public: … … 561 559 Int getBitDepthVps(ChannelType type) { return isLuma(type) ? m_bitDepthVpsLuma : m_bitDepthVpsChroma; } 562 560 563 #if R0156_CONF_WINDOW_IN_REP_FORMAT564 561 Window& getConformanceWindowVps() { return m_conformanceWindowVps; } 565 562 Void setConformanceWindowVps(Window& conformanceWindow ) { m_conformanceWindowVps = conformanceWindow; } 566 #endif567 563 }; 568 #endif 564 #endif //REPN_FORMAT_IN_VPS 569 565 570 566 class TComVPS … … 2625 2621 Int getQpBDOffsetC(); 2626 2622 2627 #if R0156_CONF_WINDOW_IN_REP_FORMAT2628 2623 Window& getConformanceWindow(); 2629 #endif2630 2624 #endif 2631 2625 -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1116 r1117 195 195 #define Q0195_REP_FORMAT_CLEANUP 1 ///< JCTVC-Q0195: restructureing of rep_format() signaling 196 196 197 #define R0156_CONF_WINDOW_IN_REP_FORMAT O0096_REP_FORMAT_INDEX ///< JCTVC-R0156: add conformance window cropping offsets to rep_format()198 199 197 #define RESAMPLING_CONSTRAINT_BUG_FIX 1 200 198 #define O0098_SCALED_REF_LAYER_ID 1 ///< JCTVC-O0098: signal scaled reference id -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1116 r1117 3629 3629 #endif 3630 3630 3631 #if R0156_CONF_WINDOW_IN_REP_FORMAT3632 3631 READ_FLAG( uiCode, "conformance_window_vps_flag" ); 3633 3632 if( uiCode != 0) … … 3639 3638 READ_UVLC( uiCode, "conf_win_vps_bottom_offset" ); conf.setWindowBottomOffset( uiCode ); 3640 3639 } 3641 #endif 3642 } 3643 #endif 3640 } 3641 #endif //REPN_FORMAT_IN_VPS 3644 3642 #if VPS_DPB_SIZE_TABLE 3645 3643 Void TDecCavlc::parseVpsDpbSizeTable( TComVPS *vps ) -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1116 r1117 240 240 { 241 241 Int numReorderPics[MAX_TLAYER]; 242 #if R0156_CONF_WINDOW_IN_REP_FORMAT242 #if SVC_EXTENSION 243 243 Window &conformanceWindow = pcSlice->getConformanceWindow(); 244 244 #else … … 562 562 563 563 Int numReorderPics[MAX_TLAYER]; 564 #if !R0156_CONF_WINDOW_IN_REP_FORMAT565 Window conformanceWindow;566 #endif567 564 Window defaultDisplayWindow; 568 565 569 #if R0156_CONF_WINDOW_IN_REP_FORMAT570 566 #if AUXILIARY_PICTURES 571 567 pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), repFormat->getChromaFormatVpsIdc(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), repFormat->getConformanceWindowVps(), defaultDisplayWindow, numReorderPics, NULL, true); 572 568 #else 573 569 pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), repFormat->getConformanceWindowVps(), defaultDisplayWindow, numReorderPics, NULL, true); 574 #endif575 #else576 #if AUXILIARY_PICTURES577 pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), repFormat->getChromaFormatVpsIdc(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, NULL, true);578 #else579 pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, NULL, true);580 #endif581 570 #endif 582 571 // it is needed where the VPS is accessed through the slice … … 2489 2478 2490 2479 Int numReorderPics[MAX_TLAYER]; 2491 #if R0156_CONF_WINDOW_IN_REP_FORMAT2492 2480 Window &conformanceWindow = slice->getConformanceWindow(); 2493 #else2494 Window &conformanceWindow = pcSPS->getConformanceWindow();2495 #endif2496 2481 Window defaultDisplayWindow = pcSPS->getVuiParametersPresentFlag() ? pcSPS->getVuiParameters()->getDefaultDisplayWindow() : Window(); 2497 2482 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1116 r1117 2488 2488 #endif 2489 2489 2490 #if R0156_CONF_WINDOW_IN_REP_FORMAT2491 2490 Window conf = repFormat->getConformanceWindowVps(); 2492 2491 … … 2499 2498 WRITE_UVLC( conf.getWindowBottomOffset(), "conf_win_vps_bottom_offset" ); 2500 2499 } 2501 #endif2502 2500 } 2503 2501 #endif -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1093 r1117 1530 1530 1531 1531 Int numReorderPics[MAX_TLAYER]; 1532 #if R0156_CONF_WINDOW_IN_REP_FORMAT1533 1532 Window &conformanceWindow = repFormat->getConformanceWindowVps(); 1534 #else1535 Window &conformanceWindow = m_cSPS.getConformanceWindow();1536 #endif1537 1533 Window defaultDisplayWindow = m_cSPS.getVuiParametersPresentFlag() ? m_cSPS.getVuiParameters()->getDefaultDisplayWindow() : Window(); 1538 1534
Note: See TracChangeset for help on using the changeset viewer.