Changeset 776 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
21 May 2014, 02:18:44 (11 years ago)
Author:
sony
Message:

JCTVC-P0050: Knee Function Information (MACRO: P0050_KNEE_FUNCTION_SEI)
ohji.nakagami@…

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  
    9393    fprintf( g_hTrace, "===========Tone Mapping Info SEI message ===========\n");
    9494    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
    95100#if Q0074_SEI_COLOR_MAPPING
    96101  case SEI::COLOR_MAPPING_INFO:
     
    285290      xParseSEIToneMappingInfo((SEIToneMappingInfo&) *sei, payloadSize);
    286291      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
    287298#if Q0074_SEI_COLOR_MAPPING
    288299    case SEI::COLOR_MAPPING_INFO:
     
    849860}
    850861
     862#if P0050_KNEE_FUNCTION_SEI
     863Void 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
    851889#if Q0074_SEI_COLOR_MAPPING
    852890Void SEIReader::xParseSEIColorMappingInfo(SEIColorMappingInfo& sei, UInt /*payloadSize*/)
  • branches/SHM-6-dev/source/Lib/TLibDecoder/SEIread.h

    r694 r776  
    9090  Void xParseSEIGradualDecodingRefreshInfo (SEIGradualDecodingRefreshInfo &sei, UInt payloadSize);
    9191  Void xParseSEIToneMappingInfo       (SEIToneMappingInfo& sei, UInt payloadSize);
     92#if P0050_KNEE_FUNCTION_SEI
     93  Void xParseSEIKneeFunctionInfo      (SEIKneeFunctionInfo& sei, UInt payloadSize);
     94#endif
    9295#if Q0074_SEI_COLOR_MAPPING
    9396  Void xParseSEIColorMappingInfo      (SEIColorMappingInfo& sei, UInt payloadSize);
Note: See TracChangeset for help on using the changeset viewer.