Changeset 405 in SHVCSoftware for branches


Ignore:
Timestamp:
26 Sep 2013, 10:32:02 (11 years ago)
Author:
ericsson
Message:

Scalability mask modification JCT3V-E0104 (Ericsson, A. Norkin)

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

Legend:

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

    r402 r405  
    502502  ("NumLayers",               m_numLayers, 1, "Number of layers to code")
    503503  ("ConformanceMode%d",       cfg_conformanceMode,0, MAX_LAYERS, "Window conformance mode (0: no cropping, 1:automatic padding, 2: padding, 3:cropping")
     504#if SCALABILITY_MASK_E0104
     505  ("ScalabilityMask1",        m_scalabilityMask[1], 0, "scalability_mask[1] (multiview)")
     506  ("ScalabilityMask2",        m_scalabilityMask[2], 1, "scalability_mask[2] (scalable)" )
     507#else
    504508  ("ScalabilityMask0",        m_scalabilityMask[0], 0, "scalability_mask[0] (multiview)")
    505509  ("ScalabilityMask1",        m_scalabilityMask[1], 1, "scalability_mask[1] (scalable)" )
     510#endif
    506511  ("BitstreamFile,b",         cfg_BitstreamFile, string(""), "Bitstream output file name")
    507512  ("InputBitDepth",           m_inputBitDepthY,    8, "Bit-depth of input file")
     
    21472152#if SVC_EXTENSION 
    21482153  printf("Total number of layers        : %d\n", m_numLayers       );
     2154#if SCALABILITY_MASK_E0104
     2155  printf("Multiview                     : %d\n", m_scalabilityMask[1] );
     2156  printf("Scalable                      : %d\n", m_scalabilityMask[2] );
     2157#else
    21492158  printf("Multiview                     : %d\n", m_scalabilityMask[0] );
    21502159  printf("Scalable                      : %d\n", m_scalabilityMask[1] );
     2160#endif
    21512161#if M0040_ADAPTIVE_RESOLUTION_CHANGE
    21522162  printf("Adaptive Resolution Change    : %d\n", m_adaptiveResolutionChange );
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.cpp

    r399 r405  
    496496    }
    497497#if MAX_ONE_RESAMPLING_DIRECT_LAYERS
     498#if SCALABILITY_MASK_E0104
     499    if( m_pcVPS->getScalabilityMask(2) )
     500#else
    498501    if( m_pcVPS->getScalabilityMask(1) )
     502#endif
    499503    {
    500504      Int numResampler = 0;
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TypeDef.h

    r401 r405  
    4040
    4141#define SVC_EXTENSION                    1
     42
     43#define SCALABILITY_MASK_E0104           1
    4244
    4345#define SYNTAX_BYTES                     10      ///< number of bytes taken by syntaxes per 4x4 block [RefIdxL0(1byte), RefIdxL1(1byte), MVxL0(2bytes), MVyL0(2bytes), MVxL1(2bytes), MVyL1(2bytes)]
  • branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r401 r405  
    306306
    307307          //only for scalable extension
     308#if SCALABILITY_MASK_E0104
     309          assert( pcSlice->getVPS()->getScalabilityMask(2) == true );
     310#else
    308311          assert( pcSlice->getVPS()->getScalabilityMask(1) == true );
     312#endif
    309313        }
    310314#if MAX_ONE_RESAMPLING_DIRECT_LAYERS
     315#if SCALABILITY_MASK_E0104
     316        if(pcSlice->getVPS()->getScalabilityMask(2))
     317#else
    311318        if(pcSlice->getVPS()->getScalabilityMask(1))
     319#endif
    312320        {
    313321          pcSlice->setPic(rpcPic);
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r389 r405  
    520520
    521521            //only for scalable extension
     522#if SCALABILITY_MASK_E0104
     523            assert( m_cVPS.getScalabilityMask(2) == true );
     524#else
    522525            assert( m_cVPS.getScalabilityMask(1) == true );
     526#endif
    523527          }
    524528        }
     
    557561
    558562            //only for scalable extension
     563#if SCALABILITY_MASK_E0104
     564            assert( m_cVPS.getScalabilityMask(2) == true );
     565#else
    559566            assert( m_cVPS.getScalabilityMask(1) == true );
     567#endif
    560568          }
    561569        }
Note: See TracChangeset for help on using the changeset viewer.