Changeset 868 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
- Timestamp:
- 13 Aug 2014, 18:37:06 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r863 r868 2076 2076 #if !SVC_EXTENSION 2077 2077 // reading external Colour Remapping Information SEI message parameters from file 2078 if( m_colourRemapSEIFile. length())2078 if( m_colourRemapSEIFile.size() > 0 ) 2079 2079 { 2080 2080 FILE* fic; … … 2091 2091 { 2092 2092 retval = fscanf( fic, "%d", &m_colourRemapSEIPersistenceFlag ); 2093 retval = fscanf( fic, "%d", &m_colourRemapSEIVideoSignal TypePresentFlag);2094 if( m_colourRemapSEIVideoSignal TypePresentFlag )2095 { 2096 retval = fscanf( fic, "%d", &m_colourRemapSEI VideoFullRangeFlag );2093 retval = fscanf( fic, "%d", &m_colourRemapSEIVideoSignalInfoPresentFlag); 2094 if( m_colourRemapSEIVideoSignalInfoPresentFlag ) 2095 { 2096 retval = fscanf( fic, "%d", &m_colourRemapSEIFullRangeFlag ); 2097 2097 retval = fscanf( fic, "%d", &m_colourRemapSEIPrimaries ); 2098 retval = fscanf( fic, "%d", &m_colourRemapSEITransfer Characteristics);2099 retval = fscanf( fic, "%d", &m_colourRemapSEIMatrixCoeff s );2100 } 2101 2102 retval = fscanf( fic, "%d", &m_colourRemapSEI CodedDataBitDepth );2103 retval = fscanf( fic, "%d", &m_colourRemapSEI TargetBitDepth );2098 retval = fscanf( fic, "%d", &m_colourRemapSEITransferFunction ); 2099 retval = fscanf( fic, "%d", &m_colourRemapSEIMatrixCoefficients ); 2100 } 2101 2102 retval = fscanf( fic, "%d", &m_colourRemapSEIInputBitDepth ); 2103 retval = fscanf( fic, "%d", &m_colourRemapSEIBitDepth ); 2104 2104 2105 2105 for( Int c=0 ; c<3 ; c++ ) … … 2170 2170 { 2171 2171 retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIPersistenceFlag = tempCode ? 1 : 0; 2172 retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIVideoSignal TypePresentFlag = tempCode ? 1 : 0;2173 if( m_acLayerCfg[layer].m_colourRemapSEIVideoSignal TypePresentFlag )2174 { 2175 retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEI VideoFullRangeFlag = tempCode ? 1 : 0;2172 retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIVideoSignalInfoPresentFlag = tempCode ? 1 : 0; 2173 if( m_acLayerCfg[layer].m_colourRemapSEIVideoSignalInfoPresentFlag ) 2174 { 2175 retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIFullRangeFlag = tempCode ? 1 : 0; 2176 2176 retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIPrimaries ); 2177 retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEITransfer Characteristics);2178 retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIMatrixCoeff s );2179 } 2180 2181 retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEI CodedDataBitDepth );2182 retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEI TargetBitDepth );2177 retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEITransferFunction ); 2178 retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIMatrixCoefficients ); 2179 } 2180 2181 retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIInputBitDepth ); 2182 retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIBitDepth ); 2183 2183 2184 2184 for( Int c=0 ; c<3 ; c++ ) … … 3324 3324 #if Q0074_COLOUR_REMAPPING_SEI 3325 3325 #if !SVC_EXTENSION 3326 if ( m_colourRemapSEIFile.c_str() && !m_colourRemapSEICancelFlag )3327 { 3328 xConfirmPara( m_colourRemapSEI CodedDataBitDepth < 8 || m_colourRemapSEICodedDataBitDepth > 16 , "colour_remap_coded_data_bit_depth shall be in the range of 8 to 16, inclusive");3329 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");3326 if ( ( m_colourRemapSEIFile.size() > 0 ) && !m_colourRemapSEICancelFlag ) 3327 { 3328 xConfirmPara( m_colourRemapSEIInputBitDepth < 8 || m_colourRemapSEIInputBitDepth > 16 , "colour_remap_input_bit_depth shall be in the range of 8 to 16, inclusive"); 3329 xConfirmPara( m_colourRemapSEIBitDepth < 8 || m_colourRemapSEIBitDepth > 16, "colour_remap_bit_depth shall be in the range of 8 to 16, inclusive"); 3330 3330 for( Int c=0 ; c<3 ; c++) 3331 3331 { … … 3334 3334 for( Int i=0 ; i<=m_colourRemapSEIPreLutNumValMinus1[c] ; i++) 3335 3335 { 3336 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");3337 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");3336 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"); 3337 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"); 3338 3338 } 3339 3339 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"); … … 3341 3341 for( Int i=0 ; i<=m_colourRemapSEIPostLutNumValMinus1[c] ; i++) 3342 3342 { 3343 xConfirmPara( m_colourRemapSEIPostLutCodedValue[c][i] < 0 || m_colourRemapSEIPostLutCodedValue[c][i] > ((1<<m_colourRemapSEI TargetBitDepth)-1), "post_lut_coded_value[c][i] shall be in the range of 0 to (1<<colour_remap_target_bit_depth)-1, inclusive");3344 xConfirmPara( m_colourRemapSEIPostLutTargetValue[c][i] < 0 || m_colourRemapSEIPostLutTargetValue[c][i] > ((1<<m_colourRemapSEI TargetBitDepth)-1), "post_lut_target_value[c][i] shall be in the range of 0 to (1<<colour_remap_target_bit_depth)-1, inclusive");3343 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"); 3344 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"); 3345 3345 } 3346 3346 }
Note: See TracChangeset for help on using the changeset viewer.