Changeset 862 in 3DVCSoftware for branches/HTM-10.0-dev0/source/Lib/TLibEncoder/SEIwrite.cpp
- Timestamp:
- 5 Mar 2014, 03:54:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-10.0-dev0/source/Lib/TLibEncoder/SEIwrite.cpp
r852 r862 93 93 fprintf( g_hTrace, "=========== Scalable Nesting SEI message ===========\n"); 94 94 break; 95 #if H_MV_HLS_7_SEI_P0204_26 96 case SEI::SUB_BITSTREAM_PROPERTY: 97 fprintf( g_hTrace, "=========== Sub-bitstream property SEI message ===========\n"); 98 break; 99 #endif 95 100 default: 96 101 fprintf( g_hTrace, "=========== Unknown SEI message ===========\n"); … … 146 151 xWriteSEIScalableNesting(bs, *static_cast<const SEIScalableNesting*>(&sei), sps); 147 152 break; 153 #if H_MV_HLS_7_SEI_P0204_26 154 case SEI::SUB_BITSTREAM_PROPERTY: 155 xWriteSEISubBitstreamProperty(*static_cast<const SEISubBitstreamProperty*>(&sei)); 156 break; 157 #endif 148 158 default: 149 159 assert(!"Unhandled SEI message"); … … 579 589 } 580 590 591 #if H_MV_HLS_7_SEI_P0204_26 592 Void SEIWriter::xWriteSEISubBitstreamProperty(const SEISubBitstreamProperty &sei) 593 { 594 WRITE_CODE( sei.m_activeVpsId, 4, "active_vps_id" ); 595 assert( sei.m_numAdditionalSubStreams >= 1 ); 596 WRITE_UVLC( sei.m_numAdditionalSubStreams - 1, "num_additional_sub_streams_minus1" ); 597 598 for( Int i = 0; i < sei.m_numAdditionalSubStreams; i++ ) 599 { 600 WRITE_CODE( sei.m_subBitstreamMode[i], 2, "sub_bitstream_mode[i]" ); 601 WRITE_UVLC( sei.m_outputLayerSetIdxToVps[i], "output_layer_set_idx_to_vps[i]" ); 602 WRITE_CODE( sei.m_highestSublayerId[i], 3, "highest_sub_layer_id[i]" ); 603 WRITE_CODE( sei.m_avgBitRate[i], 16, "avg_bit_rate[i]" ); 604 WRITE_CODE( sei.m_maxBitRate[i], 16, "max_bit_rate[i]" ); 605 } 606 xWriteByteAlign(); 607 } 608 #endif 609 581 610 Void SEIWriter::xWriteByteAlign() 582 611 {
Note: See TracChangeset for help on using the changeset viewer.