Changeset 868 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
- Timestamp:
- 13 Aug 2014, 18:37:06 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r860 r868 218 218 219 219 #if Q0074_COLOUR_REMAPPING_SEI 220 if( m_colourRemapSEIFile. c_str())220 if( m_colourRemapSEIFile.size() > 0 ) 221 221 { 222 222 FILE* fic; … … 234 234 { 235 235 retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIPersistenceFlag = tempCode ? 1 : 0; 236 retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIVideoSignal TypePresentFlag = tempCode ? 1 : 0;237 if( m_colourRemapSEIVideoSignal TypePresentFlag )238 { 239 retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEI VideoFullRangeFlag = tempCode ? 1 : 0;236 retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIVideoSignalInfoPresentFlag = tempCode ? 1 : 0; 237 if( m_colourRemapSEIVideoSignalInfoPresentFlag ) 238 { 239 retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIFullRangeFlag = tempCode ? 1 : 0; 240 240 retval = fscanf( fic, "%d", &m_colourRemapSEIPrimaries ); 241 retval = fscanf( fic, "%d", &m_colourRemapSEITransfer Characteristics);242 retval = fscanf( fic, "%d", &m_colourRemapSEIMatrixCoeff s );243 } 244 245 retval = fscanf( fic, "%d", &m_colourRemapSEI CodedDataBitDepth );246 retval = fscanf( fic, "%d", &m_colourRemapSEI TargetBitDepth );241 retval = fscanf( fic, "%d", &m_colourRemapSEITransferFunction ); 242 retval = fscanf( fic, "%d", &m_colourRemapSEIMatrixCoefficients ); 243 } 244 245 retval = fscanf( fic, "%d", &m_colourRemapSEIInputBitDepth ); 246 retval = fscanf( fic, "%d", &m_colourRemapSEIBitDepth ); 247 247 248 248 for( Int c=0 ; c<3 ; c++ ) … … 518 518 #endif 519 519 #if Q0074_COLOUR_REMAPPING_SEI 520 if ( m_colourRemapSEIFile.length() && !m_colourRemapSEICancelFlag )521 { 522 xConfirmPara( m_colourRemapSEI CodedDataBitDepth < 8 || m_colourRemapSEICodedDataBitDepth > 16 , "colour_remap_coded_data_bit_depth shall be in the range of 8 to 16, inclusive");523 xConfirmPara( m_colourRemapSEI TargetBitDepth < 8 || (m_colourRemapSEITargetBitDepth > 16 && m_colourRemapSEITargetBitDepth < 255) , "colour_remap_target_bit_depth shall be in the range of 8 to 16, inclusive");520 if ( ( m_colourRemapSEIFile.size() > 0 ) && !m_colourRemapSEICancelFlag ) 521 { 522 xConfirmPara( m_colourRemapSEIInputBitDepth < 8 || m_colourRemapSEIInputBitDepth > 16 , "colour_remap_input_bit_depth shall be in the range of 8 to 16, inclusive"); 523 xConfirmPara( m_colourRemapSEIBitDepth < 8 || m_colourRemapSEIBitDepth > 16, "colour_remap_bit_depth shall be in the range of 8 to 16, inclusive"); 524 524 for( Int c=0 ; c<3 ; c++) 525 525 { … … 528 528 for( Int i=0 ; i<=m_colourRemapSEIPreLutNumValMinus1[c] ; i++) 529 529 { 530 xConfirmPara( m_colourRemapSEIPreLutCodedValue[c][i] < 0 || m_colourRemapSEIPreLutCodedValue[c][i] > ((1<<m_colourRemapSEI CodedDataBitDepth)-1), "pre_lut_coded_value[c][i] shall be in the range of 0 to (1<<colour_remap_coded_data_bit_depth)-1, inclusive");531 xConfirmPara( m_colourRemapSEIPreLutTargetValue[c][i] < 0 || m_colourRemapSEIPreLutTargetValue[c][i] > ((1<<m_colourRemapSEI TargetBitDepth)-1), "pre_lut_target_value[c][i] shall be in the range of 0 to (1<<colour_remap_target_bit_depth)-1, inclusive");530 xConfirmPara( m_colourRemapSEIPreLutCodedValue[c][i] < 0 || m_colourRemapSEIPreLutCodedValue[c][i] > ((1<<m_colourRemapSEIInputBitDepth)-1), "pre_lut_coded_value[c][i] shall be in the range of 0 to (1<<colour_remap_input_bit_depth)-1, inclusive"); 531 xConfirmPara( m_colourRemapSEIPreLutTargetValue[c][i] < 0 || m_colourRemapSEIPreLutTargetValue[c][i] > ((1<<m_colourRemapSEIBitDepth)-1), "pre_lut_target_value[c][i] shall be in the range of 0 to (1<<colour_remap_bit_depth)-1, inclusive"); 532 532 } 533 533 xConfirmPara( m_colourRemapSEIPostLutNumValMinus1[c] < 0 || m_colourRemapSEIPostLutNumValMinus1[c] > 32, "post_lut_num_val_minus1[c] shall be in the range of 0 to 32, inclusive"); 534 534 if( m_colourRemapSEIPostLutNumValMinus1[c]>0 ) 535 535 for( Int i=0 ; i<=m_colourRemapSEIPostLutNumValMinus1[c] ; i++) 536 { 537 if( m_colourRemapSEIPreLutNumValMinus1[c]>0 || m_colourRemapSEIMatrixPresentFlag ) 538 xConfirmPara( m_colourRemapSEIPostLutCodedValue[c][i] < 0 || m_colourRemapSEIPostLutCodedValue[c][i] > ((1<<m_colourRemapSEITargetBitDepth)-1), "post_lut_coded_value[c][i] shall be in the range of 0 to (1<<colour_remap_target_bit_depth)-1, inclusive"); 539 else 540 xConfirmPara( m_colourRemapSEIPostLutCodedValue[c][i] < 0 || m_colourRemapSEIPostLutCodedValue[c][i] > ((1<<m_colourRemapSEICodedDataBitDepth)-1), "post_lut_coded_value[c][i] shall be in the range of 0 to (1<<colour_remap_coded_data_bit_depth)-1, inclusive"); 541 xConfirmPara( m_colourRemapSEIPostLutTargetValue[c][i] < 0 || m_colourRemapSEIPostLutTargetValue[c][i] > ((1<<m_colourRemapSEITargetBitDepth)-1), "post_lut_target_value[c][i] shall be in the range of 0 to (1<<colour_remap_target_bit_depth)-1, inclusive"); 536 { 537 xConfirmPara( m_colourRemapSEIPostLutCodedValue[c][i] < 0 || m_colourRemapSEIPostLutCodedValue[c][i] > ((1<<m_colourRemapSEIBitDepth)-1), "post_lut_coded_value[c][i] shall be in the range of 0 to (1<<colour_remap_bit_depth)-1, inclusive"); 538 xConfirmPara( m_colourRemapSEIPostLutTargetValue[c][i] < 0 || m_colourRemapSEIPostLutTargetValue[c][i] > ((1<<m_colourRemapSEIBitDepth)-1), "post_lut_target_value[c][i] shall be in the range of 0 to (1<<colour_remap_bit_depth)-1, inclusive"); 542 539 } 543 540 }
Note: See TracChangeset for help on using the changeset viewer.