Ignore:
Timestamp:
25 Sep 2015, 06:51:14 (9 years ago)
Author:
chen
Message:

Commit the integration of 3D depth representation information SEI on behalf of Nokia.

by Yi-Wen Chen (yiwen.chen@…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.1-dev0-Nokia/source/Lib/TLibCommon/SEI.h

    r1337 r1339  
    925925};
    926926
    927 #if NH_MV_SEI_TBD
     927#if SEI_DRI_F0169
    928928class SEIDepthRepresentationInfo : public SEI
    929929{
    930 public:
    931   PayloadType payloadType( ) const { return DEPTH_REPRESENTATION_INFO; }
    932   SEIDepthRepresentationInfo ( ) { };
    933   ~SEIDepthRepresentationInfo( ) { };
    934   SEI* getCopy( ) const { return new SEIDepthRepresentationInfo(*this); };
    935 
    936   Void setupFromCfgFile( const Char*      cfgFile );
    937   Void setupFromSlice  ( const TComSlice* slice   );
    938   Bool checkCfg        ( const TComSlice* slice   );
    939 
    940   Bool      m_zNearFlag;
    941   Bool      m_zFarFlag;
    942   Bool      m_dMinFlag;
    943   Bool      m_dMaxFlag;
    944   Int       m_depthRepresentationType;
    945   Int       m_disparityRefViewId;
    946   Int       m_depthNonlinearRepresentationNumMinus1;
    947 };
    948 
    949 class SEIDepthRepInfoElement : public SEI
    950 {
    951 public:
    952   PayloadType payloadType( ) const { return DEPTH_REP_INFO_ELEMENT; }
    953   SEIDepthRepInfoElement ( ) { };
    954   ~SEIDepthRepInfoElement( ) { };
    955   SEI* getCopy( ) const { return new SEIDepthRepInfoElement(*this); };
    956 
    957   Void setupFromCfgFile( const Char*      cfgFile );
    958   Void setupFromSlice  ( const TComSlice* slice   );
    959   Bool checkCfg        ( const TComSlice* slice   );
    960 
    961   Bool      m_daSignFlag;
    962   Int       m_daExponent;
    963   Int       m_daMantissaLenMinus1;
    964   Int       m_daMantissa;
     930    public:
     931        PayloadType payloadType( ) const { return DEPTH_REPRESENTATION_INFO; }
     932        SEIDepthRepresentationInfo ( )
     933        {
     934            m_currLayerID=-1;
     935        };
     936        ~SEIDepthRepresentationInfo( ) { };
     937        SEI* getCopy( ) const { return new SEIDepthRepresentationInfo(*this); };
     938
     939        Void setupFromCfgFile( const Char*      cfgFile );
     940        Void setupFromSlice  ( const TComSlice* slice   );
     941        Bool checkCfg        ( const TComSlice* slice   );
     942        Void clear()
     943        {
     944            int i;
     945            m_zNearFlag.clear();
     946            m_zFarFlag.clear();
     947            m_dMinFlag.clear();
     948            m_dMaxFlag.clear();
     949
     950            for(i=0;i<m_zNear.size();i++)
     951                m_zNear[i].clear();
     952            m_zNear.clear();
     953
     954            for(i=0;i<m_zFar.size();i++)
     955                m_zFar[i].clear();
     956            m_zFar.clear();
     957
     958            for(i=0;i<m_dMin.size();i++)
     959                m_dMin[i].clear();
     960            m_dMin.clear();
     961
     962            for(i=0;i<m_dMax.size();i++)
     963                m_dMax[i].clear();
     964            m_dMax.clear();
     965
     966            for(i=0;i<m_depthRepresentationType.size();i++)
     967                m_depthRepresentationType[i].clear();
     968            m_depthRepresentationType.clear();
     969
     970            for(i=0;i<m_disparityRefViewId.size();i++)
     971                m_disparityRefViewId[i].clear();
     972            m_disparityRefViewId.clear();
     973
     974            for(i=0;i<m_depthNonlinearRepresentationNumMinus1.size();i++)
     975                m_depthNonlinearRepresentationNumMinus1[i].clear();
     976            m_depthNonlinearRepresentationNumMinus1.clear();
     977
     978            for(i=0;i<m_depth_nonlinear_representation_model.size();i++)
     979                m_depth_nonlinear_representation_model[i].clear();
     980            m_depth_nonlinear_representation_model.clear();           
     981
     982        }
     983        int m_currLayerID;
     984        BoolAry1d      m_zNearFlag;
     985        BoolAry1d      m_zFarFlag;
     986        BoolAry1d      m_dMinFlag;
     987        BoolAry1d      m_dMaxFlag;
     988        BoolAry2d      m_depthRepresentationInfoSeiPresentFlag;
     989        std::vector<std::vector<Double>> m_zNear,m_zFar,m_dMin,m_dMax;
     990
     991        IntAry2d       m_depthRepresentationType;
     992        IntAry2d       m_disparityRefViewId;
     993        IntAry2d       m_depthNonlinearRepresentationNumMinus1;
     994        IntAry2d m_depth_nonlinear_representation_model;
    965995};
    966996#endif
Note: See TracChangeset for help on using the changeset viewer.