Changeset 100 in 3DVCSoftware for trunk/source/Lib/TAppCommon


Ignore:
Timestamp:
9 Aug 2012, 12:53:16 (12 years ago)
Author:
tech
Message:

Adopted modifications:

  • disparity vector generation (A0097)
  • inter-view motion prediction modification (A0049)
  • simplification of disparity vector derivation (A0126)
  • region boundary chain coding (A0070)
  • residual skip intra (A0087)
  • VSO modification (A0033/A0093)

+ Clean ups + Bug fixes

Update of cfg files (A0033 modification 2)

Location:
trunk/source/Lib/TAppCommon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TAppCommon/TAppComCamPara.cpp

    r56 r100  
    654654}
    655655
     656#if SAIT_VSO_EST_A0033
     657Double g_dDispCoeff;
     658#endif
    656659
    657660Bool
     
    685688    iTargetViewNum = (Int) uiTargetView;
    686689  }
     690
     691#if SAIT_VSO_EST_A0033
     692  // This part should be modified later.
     693  {
     694    Double dFL1, dCS1, dCP1, dZN1, dZF1;
     695    Bool   bInterpolated;
     696    Double dPos[3];
     697    xGetGeometryData( m_aiBaseViews[0], uiFrame, dFL1, dPos[0], dCS1, bInterpolated );
     698    xGetGeometryData( m_aiBaseViews[1], uiFrame, dFL1, dPos[1], dCS1, bInterpolated );
     699
     700    xGetGeometryData( iSourceViewNum, uiFrame, dFL1, dCP1, dCS1, bInterpolated );
     701    xGetZNearZFar   ( iSourceViewNum, uiFrame, dZN1, dZF1 );
     702
     703    Double dBaseLine = dPos[0] - dPos[1]; //Max(Max(dPos[0],dPos[1]),dPos[2]) - Min(Min(dPos[0],dPos[1]),dPos[2]);
     704    g_dDispCoeff = fabs( dFL1 * ( dBaseLine / 2.0 ) / 255.0 * ( 1.0/dZN1 - 1.0/dZF1 ) );
     705  }
     706#endif
    687707
    688708  xGetGeometryData( iSourceViewNum, uiFrame, dFocalLengthSource, dPositionSource, dIntersectionSource, bInterpolatedSource );
  • trunk/source/Lib/TAppCommon/TAppComCamPara.h

    r56 r100  
    6969  // view lists
    7070  std::vector<Int>    m_aiViewsInCfgFile;                     ///< views for which parameters are specified in cfg file (from left to right)
    71   std::vector<Int>    m_aiSynthViews;                           ///< View numbers of External ViewReferences
    72   std::vector<Int>    m_aiRelSynthViewsNum;                   ///< Relative view numbers of External ViewReferences
     71  std::vector<Int>    m_aiSynthViews;                         ///< View numbers of External ViewReferences
     72  std::vector<Int>    m_aiRelSynthViewsNum;                   ///< Relative view numbers of External ViewReferences
    7373  std::vector<Int>    m_aiBaseViews;                          ///< View numbers of Base View References (in coding order)
    7474  std::vector<Int>    m_aiSortedBaseViews;                    ///< View numbers of Base View References (from left to right)
     
    9292
    9393  // scale and offset parameters
    94   Double***           m_adBaseViewShiftParameter;                                                       ///< ShiftParameters between BaseViews e.g. [2][1][0] shift scale from view 2 to view 1; [2][1][1] shift offset from view 2 to view 1
    95   Int64 ***           m_aiBaseViewShiftParameter;                                       ///< ShiftParameters between BaseViews e.g. [2][1][0] shift scale from view 2 to view 1; [2][1][1] shift offset from view 2 to view 1           /* do we need 64 bit? */
    96   Double***           m_adSynthViewShiftParameter;                                        ///< ShiftParameters between BaseViews and ERViews e.g. [2][1][0] shift scale from base view 2 to er view 1;
    97   Int64 ***           m_aiSynthViewShiftParameter;                              ///< ShiftParameters between BaseViews and ERViews e.g. [2][1][0] shift scale from base view 2 to er view 1;            /* do we need 64 bit? */
     94  Double***           m_adBaseViewShiftParameter;             ///< ShiftParameters between BaseViews e.g. [2][1][0] shift scale from view 2 to view 1; [2][1][1] shift offset from view 2 to view 1
     95  Int64 ***           m_aiBaseViewShiftParameter;             ///< ShiftParameters between BaseViews e.g. [2][1][0] shift scale from view 2 to view 1; [2][1][1] shift offset from view 2 to view 1     /* do we need 64 bit? */
     96  Double***           m_adSynthViewShiftParameter;            ///< ShiftParameters between BaseViews and ERViews e.g. [2][1][0] shift scale from base view 2 to er view 1;
     97  Int64 ***           m_aiSynthViewShiftParameter;            ///< ShiftParameters between BaseViews and ERViews e.g. [2][1][0] shift scale from base view 2 to er view 1;    /* do we need 64 bit? */
    9898
    9999  // look-up tables
    100   Double****          m_adBaseViewShiftLUT;                                                                             ///< Disparity LUT
    101   Int****             m_aiBaseViewShiftLUT;                                                                       ///< Disparity LUT
    102   Double****          m_adSynthViewShiftLUT;                                                                    ///< Disparity LUT
    103   Int****             m_aiSynthViewShiftLUT;                                                                    ///< Disparity LUT
     100  Double****          m_adBaseViewShiftLUT;                    ///< Disparity LUT
     101  Int****             m_aiBaseViewShiftLUT;                    ///< Disparity LUT
     102  Double****          m_adSynthViewShiftLUT;                   ///< Disparity LUT
     103  Int****             m_aiSynthViewShiftLUT;                   ///< Disparity LUT
    104104
    105105
Note: See TracChangeset for help on using the changeset viewer.