Changeset 856 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
11 Aug 2014, 19:11:02 (10 years ago)
Author:
seregin
Message:

CRI SEI patch provided by Andrivon Pierre <Pierre.Andrivon@…>

Changes:

  • General code cleaning-up and improvement
  • Alignment of code with latest spec (JCTVC-R1013_v3)
  • Tested successfully for macro SVC_EXTENSION=1 and SVC_EXTENSION=0

At the encoder, parameters of the SEI are input through a file.
At the decoder, when present, CRI SEI is applied with the runtime parameter --SEIColourRemappingInfo (same as --SEIDecodedPictureHash)

Location:
branches/SHM-dev/source/Lib/TLibCommon
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/SEI.h

    r846 r856  
    9898#endif
    9999#endif
    100 #if Q0074_SEI_COLOR_MAPPING
    101     COLOR_MAPPING_INFO                   = 143,
     100#if Q0074_COLOUR_REMAPPING_SEI
     101    COLOUR_REMAPPING_INFO                = 143,
    102102#endif
    103103#if Q0078_ADD_LAYER_SETS
     
    447447};
    448448#endif
    449 #if Q0074_SEI_COLOR_MAPPING
    450 class SEIColorMappingInfo : public SEI
    451 {
    452 public:
    453   PayloadType payloadType() const { return COLOR_MAPPING_INFO; }
    454   SEIColorMappingInfo() {
    455   }
    456   virtual ~SEIColorMappingInfo() {}
    457 
    458   Int   m_colorMapId;
    459   Bool  m_colorMapCancelFlag;
    460   Bool  m_colorMapPersistenceFlag;
    461   Bool  m_colorMap_video_signal_type_present_flag;
    462   Bool  m_colorMap_video_full_range_flag;
    463   Int   m_colorMap_primaries;
    464   Int   m_colorMap_transfer_characteristics;
    465   Int   m_colorMap_matrix_coeffs;
    466   Int   m_colorMapModelId;
    467 
    468   Int   m_colour_map_coded_data_bit_depth;
    469   Int   m_colour_map_target_bit_depth;
    470 
    471   Int   m_num_input_pivots[3];
    472   Int*  m_coded_input_pivot_value[3];
    473   Int*  m_target_input_pivot_value[3];
    474  
    475   Bool  m_matrix_flag;
    476   Int   m_log2_matrix_denom;
    477   Int   m_matrix_coef[3][3];
    478 
    479   Int   m_num_output_pivots[3];
    480   Int*  m_coded_output_pivot_value[3];
    481   Int*  m_target_output_pivot_value[3];
     449#if Q0074_COLOUR_REMAPPING_SEI
     450class SEIColourRemappingInfo : public SEI
     451{
     452public:
     453  PayloadType payloadType() const { return COLOUR_REMAPPING_INFO; }
     454  SEIColourRemappingInfo() {}
     455  ~SEIColourRemappingInfo() {}
     456 
     457  Int   m_colourRemapId;
     458  Bool  m_colourRemapCancelFlag;
     459  Bool  m_colourRemapPersistenceFlag;
     460  Bool  m_colourRemapVideoSignalTypePresentFlag;
     461  Bool  m_colourRemapVideoFullRangeFlag;
     462  Int   m_colourRemapPrimaries;
     463  Int   m_colourRemapTransferCharacteristics;
     464  Int   m_colourRemapMatrixCoeffs;
     465  Int   m_colourRemapCodedDataBitDepth;
     466  Int   m_colourRemapTargetBitDepth;
     467  Int   m_preLutNumValMinus1[3];
     468  std::vector<Int> m_preLutCodedValue[3];
     469  std::vector<Int> m_preLutTargetValue[3];
     470  Bool  m_colourRemapMatrixPresentFlag;
     471  Int   m_log2MatrixDenom;
     472  Int   m_colourRemapCoeffs[3][3];
     473  Int   m_postLutNumValMinus1[3];
     474  std::vector<Int> m_postLutCodedValue[3];
     475  std::vector<Int> m_postLutTargetValue[3];
    482476};
    483477#endif
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp

    r815 r856  
    366366}
    367367
    368 #if SVC_EXTENSION
    369368Void TComPicYuv::dump( Char* pFileName, Bool bAdd, Int bitDepth )
    370369{
     
    431430}
    432431
    433 #endif
    434 
    435432//! \}
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.h

    r815 r856  
    191191  Void convertToMonochrome();
    192192#endif
     193#endif //SVC_EXTENSION
    193194  Void dump( Char* pFileName, Bool bAdd, Int bitDepth );
    194 #endif //SVC_EXTENSION
    195195
    196196};// END CLASS DEFINITION TComPicYuv
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r854 r856  
    109109#define R0300_CGS_RES_COEFF_CODING       1      ///< JCTVC-R0300: improved residual coefficient coding for R0151
    110110#endif
    111 #define O0194_WEIGHTED_PREDICTION_CGS    1      ///< JCTVC-O0194: Weighted prediciton for color gamut scalability
     111#define O0194_WEIGHTED_PREDICTION_CGS    1      ///< JCTVC-O0194: Weighted prediction for colour gamut scalability
    112112#define POC_RESET_FLAG                   0      ///< JCTVC-N0244: POC reset flag for  layer pictures.
    113113#define POC_RESET_IDC                    1      ///< JCTVC-P0041: Include poc_reset_idc and related derivation - eventually will replace POC_RESET_FLAG
     
    280280#define MAX_SUB_STREAMS                  1024
    281281#endif
    282 #define Q0074_SEI_COLOR_MAPPING          1      ///< JCTVC-Q0074, SEI Color Mapping
    283282#define LAYERS_NOT_PRESENT_SEI           1      ///< JCTVC-M0043: add layers not present SEI.
    284283#define N0383_IL_CONSTRAINED_TILE_SETS_SEI  1
     
    288287
    289288#endif // SVC_EXTENSION
     289#define Q0074_COLOUR_REMAPPING_SEI       1      ///< JCTVC-Q0074, JCTVC-R0344: SEI Colour Remapping Information
    290290
    291291
Note: See TracChangeset for help on using the changeset viewer.