Ignore:
Timestamp:
23 May 2013, 15:40:36 (12 years ago)
Author:
tech
Message:

Integrated 3D encoder control, camera parameters, renderer and MV fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.2-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp

    r362 r438  
    235235        Int offset = (Int)( ((currDC<<log2Denom) - ((Int64)weight * refDC) + (Int64)realOffset) >> realLog2Denom );
    236236
    237         // Chroma offset range limitation
     237        // Chroma offset range limination
    238238        if(comp)
    239239        {
    240           Int pred = ( 128 - ( ( 128*weight)>>(log2Denom) ) );
     240          Int shift = 1 << (g_bitDepthC - 1);
     241          Int pred = ( shift - ( ( shift*weight)>>(log2Denom) ) );
    241242          Int deltaOffset = Clip3( -512, 511, (offset - pred) );    // signed 10bit
    242243          offset = Clip3( -128, 127, (deltaOffset + pred) );        // signed 8bit
    243         }
    244         // Luma offset range limitation
    245         else
    246         {
    247           offset = Clip3( -128, 127, offset);
    248244        }
    249245
Note: See TracChangeset for help on using the changeset viewer.