Changeset 1533 in SHVCSoftware for branches


Ignore:
Timestamp:
16 Mar 2016, 19:05:53 (9 years ago)
Author:
seregin
Message:

fix syntax naming, ticket #109

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1522 r1533  
    36533653        Int deltaY = 0, deltaU = 0, deltaV = 0;
    36543654
    3655         READ_FLAG( uiCodeVertex, "coded_vertex_flag" );
     3655        READ_FLAG( uiCodeVertex, "coded_res_flag" );
    36563656
    36573657        if( uiCodeVertex )
     
    37063706  UInt sign;
    37073707
    3708   READ_UVLC( prefix, "quotient")  ;
    3709   READ_CODE (rParam, codeWord, "remainder");
     3708  READ_UVLC( prefix, "res_coeff_q");
     3709  READ_CODE (rParam, codeWord, "res_coeff_r");
    37103710  rSymbol = (prefix<<rParam) + codeWord;
    37113711
    37123712  if(rSymbol)
    37133713  {
    3714     READ_FLAG(sign, "sign");
     3714    READ_FLAG(sign, "res_coeff_s");
    37153715    param = sign ? -(Int)(rSymbol) : (Int)(rSymbol);
    37163716  }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1502 r1533  
    26002600    nFLCbits = nFLCbits >= 0 ? nFLCbits : 0;
    26012601
    2602     for( Int l = 0 ; l < nYPartNum ; l++ )
    2603     {
    2604       Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth ;
    2605 
    2606       for( Int nVertexIdx = 0 ; nVertexIdx < 4 ; nVertexIdx++ )
    2607       {
    2608         SYUVP sRes = pc3DAsymLUT->getCuboidVertexResTree( yIdx + (l<<shift) , uIdx , vIdx , nVertexIdx );
     2602    for( Int l = 0; l < nYPartNum; l++ )
     2603    {
     2604      Int shift = pc3DAsymLUT->getCurOctantDepth() - nDepth;
     2605
     2606      for( Int nVertexIdx = 0; nVertexIdx < 4; nVertexIdx++ )
     2607      {
     2608        SYUVP sRes = pc3DAsymLUT->getCuboidVertexResTree( yIdx + (l<<shift), uIdx, vIdx, nVertexIdx );
    26092609
    26102610        UInt uiCodeVertex = sRes.Y != 0 || sRes.U != 0 || sRes.V != 0;
    2611         WRITE_FLAG( uiCodeVertex , "coded_vertex_flag" );
     2611        WRITE_FLAG( uiCodeVertex, "coded_res_flag" );
    26122612        if( uiCodeVertex )
    26132613        {
     
    26272627{
    26282628  Int codeNumber = abs(param);
    2629   WRITE_UVLC(codeNumber / (1 << rParam), "quotient");
    2630   WRITE_CODE((codeNumber % (1 << rParam)), rParam, "remainder");
     2629  WRITE_UVLC(codeNumber / (1 << rParam), "res_coeff_q");
     2630  WRITE_CODE((codeNumber % (1 << rParam)), rParam, "res_coeff_r");
    26312631  if (abs(param))
    2632     WRITE_FLAG( param <0, "sign");
     2632    WRITE_FLAG( param < 0, "res_coeff_s");
    26332633}
    26342634
Note: See TracChangeset for help on using the changeset viewer.