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


Ignore:
Timestamp:
18 Apr 2014, 19:14:51 (12 years ago)
Author:
seregin
Message:

commit the patch implementing JCTVC-Q0074 provided by Bordes Philippe <philippe.bordes@…>

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

Legend:

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

    r652 r694  
    7979#endif
    8080#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
    81     INTER_LAYER_CONSTRAINED_TILE_SETS    = 138
     81    INTER_LAYER_CONSTRAINED_TILE_SETS    = 138,
    8282#endif
    8383#if SUB_BITSTREAM_PROPERTY_SEI
    84    ,SUB_BITSTREAM_PROPERTY               = 139    // Final PayloadType to be defined after finalization
     84    SUB_BITSTREAM_PROPERTY               = 139,    // Final PayloadType to be defined after finalization
    8585#endif
    8686#if O0164_MULTI_LAYER_HRD
    87    ,BSP_NESTING                          = 140
    88    ,BSP_INITIAL_ARRIVAL_TIME             = 141
    89    ,BSP_HRD                              = 142
     87    BSP_NESTING                          = 140,
     88    BSP_INITIAL_ARRIVAL_TIME             = 141,
     89    BSP_HRD                              = 142,
     90#endif
     91#if Q0074_SEI_COLOR_MAPPING
     92    COLOR_MAPPING_INFO                   = 143,
    9093#endif
    9194  };
     
    405408};
    406409
     410#if Q0074_SEI_COLOR_MAPPING
     411class SEIColorMappingInfo : public SEI
     412{
     413public:
     414  PayloadType payloadType() const { return COLOR_MAPPING_INFO; }
     415  SEIColorMappingInfo() {
     416  }
     417  virtual ~SEIColorMappingInfo() {}
     418
     419  Int   m_colorMapId;
     420  Bool  m_colorMapCancelFlag;
     421  Bool  m_colorMapPersistenceFlag;
     422  Bool  m_colorMap_video_signal_type_present_flag;
     423  Bool  m_colorMap_video_full_range_flag;
     424  UChar m_colorMap_primaries;
     425  UChar m_colorMap_transfer_characteristics;
     426  UChar m_colorMap_matrix_coeffs;
     427  UChar m_colorMapModelId;
     428
     429  Int   m_colour_map_coded_data_bit_depth;
     430  Int   m_colour_map_target_bit_depth;
     431
     432  Int   m_num_input_pivots[3];
     433  Int*  m_coded_input_pivot_value[3];
     434  Int*  m_target_input_pivot_value[3];
     435 
     436  Bool  m_matrix_flag;
     437  Int   m_log2_matrix_denom;
     438  Int   m_matrix_coef[3][3];
     439
     440  Int   m_num_output_pivots[3];
     441  Int*  m_coded_output_pivot_value[3];
     442  Int*  m_target_output_pivot_value[3];
     443};
     444#endif
     445
    407446#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
    408447class SEIInterLayerConstrainedTileSets : public SEI
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComDataCU.cpp

    r688 r694  
    35043504  Int topStartL  = baseColPic->getSlice(0)->getSPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowTopOffset();
    35053505#if Q0200_CONFORMANCE_BL_SIZE
    3506 leftStartL+=baseColPic->getConformanceWindow().getWindowLeftOffset();
    3507 topStartL+=baseColPic->getConformanceWindow().getWindowTopOffset();
     3506  leftStartL += baseColPic->getConformanceWindow().getWindowLeftOffset();
     3507  topStartL  += baseColPic->getConformanceWindow().getWindowTopOffset();
    35083508#endif
    35093509#else
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r693 r694  
    127127  Int strideEL  = pcUsPic->getStride();
    128128#if Q0200_CONFORMANCE_BL_SIZE
    129 const Window &confBL = currSlice->getBaseColPic(refLayerIdc)->getConformanceWindow();
    130 widthBL-= (confBL.getWindowLeftOffset()+confBL.getWindowRightOffset());
    131 heightBL-=(confBL.getWindowBottomOffset()+confBL.getWindowTopOffset());
     129  const Window &confBL = currSlice->getBaseColPic(refLayerIdc)->getConformanceWindow();
     130  widthBL  -= (confBL.getWindowLeftOffset() + confBL.getWindowRightOffset());
     131  heightBL -= (confBL.getWindowBottomOffset() + confBL.getWindowTopOffset());
    132132#endif
    133133#if P0312_VERT_PHASE_ADJ
     
    322322    Int leftOffset = leftStartL > 0 ? leftStartL : 0;
    323323#if Q0200_CONFORMANCE_BL_SIZE
    324 leftStartL+= confBL.getWindowLeftOffset()<<4;
    325 topStartL+= confBL.getWindowTopOffset()<<4;
     324    leftStartL += confBL.getWindowLeftOffset() << 4;
     325    topStartL  += confBL.getWindowTopOffset() << 4;
    326326#endif
    327327#if N0214_INTERMEDIATE_BUFFER_16BITS
     
    419419    heightBL  = pcBasePic->getHeight();
    420420#if Q0200_CONFORMANCE_BL_SIZE
    421 widthBL-= confBL.getWindowLeftOffset()+confBL.getWindowRightOffset();
    422 heightBL-=confBL.getWindowBottomOffset()+confBL.getWindowTopOffset();
     421    widthBL  -= confBL.getWindowLeftOffset()+confBL.getWindowRightOffset();
     422    heightBL -= confBL.getWindowBottomOffset()+confBL.getWindowTopOffset();
    423423#endif
    424424    widthEL   = pcUsPic->getWidth () - scalEL.getWindowLeftOffset() - scalEL.getWindowRightOffset();
  • branches/SHM-6-dev/source/Lib/TLibCommon/TypeDef.h

    r693 r694  
    8484
    8585#define O0164_MULTI_LAYER_HRD            1      ///< JCTVC-O0164: Multi-layer HRD operation
     86#define Q0074_SEI_COLOR_MAPPING          1      ///< JCTVC-Q0074, SEI Color Mapping
    8687
    8788#define O0194_DIFFERENT_BITDEPTH_EL_BL   1      ///< JCTVC-O0194: Support for different bitdepth values for BL and EL, add required configuration parameters (and Some bugfixes when REPN_FORMAT_IN_VPS (JCTVC-N0092) is enabled)
Note: See TracChangeset for help on using the changeset viewer.