- Timestamp:
- 7 Jul 2015, 01:40:13 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1117 r1118 165 165 { 166 166 RepFormat *repFormat = vps->getVpsRepFormat( idx ); 167 #if REPN_FORMAT_CONTROL_FLAG168 167 repFormat->setChromaAndBitDepthVpsPresentFlag ( true ); 169 168 if (idx==0) … … 171 170 assert(repFormat->getChromaAndBitDepthVpsPresentFlag() == true); 172 171 } 173 #endif 172 174 173 repFormat->setPicWidthVpsInLumaSamples ( m_acLayerCfg[mapIdxToLayer[idx]].getSourceWidth() ); 175 174 repFormat->setPicHeightVpsInLumaSamples ( m_acLayerCfg[mapIdxToLayer[idx]].getSourceHeight() ); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1117 r1118 511 511 class RepFormat 512 512 { 513 #if REPN_FORMAT_CONTROL_FLAG514 513 Bool m_chromaAndBitDepthVpsPresentFlag; 515 #endif516 514 #if AUXILIARY_PICTURES 517 515 ChromaFormat m_chromaFormatVpsIdc; … … 529 527 public: 530 528 RepFormat(); 531 #if REPN_FORMAT_CONTROL_FLAG532 529 Bool getChromaAndBitDepthVpsPresentFlag() { return m_chromaAndBitDepthVpsPresentFlag; } 533 530 void setChromaAndBitDepthVpsPresentFlag(Bool x) { m_chromaAndBitDepthVpsPresentFlag = x; } 534 #endif535 531 536 532 #if AUXILIARY_PICTURES -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1117 r1118 125 125 #define NO_OUTPUT_OF_PRIOR_PICS 1 ///< Use no_output_of_prior_pics_flag 126 126 #define REPN_FORMAT_IN_VPS 1 ///< JCTVC-N0092: Signal represenation format (spatial resolution, bit depth, colour format) in the VPS 127 #if REPN_FORMAT_IN_VPS128 #define REPN_FORMAT_CONTROL_FLAG 1 ///< JCTVC-O0179: Add control flag in representation format to control sending of chroma and bitdepth parameters129 #endif130 127 #define RPL_INIT_N0316_N0082 1 ///< JCTVC-N0316, JCTVC-N0082: initial reference picture list construction 131 128 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1117 r1118 3571 3571 { 3572 3572 UInt uiCode; 3573 #if REPN_FORMAT_CONTROL_FLAG3574 3573 READ_CODE( 16, uiCode, "pic_width_vps_in_luma_samples" ); repFormat->setPicWidthVpsInLumaSamples ( uiCode ); 3575 3574 READ_CODE( 16, uiCode, "pic_height_vps_in_luma_samples" ); repFormat->setPicHeightVpsInLumaSamples( uiCode ); … … 3609 3608 repFormat->setBitDepthVpsChroma ( repFormatPrev->getBitDepthVpsChroma() ); 3610 3609 } 3611 3612 #else3613 #if AUXILIARY_PICTURES3614 READ_CODE( 2, uiCode, "chroma_format_idc" ); repFormat->setChromaFormatVpsIdc( ChromaFormat(uiCode) );3615 #else3616 READ_CODE( 2, uiCode, "chroma_format_idc" ); repFormat->setChromaFormatVpsIdc( uiCode );3617 #endif3618 3619 if( repFormat->getChromaFormatVpsIdc() == 3 )3620 {3621 READ_FLAG( uiCode, "separate_colour_plane_flag"); repFormat->setSeparateColourPlaneVpsFlag(uiCode ? true : false);3622 }3623 3624 READ_CODE ( 16, uiCode, "pic_width_in_luma_samples" ); repFormat->setPicWidthVpsInLumaSamples ( uiCode );3625 READ_CODE ( 16, uiCode, "pic_height_in_luma_samples" ); repFormat->setPicHeightVpsInLumaSamples( uiCode );3626 3627 READ_CODE( 4, uiCode, "bit_depth_luma_minus8" ); repFormat->setBitDepthVpsLuma ( uiCode + 8 );3628 READ_CODE( 4, uiCode, "bit_depth_chroma_minus8" ); repFormat->setBitDepthVpsChroma( uiCode + 8 );3629 #endif3630 3610 3631 3611 READ_FLAG( uiCode, "conformance_window_vps_flag" ); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1117 r1118 2452 2452 Void TEncCavlc::codeRepFormat( RepFormat *repFormat ) 2453 2453 { 2454 #if REPN_FORMAT_CONTROL_FLAG2455 2454 WRITE_CODE( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_vps_in_luma_samples" ); 2456 2455 WRITE_CODE( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_vps_in_luma_samples" ); … … 2471 2470 WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_vps_chroma_minus8" ); 2472 2471 } 2473 #else2474 WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" );2475 2476 if( repFormat->getChromaFormatVpsIdc() == 3 )2477 {2478 WRITE_FLAG( repFormat->getSeparateColourPlaneVpsFlag(), "separate_colour_plane_flag");2479 }2480 2481 WRITE_CODE ( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_in_luma_samples" );2482 WRITE_CODE ( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_in_luma_samples" );2483 2484 assert( repFormat->getBitDepthVpsLuma() >= 8 );2485 assert( repFormat->getBitDepthVpsChroma() >= 8 );2486 WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8, 4, "bit_depth_luma_minus8" );2487 WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" );2488 #endif2489 2472 2490 2473 Window conf = repFormat->getConformanceWindowVps();
Note: See TracChangeset for help on using the changeset viewer.