Changeset 776 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibDecoder
- Timestamp:
- 21 May 2014, 02:18:44 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibDecoder/SEIread.cpp
r775 r776 93 93 fprintf( g_hTrace, "===========Tone Mapping Info SEI message ===========\n"); 94 94 break; 95 #if P0050_KNEE_FUNCTION_SEI 96 case SEI::KNEE_FUNCTION_INFO: 97 fprintf( g_hTrace, "=========== Knee Function Information SEI message ===========\n"); 98 break; 99 #endif 95 100 #if Q0074_SEI_COLOR_MAPPING 96 101 case SEI::COLOR_MAPPING_INFO: … … 285 290 xParseSEIToneMappingInfo((SEIToneMappingInfo&) *sei, payloadSize); 286 291 break; 292 #if P0050_KNEE_FUNCTION_SEI 293 case SEI::KNEE_FUNCTION_INFO: 294 sei = new SEIKneeFunctionInfo; 295 xParseSEIKneeFunctionInfo((SEIKneeFunctionInfo&) *sei, payloadSize); 296 break; 297 #endif 287 298 #if Q0074_SEI_COLOR_MAPPING 288 299 case SEI::COLOR_MAPPING_INFO: … … 849 860 } 850 861 862 #if P0050_KNEE_FUNCTION_SEI 863 Void SEIReader::xParseSEIKneeFunctionInfo(SEIKneeFunctionInfo& sei, UInt /*payloadSize*/){ 864 Int i; 865 UInt val; 866 READ_UVLC( val, "knee_function_id" ); sei.m_kneeId = val; 867 READ_FLAG( val, "knee_function_cancel_flag" ); sei.m_kneeCancelFlag = val; 868 if ( !sei.m_kneeCancelFlag ) 869 { 870 READ_FLAG( val, "knee_function_persistence_flag" ); sei.m_kneePersistenceFlag = val; 871 READ_FLAG( val, "mapping_flag" ); sei.m_kneeMappingFlag = val; 872 READ_CODE( 32, val, "input_d_range" ); sei.m_kneeInputDrange = val; 873 READ_CODE( 32, val, "input_disp_luminance" ); sei.m_kneeInputDispLuminance = val; 874 READ_CODE( 32, val, "output_d_range" ); sei.m_kneeOutputDrange = val; 875 READ_CODE( 32, val, "output_disp_luminance" ); sei.m_kneeOutputDispLuminance = val; 876 READ_UVLC( val, "num_knee_points_minus1" ); sei.m_kneeNumKneePointsMinus1 = val; 877 assert( sei.m_kneeNumKneePointsMinus1 > 0 ); 878 sei.m_kneeInputKneePoint.resize(sei.m_kneeNumKneePointsMinus1+1); 879 sei.m_kneeOutputKneePoint.resize(sei.m_kneeNumKneePointsMinus1+1); 880 for(i = 0; i <= sei.m_kneeNumKneePointsMinus1; i++ ) 881 { 882 READ_CODE( 10, val, "input_knee_point" ); sei.m_kneeInputKneePoint[i] = val; 883 READ_CODE( 10, val, "output_knee_point" ); sei.m_kneeOutputKneePoint[i] = val; 884 } 885 } 886 } 887 #endif 888 851 889 #if Q0074_SEI_COLOR_MAPPING 852 890 Void SEIReader::xParseSEIColorMappingInfo(SEIColorMappingInfo& sei, UInt /*payloadSize*/) -
branches/SHM-6-dev/source/Lib/TLibDecoder/SEIread.h
r694 r776 90 90 Void xParseSEIGradualDecodingRefreshInfo (SEIGradualDecodingRefreshInfo &sei, UInt payloadSize); 91 91 Void xParseSEIToneMappingInfo (SEIToneMappingInfo& sei, UInt payloadSize); 92 #if P0050_KNEE_FUNCTION_SEI 93 Void xParseSEIKneeFunctionInfo (SEIKneeFunctionInfo& sei, UInt payloadSize); 94 #endif 92 95 #if Q0074_SEI_COLOR_MAPPING 93 96 Void xParseSEIColorMappingInfo (SEIColorMappingInfo& sei, UInt payloadSize);
Note: See TracChangeset for help on using the changeset viewer.