[313] | 1 | /** \file TAppEncLayerCfg.cpp |
---|
| 2 | \brief Handle encoder configuration parameters |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | #include <stdlib.h> |
---|
| 6 | #include <cassert> |
---|
| 7 | #include <cstring> |
---|
| 8 | #include <string> |
---|
| 9 | #include "TLibCommon/TComRom.h" |
---|
| 10 | #include "TAppEncCfg.h" |
---|
| 11 | #include "TAppEncLayerCfg.h" |
---|
| 12 | #include "TAppCommon/program_options_lite.h" |
---|
| 13 | |
---|
| 14 | #ifdef WIN32 |
---|
| 15 | #define strdup _strdup |
---|
| 16 | #endif |
---|
| 17 | |
---|
| 18 | using namespace std; |
---|
| 19 | namespace po = df::program_options_lite; |
---|
| 20 | |
---|
| 21 | //! \ingroup TAppEncoder |
---|
| 22 | //! \{ |
---|
| 23 | |
---|
| 24 | // ==================================================================================================================== |
---|
| 25 | // Constructor / destructor / initialization / destroy |
---|
| 26 | // ==================================================================================================================== |
---|
| 27 | #if SVC_EXTENSION |
---|
| 28 | TAppEncLayerCfg::TAppEncLayerCfg() |
---|
[1442] | 29 | : m_conformanceWindowMode(0) |
---|
[1381] | 30 | , m_aidQP(NULL) |
---|
| 31 | , m_repFormatIdx(-1) |
---|
[313] | 32 | { |
---|
[823] | 33 | m_confWinLeft = m_confWinRight = m_confWinTop = m_confWinBottom = 0; |
---|
[313] | 34 | m_aiPad[1] = m_aiPad[0] = 0; |
---|
[1030] | 35 | m_numRefLayerLocationOffsets = 0; |
---|
| 36 | ::memset(m_refLocationOffsetLayerId, 0, sizeof(m_refLocationOffsetLayerId)); |
---|
[313] | 37 | ::memset(m_scaledRefLayerLeftOffset, 0, sizeof(m_scaledRefLayerLeftOffset)); |
---|
| 38 | ::memset(m_scaledRefLayerTopOffset, 0, sizeof(m_scaledRefLayerTopOffset)); |
---|
| 39 | ::memset(m_scaledRefLayerRightOffset, 0, sizeof(m_scaledRefLayerRightOffset)); |
---|
| 40 | ::memset(m_scaledRefLayerBottomOffset, 0, sizeof(m_scaledRefLayerBottomOffset)); |
---|
[849] | 41 | ::memset(m_scaledRefLayerOffsetPresentFlag, 0, sizeof(m_scaledRefLayerOffsetPresentFlag)); |
---|
| 42 | ::memset(m_refRegionOffsetPresentFlag, 0, sizeof(m_refRegionOffsetPresentFlag)); |
---|
| 43 | ::memset(m_refRegionLeftOffset, 0, sizeof(m_refRegionLeftOffset)); |
---|
| 44 | ::memset(m_refRegionTopOffset, 0, sizeof(m_refRegionTopOffset)); |
---|
| 45 | ::memset(m_refRegionRightOffset, 0, sizeof(m_refRegionRightOffset)); |
---|
| 46 | ::memset(m_refRegionBottomOffset, 0, sizeof(m_refRegionBottomOffset)); |
---|
| 47 | ::memset(m_resamplePhaseSetPresentFlag, 0, sizeof(m_resamplePhaseSetPresentFlag)); |
---|
| 48 | ::memset(m_phaseHorLuma, 0, sizeof(m_phaseHorLuma)); |
---|
| 49 | ::memset(m_phaseVerLuma, 0, sizeof(m_phaseVerLuma)); |
---|
| 50 | ::memset(m_phaseHorChroma, 0, sizeof(m_phaseHorChroma)); |
---|
| 51 | ::memset(m_phaseVerChroma, 0, sizeof(m_phaseVerChroma)); |
---|
[1487] | 52 | #if SCALABLE_REXT |
---|
| 53 | // variables uninitialized otherwise |
---|
| 54 | m_intraConstraintFlag = false; |
---|
| 55 | m_lowerBitRateConstraintFlag = false; |
---|
| 56 | m_onePictureOnlyConstraintFlag = false; |
---|
| 57 | #endif |
---|
[313] | 58 | } |
---|
| 59 | |
---|
| 60 | TAppEncLayerCfg::~TAppEncLayerCfg() |
---|
| 61 | { |
---|
| 62 | if ( m_aidQP ) |
---|
| 63 | { |
---|
| 64 | delete[] m_aidQP; |
---|
| 65 | } |
---|
| 66 | } |
---|
| 67 | |
---|
[494] | 68 | #endif //SVC_EXTENSION |
---|
[313] | 69 | |
---|
| 70 | |
---|
| 71 | //! \} |
---|