- Timestamp:
- 13 Aug 2013, 02:39:08 (11 years ago)
- Location:
- branches/SHM-3.0-dev/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r333 r335 9 9 { 10 10 { 0, 0, 0, 64, 0, 0, 0, 0}, // 11 #if ARBITRARY_SPATIAL_RATIO 12 { 0, 1, -3, 63, 4, -2, 1, 0}, 13 { -1, 2, -5, 62, 8, -3, 1, 0}, 14 { -1, 3, -8, 60, 13, -4, 1, 0}, 15 { -1, 4,-10, 58, 17, -5, 1, 0}, 16 #else 11 17 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 12 18 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 13 19 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 14 20 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 15 { -1, 4, -11, 52, 26, -8, 3, -1}, // <-> actual phase shift 1/3, used for spatial scalability x1.5 21 #endif 22 { -1, 4, -11, 52, 26, -8, 3, -1}, // <-> actual phase shift 1/3, used for spatial scalability x1.5 23 #if ARBITRARY_SPATIAL_RATIO 24 { -1, 3, -9, 47, 31, -10, 4, -1}, 25 { -1, 4, -11, 45, 34, -10, 4, -1}, 26 #else 16 27 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 17 28 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 18 { -1, 4, -11, 40, 40, -11, 4, -1}, // <-> actual phase shift 1/2, equal to HEVC MC, used for spatial scalability x2 19 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 20 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 29 #endif 30 { -1, 4, -11, 40, 40, -11, 4, -1}, // <-> actual phase shift 1/2, equal to HEVC MC, used for spatial scalability x2 31 #if ARBITRARY_SPATIAL_RATIO 32 { -1, 4, -10, 34, 45, -11, 4, -1}, 33 { -1, 4, -10, 31, 47, -9, 3, -1}, 34 #else 35 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 36 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 37 #endif 21 38 { -1, 3, -8, 26, 52, -11, 4, -1}, // <-> actual phase shift 2/3, used for spatial scalability x1.5 39 #if ARBITRARY_SPATIAL_RATIO 40 { 0, 1, -5, 17, 58, -10, 4, -1}, 41 { 0, 1, -4, 13, 60, -8, 3, -1}, 42 { 0, 1, -3, 8, 62, -5, 2, -1}, 43 { 0, 1, -2, 4, 63, -3, 1, 0} 44 #else 22 45 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 23 46 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 24 47 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU}, // 25 48 {CNU,CNU,CNU,CNU,CNU,CNU,CNU,CNU} // 49 #endif 26 50 }; 27 51 … … 29 53 { 30 54 { 0, 64, 0, 0},// 55 #if ARBITRARY_SPATIAL_RATIO 56 { -2, 62, 4, 0}, 57 { -2, 58, 10, -2}, 58 { -4, 56, 14, -2}, 59 #else 31 60 {CNU,CNU,CNU,CNU},// 32 61 {CNU,CNU,CNU,CNU},// 33 62 {CNU,CNU,CNU,CNU},// 63 #endif 34 64 { -4, 54, 16, -2},// <-> actual phase shift 1/4,equal to HEVC MC, used for spatial scalability x1.5 (only for accurate Chroma alignement) 35 65 { -6, 52, 20, -2},// <-> actual phase shift 1/3, used for spatial scalability x1.5 36 66 { -6, 46, 28, -4},// <-> actual phase shift 3/8,equal to HEVC MC, used for spatial scalability x2 (only for accurate Chroma alignement) 67 #if ARBITRARY_SPATIAL_RATIO 68 { -4, 42, 30, -4}, 69 #else 37 70 {CNU,CNU,CNU,CNU},// 71 #endif 38 72 { -4, 36, 36, -4},// <-> actual phase shift 1/2,equal to HEVC MC, used for spatial scalability x2 39 73 { -4, 30, 42, -4},// <-> actual phase shift 7/12, used for spatial scalability x1.5 (only for accurate Chroma alignement) 74 #if ARBITRARY_SPATIAL_RATIO 75 { -4, 28, 46, -6}, 76 #else 40 77 {CNU,CNU,CNU,CNU},// 78 #endif 41 79 { -2, 20, 52, -6},// <-> actual phase shift 2/3, used for spatial scalability x1.5 80 #if ARBITRARY_SPATIAL_RATIO 81 {-2, 16, 54, -4}, 82 {-2, 14, 56, -4}, 83 #else 42 84 {CNU,CNU,CNU,CNU},// 43 85 {CNU,CNU,CNU,CNU},// 86 #endif 44 87 { -2, 10, 58, -2},// <-> actual phase shift 7/8,equal to HEVC MC, used for spatial scalability x2 (only for accurate Chroma alignement) 45 88 { 0, 4, 62, -2} // <-> actual phase shift 11/12, used for spatial scalability x1.5 (only for accurate Chroma alignement) … … 164 207 } 165 208 209 #if ARBITRARY_SPATIAL_RATIO 210 assert ( widthEL >= widthBL ); 211 assert ( heightEL >= heightBL ); 212 #else 166 213 assert ( widthEL == widthBL || widthEL == 2*widthBL || 2*widthEL == 3*widthBL ); 167 214 assert ( heightEL == heightBL || heightEL == 2*heightBL || 2*heightEL == 3*heightBL ); 215 #endif 168 216 169 217 pcBasePic->setBorderExtension(false); -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h
r334 r335 82 82 #define SVC_UPSAMPLING 1 ///< upsampling filters 83 83 #define ROUNDING_OFFSET 1 ///< JCTVC-N0111: upsampling rounding offset using scalling factors 84 #define N0214_INTERMEDIATE_BUFFER_16BITS 1 ///< N0214 support base layer input more than 8 bits 84 #define N0214_INTERMEDIATE_BUFFER_16BITS 1 ///< JCTVC-N0214 support base layer input more than 8 bits 85 #define ARBITRARY_SPATIAL_RATIO 0 ///< JCTVC-N0219, JCTVC-N0273: Support arbitrary spatial ratio 85 86 86 87
Note: See TracChangeset for help on using the changeset viewer.