Changeset 699 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder/TEncGOP.cpp
- Timestamp:
- 18 Apr 2014, 23:19:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r695 r699 334 334 FILE* fic = fopen( file, "r" ); 335 335 336 Int iVal ;337 338 fscanf( fic, "%d", &seiColorMappingInfo->m_colorMapId );339 fscanf( fic, "%d", &iVal );336 Int iVal, retval; 337 338 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colorMapId ); 339 retval = fscanf( fic, "%d", &iVal ); 340 340 seiColorMappingInfo->m_colorMapCancelFlag = iVal; 341 341 if( !seiColorMappingInfo->m_colorMapCancelFlag ) 342 342 { 343 fscanf( fic, "%d", &iVal );343 retval = fscanf( fic, "%d", &iVal ); 344 344 seiColorMappingInfo->m_colorMapPersistenceFlag = iVal; 345 fscanf( fic, "%d", &iVal );345 retval = fscanf( fic, "%d", &iVal ); 346 346 seiColorMappingInfo->m_colorMap_video_signal_type_present_flag = iVal; 347 347 if( seiColorMappingInfo->m_colorMap_video_signal_type_present_flag ) 348 348 { 349 fscanf( fic, "%d", &iVal );349 retval = fscanf( fic, "%d", &iVal ); 350 350 seiColorMappingInfo->m_colorMap_video_full_range_flag = iVal; 351 fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_primaries );352 fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_transfer_characteristics );353 fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_matrix_coeffs );354 } 355 } 356 357 fscanf( fic, "%d", &seiColorMappingInfo->m_colour_map_coded_data_bit_depth );358 fscanf( fic, "%d", &seiColorMappingInfo->m_colour_map_target_bit_depth );359 fscanf( fic, "%d", &iVal );351 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_primaries ); 352 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_transfer_characteristics ); 353 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_matrix_coeffs ); 354 } 355 } 356 357 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colour_map_coded_data_bit_depth ); 358 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colour_map_target_bit_depth ); 359 retval = fscanf( fic, "%d", &iVal ); 360 360 seiColorMappingInfo->m_colorMapModelId = iVal; 361 361 … … 364 364 for( Int i=0 ; i<3 ; i++ ) 365 365 { 366 fscanf( fic, "%d", &seiColorMappingInfo->m_num_input_pivots[i] );366 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_num_input_pivots[i] ); 367 367 seiColorMappingInfo->m_coded_input_pivot_value[i] = new Int[ seiColorMappingInfo->m_num_input_pivots[i] ]; 368 368 seiColorMappingInfo->m_target_input_pivot_value[i] = new Int[ seiColorMappingInfo->m_num_input_pivots[i] ]; 369 369 for( Int j=0 ; j<seiColorMappingInfo->m_num_input_pivots[i] ; j++ ) 370 370 { 371 fscanf( fic, "%d", &seiColorMappingInfo->m_coded_input_pivot_value[i][j] );372 fscanf( fic, "%d", &seiColorMappingInfo->m_target_input_pivot_value[i][j] );373 } 374 } 375 376 fscanf( fic, "%d", &iVal );371 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_coded_input_pivot_value[i][j] ); 372 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_target_input_pivot_value[i][j] ); 373 } 374 } 375 376 retval = fscanf( fic, "%d", &iVal ); 377 377 seiColorMappingInfo->m_matrix_flag = iVal; 378 378 if( seiColorMappingInfo->m_matrix_flag ) 379 379 { 380 fscanf( fic, "%d", &seiColorMappingInfo->m_log2_matrix_denom );380 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_log2_matrix_denom ); 381 381 for( Int i=0 ; i<3 ; i++ ) 382 382 { 383 383 for( Int j=0 ; j<3 ; j++ ) 384 384 { 385 fscanf( fic, "%d", &seiColorMappingInfo->m_matrix_coef[i][j] );385 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_matrix_coef[i][j] ); 386 386 } 387 387 } … … 390 390 for( Int i=0 ; i<3 ; i++ ) 391 391 { 392 fscanf( fic, "%d", &seiColorMappingInfo->m_num_output_pivots[i] );392 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_num_output_pivots[i] ); 393 393 seiColorMappingInfo->m_coded_output_pivot_value[i] = new Int[ seiColorMappingInfo->m_num_output_pivots[i] ]; 394 394 seiColorMappingInfo->m_target_output_pivot_value[i] = new Int[ seiColorMappingInfo->m_num_output_pivots[i] ]; 395 395 for( Int j=0 ; j<seiColorMappingInfo->m_num_output_pivots[i] ; j++ ) 396 396 { 397 fscanf( fic, "%d", &seiColorMappingInfo->m_coded_output_pivot_value[i][j] );398 fscanf( fic, "%d", &seiColorMappingInfo->m_target_output_pivot_value[i][j] );397 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_coded_output_pivot_value[i][j] ); 398 retval = fscanf( fic, "%d", &seiColorMappingInfo->m_target_output_pivot_value[i][j] ); 399 399 } 400 400 }
Note: See TracChangeset for help on using the changeset viewer.