Changeset 1167 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 01:14:31 (9 years ago)
Author:
seregin
Message:

macro cleanup: VPS_VUI_VIDEO_SIGNAL_MOVE, VPS_VUI_VIDEO_SIGNAL

Location:
branches/SHM-dev/source/Lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1164 r1167  
    20452045  ::memset(m_minHorizontalCtuOffsetPlus1,   0, sizeof(m_minHorizontalCtuOffsetPlus1));
    20462046#endif
    2047 #if VPS_VUI_VIDEO_SIGNAL
     2047
    20482048  m_vidSigPresentVpsFlag=true;
    20492049  m_vpsVidSigInfo=1;
     
    20582058    m_vpsMatCoeff[i] = 2;
    20592059  }
    2060 #endif
     2060
    20612061  ::memset(m_bitRatePresentFlag, 0, sizeof(m_bitRatePresentFlag));
    20622062  ::memset(m_picRatePresentFlag, 0, sizeof(m_picRatePresentFlag));
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1164 r1167  
    693693  Bool       m_ctuBasedOffsetEnabledFlag   [MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    694694  Int        m_minHorizontalCtuOffsetPlus1 [MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    695 #endif 
    696 #if VPS_VUI_VIDEO_SIGNAL
     695#endif
     696
    697697  Bool       m_vidSigPresentVpsFlag;
    698698  Int        m_vpsVidSigInfo;
     
    703703  Int        m_vpsTransChar[16];
    704704  Int        m_vpsMatCoeff[16];
    705 #endif
    706705
    707706  Bool       m_bitRatePresentVpsFlag;
     
    10841083  Void   setMinHorizontalCtuOffsetPlus1 ( Int currLayerId, Int refLayerId, Int val )   { m_minHorizontalCtuOffsetPlus1[currLayerId][refLayerId] = val;} 
    10851084#endif
    1086 #if VPS_VUI_VIDEO_SIGNAL
     1085
    10871086  Bool   getVideoSigPresentVpsFlag()           { return m_vidSigPresentVpsFlag; }
    10881087  Void   setVideoSigPresentVpsFlag(Bool x)     { m_vidSigPresentVpsFlag = x;    }
     
    11011100  Int    getMaxtrixCoeff(Int idx)              { return m_vpsMatCoeff[idx];     }
    11021101  Void   setMaxtrixCoeff(Int idx, Int x)       { m_vpsMatCoeff[idx] = x;        }
    1103 #endif
     1102
    11041103  Bool   getBitRatePresentVpsFlag()       { return m_bitRatePresentVpsFlag; }
    11051104  Void   setBitRatePresentVpsFlag(Bool x) { m_bitRatePresentVpsFlag = x;    }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1166 r1167  
    119119#define N0160_VUI_EXT_ILP_REF            1      ///< VUI extension inter-layer dependency offset signalling
    120120
    121 #define VPS_VUI_VIDEO_SIGNAL             1      ///< JCTVC-O0118 video signal information
    122 #if VPS_VUI_VIDEO_SIGNAL
    123 #define VPS_VUI_VIDEO_SIGNAL_MOVE        1      ///< JCTVC-P0076 Move video signal information syntax structure earlier in the VPS VUI
    124 #endif
    125 
    126121#define AVC_BASE                         1      ///< YUV BL reading for AVC base SVC
    127122
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1166 r1167  
    34673467  }
    34683468
    3469 #if VPS_VUI_VIDEO_SIGNAL_MOVE
    34703469  READ_FLAG( uiCode, "video_signal_info_idx_present_flag" ); vps->setVideoSigPresentVpsFlag( uiCode == 1 );
    34713470  if (vps->getVideoSigPresentVpsFlag())
     
    35093508  }
    35103509
    3511 #endif
    35123510#if VPS_VUI_TILES_NOT_IN_USE__FLAG
    35133511  UInt layerIdx;
     
    35893587    }
    35903588  }
    3591 #endif
    3592 #if VPS_VUI_VIDEO_SIGNAL
    3593 #if VPS_VUI_VIDEO_SIGNAL_MOVE
    3594 #else
    3595   READ_FLAG( uiCode, "video_signal_info_idx_present_flag" ); vps->setVideoSigPresentVpsFlag( uiCode == 1 );
    3596   if (vps->getVideoSigPresentVpsFlag())
    3597   {
    3598     READ_CODE(4, uiCode, "vps_num_video_signal_info_minus1" ); vps->setNumVideoSignalInfo(uiCode + 1);
    3599   }
    3600   else
    3601   {
    3602     vps->setNumVideoSignalInfo(vps->getMaxLayers());
    3603   }
    3604 
    3605 
    3606   for(i = 0; i < vps->getNumVideoSignalInfo(); i++)
    3607   {
    3608     READ_CODE(3, uiCode, "video_vps_format" ); vps->setVideoVPSFormat(i,uiCode);
    3609     READ_FLAG(uiCode, "video_full_range_vps_flag" ); vps->setVideoFullRangeVpsFlag(i,uiCode);
    3610     READ_CODE(8, uiCode, "color_primaries_vps" ); vps->setColorPrimaries(i,uiCode);
    3611     READ_CODE(8, uiCode, "transfer_characteristics_vps" ); vps->setTransCharacter(i,uiCode);
    3612     READ_CODE(8, uiCode, "matrix_coeffs_vps" );vps->setMaxtrixCoeff(i,uiCode);
    3613   }
    3614   if(!vps->getVideoSigPresentVpsFlag())
    3615   {
    3616     for (i=0; i < vps->getMaxLayers(); i++)
    3617     {
    3618       vps->setVideoSignalInfoIdx(i,i);
    3619     }
    3620   }
    3621   else {
    3622     vps->setVideoSignalInfoIdx(0,0);
    3623     if (vps->getNumVideoSignalInfo() > 1 )
    3624     {
    3625       for (i=1; i < vps->getMaxLayers(); i++)
    3626         READ_CODE(4, uiCode, "vps_video_signal_info_idx" ); vps->setVideoSignalInfoIdx(i, uiCode);
    3627     }
    3628     else {
    3629       for (i=1; i < vps->getMaxLayers(); i++)
    3630       {
    3631         vps->setVideoSignalInfoIdx(i,0);
    3632       }
    3633     }
    3634   }
    3635 #endif
    36363589#endif
    36373590
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1166 r1167  
    24302430    }
    24312431  }
    2432 #if VPS_VUI_VIDEO_SIGNAL_MOVE
     2432
    24332433  WRITE_FLAG( vps->getVideoSigPresentVpsFlag(), "video_signal_info_idx_present_flag" );
    24342434  if (vps->getVideoSigPresentVpsFlag())
     
    24532453    }
    24542454  }
    2455 #endif
     2455
    24562456#if VPS_VUI_TILES_NOT_IN_USE__FLAG
    24572457  UInt layerIdx;
     
    25332533  }
    25342534#endif
    2535 #if VPS_VUI_VIDEO_SIGNAL
    2536 #if VPS_VUI_VIDEO_SIGNAL_MOVE
    2537 #else
    2538     WRITE_FLAG( vps->getVideoSigPresentVpsFlag(), "video_signal_info_idx_present_flag" );
    2539     if (vps->getVideoSigPresentVpsFlag())
    2540     {
    2541         WRITE_CODE(vps->getNumVideoSignalInfo()-1, 4, "vps_num_video_signal_info_minus1" );
    2542     }
    2543    
    2544     for(i = 0; i < vps->getNumVideoSignalInfo(); i++)
    2545     {
    2546         WRITE_CODE(vps->getVideoVPSFormat(i), 3, "video_vps_format" );
    2547         WRITE_FLAG(vps->getVideoFullRangeVpsFlag(i), "video_full_range_vps_flag" );
    2548         WRITE_CODE(vps->getColorPrimaries(i), 8, "color_primaries_vps" );
    2549         WRITE_CODE(vps->getTransCharacter(i), 8, "transfer_characteristics_vps" );
    2550         WRITE_CODE(vps->getMaxtrixCoeff(i), 8, "matrix_coeffs_vps" );
    2551     }
    2552    
    2553     if (vps->getVideoSigPresentVpsFlag() && vps->getNumVideoSignalInfo() > 1 )
    2554     {
    2555         for (i=1; i < vps->getMaxLayers(); i++)
    2556             WRITE_CODE(vps->getVideoSignalInfoIdx(i), 4, "vps_video_signal_info_idx" );
    2557     }
    2558 #endif
    2559 #endif
     2535
    25602536#if O0164_MULTI_LAYER_HRD
    25612537    WRITE_FLAG(vps->getVpsVuiBspHrdPresentFlag(), "vps_vui_bsp_hrd_present_flag" );
Note: See TracChangeset for help on using the changeset viewer.