Changeset 788 in SHVCSoftware


Ignore:
Timestamp:
6 Jun 2014, 19:34:06 (11 years ago)
Author:
seregin
Message:

remove N0214_INTERMEDIATE_BUFFER_16BITS

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

Legend:

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

    r787 r788  
    327327    Int bottomEndL = pcUsPic->getHeight() - scalEL.getWindowBottomOffset();
    328328    Int leftOffset = leftStartL > 0 ? leftStartL : 0;
    329 #if N0214_INTERMEDIATE_BUFFER_16BITS
    330329#if O0194_JOINT_US_BITSHIFT
    331330    // g_bitDepthY was set to EL bit-depth, but shift1 should be calculated using BL bit-depth
     
    339338#else
    340339    Int shift1 = g_bitDepthY - 8;
    341 #endif
    342340#endif
    343341
     
    356354      for( j = 0; j < heightBL ; j++ )
    357355      {
    358 #if N0214_INTERMEDIATE_BUFFER_16BITS
    359356        *piDstY = sumLumaHor(piSrcY, coeff) >> shift1;
    360 #else
    361         *piDstY = sumLumaHor(piSrcY, coeff);
    362 #endif
    363357        piSrcY += strideBL;
    364358        piDstY += strideEL;
     
    372366    pcTempPic->setHeight(heightEL);
    373367
    374 #if N0214_INTERMEDIATE_BUFFER_16BITS
    375368#if O0194_JOINT_US_BITSHIFT
    376369    Int nShift = 20 - g_bitDepthYLayer[currLayerId];
    377370#else
    378371    Int nShift = US_FILTER_PREC*2 - shift1;
    379 #endif
    380 #else
    381     const Int nShift = US_FILTER_PREC*2;
    382372#endif
    383373    Int iOffset = 1 << (nShift - 1);
     
    491481    heightBL  = min<Int>( pcBasePic->getHeight() >> 1, heightEL );
    492482
    493 #if N0214_INTERMEDIATE_BUFFER_16BITS
    494483#if O0194_JOINT_US_BITSHIFT
    495484    // g_bitDepthC was set to EL bit-depth, but shift1 should be calculated using BL bit-depth
     
    503492#else
    504493    shift1 = g_bitDepthC - 8;
    505 #endif
    506494#endif
    507495
     
    522510      for( j = 0; j < heightBL ; j++ )
    523511      {
    524 #if N0214_INTERMEDIATE_BUFFER_16BITS
    525512        *piDstU = sumChromaHor(piSrcU, coeff) >> shift1;
    526513        *piDstV = sumChromaHor(piSrcV, coeff) >> shift1;
    527 #else
    528         *piDstU = sumChromaHor(piSrcU, coeff);
    529         *piDstV = sumChromaHor(piSrcV, coeff);
    530 #endif
    531514
    532515        piSrcU += strideBL;
     
    543526    pcTempPic->setHeight(heightEL << 1);
    544527
    545 #if N0214_INTERMEDIATE_BUFFER_16BITS
    546528#if O0194_JOINT_US_BITSHIFT
    547529    nShift = 20 - g_bitDepthCLayer[currLayerId];
     
    550532#endif
    551533    iOffset = 1 << (nShift - 1);
    552 #endif
    553534
    554535    for( j = 0; j < pcTempPic->getHeight() >> 1; j++ )
  • branches/SHM-6-dev/source/Lib/TLibCommon/TypeDef.h

    r787 r788  
    163163#define DERIVE_LAYER_ID_LIST_VARIABLES   1      ///< Derived variables based on the variables in VPS - for use in syntax table parsing
    164164
    165 #define N0214_INTERMEDIATE_BUFFER_16BITS 1      ///< JCTVC-N0214: support base layer input more than 8 bits
    166165#define ARBITRARY_SPATIAL_RATIO          1      ///< JCTVC-N0219, JCTVC-N0273: Support arbitrary spatial ratio
    167166
Note: See TracChangeset for help on using the changeset viewer.