Changeset 18 in SHVCSoftware for trunk/source


Ignore:
Timestamp:
29 Jan 2013, 18:45:55 (12 years ago)
Author:
seregin
Message:

CHROMA_UPSAMPLING: Chroma upsampling with 5 bits coefficients (L0335)

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

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r6 r18  
    3838const Int TComUpsampleFilter::m_chromaFixedFilter[16][NTAPS_US_CHROMA] =
    3939{
     40#if CHROMA_UPSAMPLING
    4041  {  0, 64,  0,  0},//
    4142  {CNU,CNU,CNU,CNU},//
     
    4344  {CNU,CNU,CNU,CNU},//
    4445  { -4, 54, 16, -2},// <-> actual phase shift 1/4,equal to HEVC MC, used for spatial scalability x1.5 (only for accurate Chroma alignement)
     46  { -6, 52, 20, -2},// <-> actual phase shift 1/3, used for spatial scalability x1.5   
     47  { -6, 46, 28, -4},// <-> actual phase shift 3/8,equal to HEVC MC, used for spatial scalability x2 (only for accurate Chroma alignement)     
     48  {CNU,CNU,CNU,CNU},//
     49  { -4, 36, 36, -4},// <-> actual phase shift 1/2,equal to HEVC MC, used for spatial scalability x2
     50  { -4, 30, 42, -4},// <-> actual phase shift 7/12, used for spatial scalability x1.5 (only for accurate Chroma alignement)
     51  {CNU,CNU,CNU,CNU},//
     52  { -2, 20, 52, -6},// <-> actual phase shift 2/3, used for spatial scalability x1.5
     53  {CNU,CNU,CNU,CNU},//
     54  {CNU,CNU,CNU,CNU},//
     55  { -2, 10, 58, -2},// <-> actual phase shift 7/8,equal to HEVC MC, used for spatial scalability x2 (only for accurate Chroma alignement) 
     56  {  0,  4, 62, -2} // <-> actual phase shift 11/12, used for spatial scalability x1.5 (only for accurate Chroma alignement)
     57#else
     58  {  0, 64,  0,  0},//
     59  {CNU,CNU,CNU,CNU},//
     60  {CNU,CNU,CNU,CNU},//
     61  {CNU,CNU,CNU,CNU},//
     62  { -4, 54, 16, -2},// <-> actual phase shift 1/4,equal to HEVC MC, used for spatial scalability x1.5 (only for accurate Chroma alignement)
    4563  { -5, 50, 22, -3},// <-> actual phase shift 1/3, used for spatial scalability x1.5   
    4664  { -6, 46, 28, -4},// <-> actual phase shift 3/8,equal to HEVC MC, used for spatial scalability x2 (only for accurate Chroma alignement)     
     
    5472  { -2, 10, 58, -2},// <-> actual phase shift 7/8,equal to HEVC MC, used for spatial scalability x2 (only for accurate Chroma alignement) 
    5573  { -1,  5, 62, -2} // <-> actual phase shift 11/12, used for spatial scalability x1.5 (only for accurate Chroma alignement)
     74#endif
    5675};
    5776#else
  • trunk/source/Lib/TLibCommon/TypeDef.h

    r17 r18  
    4949#define BUGFIX_925                       1      ///< bug fix ticket #925
    5050
     51#define CHROMA_UPSAMPLING                1      ///< L0335: Chroma upsampling with 5 bits coefficients
     52
    5153#define AVC_BASE                         0      ///< YUV BL reading for AVC base SVC
    5254
     
    5961
    6062#if INTRA_BL
    61 #define INTRA_BL_DST4x4                  1      ///< L0067/L0204 DST4x4 for Intra BL
    62 #define NO_RESIDUAL_FLAG_FOR_BLPRED      1      ///< L0437 Root cbf for Intra_BL
     63#define INTRA_BL_DST4x4                  1      ///< L0067/L0204: DST4x4 for Intra BL
     64#define NO_RESIDUAL_FLAG_FOR_BLPRED      1      ///< L0437: Root cbf for Intra_BL
    6365
    6466// Hooks
Note: See TracChangeset for help on using the changeset viewer.