Changeset 1460 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder


Ignore:
Timestamp:
20 Aug 2015, 20:54:17 (9 years ago)
Author:
seregin
Message:

port rev 4594

Location:
branches/SHM-dev/source/App/TAppEncoder
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1459 r1460  
    774774  Int*    cfg_maxTidIlRefPicsPlus1[MAX_LAYERS];
    775775#if Q0074_COLOUR_REMAPPING_SEI
    776   string* cfg_colourRemapSEIFileName[MAX_LAYERS];
     776  string* cfg_colourRemapSEIFileRoot[MAX_LAYERS];
    777777#endif
    778778  Bool*   cfg_entropyCodingSyncEnabledFlag[MAX_LAYERS];
     
    793793    cfg_fQP[layer]          = &m_apcLayerCfg[layer]->m_fQP;
    794794#if Q0074_COLOUR_REMAPPING_SEI
    795     cfg_colourRemapSEIFileName[layer] = &m_apcLayerCfg[layer]->m_colourRemapSEIFileName;
     795    cfg_colourRemapSEIFileRoot[layer] = &m_apcLayerCfg[layer]->m_colourRemapSEIFileRoot;
    796796#endif
    797797    cfg_repFormatIdx[layer]         = &m_apcLayerCfg[layer]->m_repFormatIdx;
     
    10731073  ("PhaseVerChroma%d",                              cfg_phaseVerChromaPtr,            string(""), m_numLayers, "chroma shift in the vertical   direction used in resampling proces")
    10741074#if Q0074_COLOUR_REMAPPING_SEI
    1075   ("SEIColourRemappingInfoFileRoot%d",              cfg_colourRemapSEIFileName,       string(""), m_numLayers, "Colour Remapping Information SEI parameters file name for layer %d")
     1075  ("SEIColourRemappingInfoFileRoot%d,-cri",         cfg_colourRemapSEIFileRoot,       string(""), m_numLayers, "Colour Remapping Information SEI parameters root file name (wo num ext)")
    10761076#endif
    10771077  ("InputBitDepth%d",                                cfg_InputBitDepth[CHANNEL_TYPE_LUMA],     8, m_numLayers, "Bit-depth of input file for layer %d")
     
    11411141#if !SVC_EXTENSION
    11421142  ("FrameRate,-fr",                                   m_iFrameRate,                                         0, "Frame rate")
    1143 #if Q0074_COLOUR_REMAPPING_SEI
    1144   ("SEIColourRemappingInfoFileRoot",                  m_colourRemapSEIFileName,                    string(""), "Colour Remapping Information SEI parameters file name")
    1145 #endif
    1146 #endif //SVC_EXTENSION
     1143#endif
    11471144  ("FrameSkip,-fs",                                   m_FrameSkip,                                         0u, "Number of frames to skip at start of input YUV")
    11481145  ("FramesToBeEncoded,f",                             m_framesToBeEncoded,                                  0, "Number of frames to be encoded (default=all)")
     
    14621459  ("Log2MaxMvLengthHorizontal",                       m_log2MaxMvLengthHorizontal,                         15, "Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units")
    14631460  ("Log2MaxMvLengthVertical",                         m_log2MaxMvLengthVertical,                           15, "Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units")
     1461#if !SVC_EXTENSION
     1462#if Q0074_COLOUR_REMAPPING_SEI
     1463  ("SEIColourRemappingInfoFileRoot,-cri",             m_colourRemapSEIFileRoot,                    string(""), "Colour Remapping Information SEI parameters root file name (wo num ext)")
     1464#endif
     1465#endif
    14641466  ("SEIRecoveryPoint",                                m_recoveryPointSEIEnabled,                        false, "Control generation of recovery point SEI messages")
    14651467  ("SEIBufferingPeriod",                              m_bufferingPeriodSEIEnabled,                      false, "Control generation of buffering period SEI messages")
     
    15661568  ("SEIMasteringDisplayPrimaries",                    cfg_DisplayPrimariesCode,       cfg_DisplayPrimariesCode, "Mastering display primaries for all three colour planes in CIE xy coordinates in increments of 1/50000 (results in the ranges 0 to 50000 inclusive)")
    15671569  ("SEIMasteringDisplayWhitePoint",                   cfg_DisplayWhitePointCode,     cfg_DisplayWhitePointCode, "Mastering display white point CIE xy coordinates in normalised increments of 1/50000 (e.g. 0.333 = 16667)")
    1568  
     1570
    15691571#if LAYERS_NOT_PRESENT_SEI
    15701572  ("SEILayersNotPresent",                             m_layersNotPresentSEIEnabled,             0, "Control generation of layers not present SEI message")
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h

    r1459 r1460  
    457457  Int       m_log2MaxMvLengthHorizontal;                      ///< Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units
    458458  Int       m_log2MaxMvLengthVertical;                        ///< Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units
     459#if !SVC_EXTENSION
     460#if Q0074_COLOUR_REMAPPING_SEI
     461  std::string m_colourRemapSEIFileRoot;
     462#endif
     463#endif
    459464
    460465  std::string m_summaryOutFilename;                           ///< filename to use for producing summary output file.
     
    486491  Bool      m_elRapSliceBEnabled;
    487492#endif
    488 #if Q0074_COLOUR_REMAPPING_SEI
    489 #if !SVC_EXTENSION
    490   string    m_colourRemapSEIFileName;
    491 #endif
    492 #endif
     493
    493494  // internal member functions
    494495#if SVC_EXTENSION
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r1451 r1460  
    3131, m_repFormatIdx(-1)
    3232{
    33 #if Q0074_COLOUR_REMAPPING_SEI
    34   memset( m_colourRemapSEIPreLutCodedValue,   0, sizeof(m_colourRemapSEIPreLutCodedValue) );
    35   memset( m_colourRemapSEIPreLutTargetValue,  0, sizeof(m_colourRemapSEIPreLutTargetValue) );
    36   memset( m_colourRemapSEIPostLutCodedValue,  0, sizeof(m_colourRemapSEIPostLutCodedValue) );
    37   memset( m_colourRemapSEIPostLutTargetValue, 0, sizeof(m_colourRemapSEIPostLutTargetValue) );
    38 #endif
    3933  m_confWinLeft = m_confWinRight = m_confWinTop = m_confWinBottom = 0;
    4034  m_aiPad[1] = m_aiPad[0] = 0;
     
    6458    delete[] m_aidQP;
    6559  }
    66 #if Q0074_COLOUR_REMAPPING_SEI
    67   for( Int c=0 ; c<3 ; c++)
    68   {
    69     if ( m_colourRemapSEIPreLutCodedValue[c] )
    70     {
    71       delete[] m_colourRemapSEIPreLutCodedValue[c];
    72     }
    73     if ( m_colourRemapSEIPreLutTargetValue[c] )
    74     {
    75       delete[] m_colourRemapSEIPreLutTargetValue[c];
    76     }
    77     if ( m_colourRemapSEIPostLutCodedValue[c] )
    78     {
    79       delete[] m_colourRemapSEIPostLutCodedValue[c];
    80     }
    81     if ( m_colourRemapSEIPostLutTargetValue[c] )
    82     {
    83       delete[] m_colourRemapSEIPostLutTargetValue[c];
    84     }
    85   }
    86 #endif
    8760}
    8861
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h

    r1459 r1460  
    135135  Int       m_repFormatIdx;
    136136#if Q0074_COLOUR_REMAPPING_SEI
    137   string    m_colourRemapSEIFileName;                         ///< Colour Remapping Information SEI message parameters file
    138   Int       m_colourRemapSEIId;
    139   Bool      m_colourRemapSEICancelFlag;
    140   Bool      m_colourRemapSEIPersistenceFlag;
    141   Bool      m_colourRemapSEIVideoSignalInfoPresentFlag;
    142   Bool      m_colourRemapSEIFullRangeFlag;
    143   Int       m_colourRemapSEIPrimaries;
    144   Int       m_colourRemapSEITransferFunction;
    145   Int       m_colourRemapSEIMatrixCoefficients;
    146   Int       m_colourRemapSEIInputBitDepth;
    147   Int       m_colourRemapSEIBitDepth;
    148   Int       m_colourRemapSEIPreLutNumValMinus1[3];
    149   Int*      m_colourRemapSEIPreLutCodedValue[3];
    150   Int*      m_colourRemapSEIPreLutTargetValue[3];
    151   Bool      m_colourRemapSEIMatrixPresentFlag;
    152   Int       m_colourRemapSEILog2MatrixDenom;
    153   Int       m_colourRemapSEICoeffs[3][3];
    154   Int       m_colourRemapSEIPostLutNumValMinus1[3];
    155   Int*      m_colourRemapSEIPostLutCodedValue[3];
    156   Int*      m_colourRemapSEIPostLutTargetValue[3];
     137  string    m_colourRemapSEIFileRoot;
    157138#endif
    158139
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1459 r1460  
    505505    Bool&          m_bUseSAO                                    = m_apcLayerCfg[layer]->m_bUseSAO;
    506506
    507     string&        m_colourRemapSEIFileName                     = m_apcLayerCfg[layer]->m_colourRemapSEIFileName;
    508 
    509507    GOPEntry*      m_GOPList                                    = m_apcLayerCfg[layer]->m_GOPList;
    510508    Int&           m_extraRPSs                                  = m_apcLayerCfg[layer]->m_extraRPSs;
    511509    Int&           m_maxTempLayer                               = m_apcLayerCfg[layer]->m_maxTempLayer;
     510
     511#if Q0074_COLOUR_REMAPPING_SEI
     512    string&        m_colourRemapSEIFileRoot                     = m_apcLayerCfg[layer]->m_colourRemapSEIFileRoot;
     513#endif
    512514#endif
    513515
     
    542544  m_cTEncTop.setGopList                                           ( m_GOPList );
    543545  m_cTEncTop.setExtraRPSs                                         ( m_extraRPSs );
    544 
    545546  for(Int i = 0; i < MAX_TLAYER; i++)
    546547  {
     
    765766  m_cTEncTop.setKneeSEIInputKneePoint                             ( m_kneeSEIInputKneePoint );
    766767  m_cTEncTop.setKneeSEIOutputKneePoint                            ( m_kneeSEIOutputKneePoint );
     768#if Q0074_COLOUR_REMAPPING_SEI
     769  m_cTEncTop.setColourRemapInfoSEIFileRoot                        ( m_colourRemapSEIFileRoot );
     770#endif
    767771  m_cTEncTop.setMasteringDisplaySEI                               ( m_masteringDisplay );
    768772
     
    842846  m_cTEncTop.setSummaryVerboseness                                ( m_summaryVerboseness );
    843847
    844 #if Q0074_COLOUR_REMAPPING_SEI
    845   m_cTEncTop.xSetCRISEIFileRoot                                   ( m_colourRemapSEIFileName );
    846 #endif
    847848#if LAYERS_NOT_PRESENT_SEI
    848849  m_cTEncTop.setLayersNotPresentSEIEnabled                        ( m_layersNotPresentSEIEnabled );
Note: See TracChangeset for help on using the changeset viewer.