Changeset 443 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComInterpolationFilter.cpp
- Timestamp:
- 26 May 2013, 15:41:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComInterpolationFilter.cpp
r56 r443 72 72 { -2, 10, 58, -2 } 73 73 }; 74 74 #if QC_ARP_D0177 75 const Short TComInterpolationFilter::m_lumaFilterARP[4][NTAPS_LUMA_ARP] = 76 { 77 {64, 0}, 78 {48, 16}, 79 {32, 32}, 80 {16, 48} 81 }; 82 const Short TComInterpolationFilter::m_chromaFilterARP[8][NTAPS_CHROMA_ARP] = 83 { 84 {64, 0}, 85 {56, 8}, 86 {48, 16}, 87 {40, 24}, 88 {32, 32}, 89 {24, 40}, 90 {16, 48}, 91 {8, 56} 92 }; 93 #endif 75 94 // ==================================================================================================================== 76 95 // Private member functions … … 320 339 * \param isLast Flag indicating whether it is the last filtering operation 321 340 */ 322 Void TComInterpolationFilter::filterHorLuma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast ) 341 Void TComInterpolationFilter::filterHorLuma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast 342 #if QC_ARP_D0177 343 , 344 Bool filterType 345 #endif 346 ) 323 347 { 324 348 assert(frac >= 0 && frac < 4); … … 330 354 else 331 355 { 332 filterHor<NTAPS_LUMA>(src, srcStride, dst, dstStride, width, height, isLast, m_lumaFilter[frac]); 356 #if QC_ARP_D0177 357 if(filterType) 358 filterHor<NTAPS_LUMA_ARP>(src, srcStride, dst, dstStride, width, height, isLast, m_lumaFilterARP[frac]); 359 else 360 #endif 361 filterHor<NTAPS_LUMA>(src, srcStride, dst, dstStride, width, height, isLast, m_lumaFilter[frac]); 333 362 } 334 363 } … … 347 376 * \param isLast Flag indicating whether it is the last filtering operation 348 377 */ 349 Void TComInterpolationFilter::filterVerLuma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast ) 378 Void TComInterpolationFilter::filterVerLuma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast 379 #if QC_ARP_D0177 380 , 381 Bool filterType 382 #endif 383 ) 350 384 { 351 385 assert(frac >= 0 && frac < 4); … … 357 391 else 358 392 { 359 filterVer<NTAPS_LUMA>(src, srcStride, dst, dstStride, width, height, isFirst, isLast, m_lumaFilter[frac]); 393 #if QC_ARP_D0177 394 if(filterType) 395 filterVer<NTAPS_LUMA_ARP>(src, srcStride, dst, dstStride, width, height, isFirst, isLast, m_lumaFilterARP[frac]); 396 else 397 #endif 398 filterVer<NTAPS_LUMA>(src, srcStride, dst, dstStride, width, height, isFirst, isLast, m_lumaFilter[frac]); 360 399 } 361 400 } … … 373 412 * \param isLast Flag indicating whether it is the last filtering operation 374 413 */ 375 Void TComInterpolationFilter::filterHorChroma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast ) 414 Void TComInterpolationFilter::filterHorChroma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast 415 #if QC_ARP_D0177 416 , 417 Bool filterType 418 #endif 419 ) 376 420 { 377 421 assert(frac >= 0 && frac < 8); … … 383 427 else 384 428 { 429 #if QC_ARP_D0177 430 if(filterType) 431 filterHor<NTAPS_CHROMA_ARP>(src, srcStride, dst, dstStride, width, height, isLast, m_chromaFilterARP[frac]); 432 else 433 #endif 385 434 filterHor<NTAPS_CHROMA>(src, srcStride, dst, dstStride, width, height, isLast, m_chromaFilter[frac]); 386 435 } … … 400 449 * \param isLast Flag indicating whether it is the last filtering operation 401 450 */ 402 Void TComInterpolationFilter::filterVerChroma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast ) 451 Void TComInterpolationFilter::filterVerChroma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast 452 #if QC_ARP_D0177 453 , 454 Bool filterType 455 #endif 456 ) 403 457 { 404 458 assert(frac >= 0 && frac < 8); … … 410 464 else 411 465 { 412 filterVer<NTAPS_CHROMA>(src, srcStride, dst, dstStride, width, height, isFirst, isLast, m_chromaFilter[frac]); 466 #if QC_ARP_D0177 467 if(filterType) 468 filterVer<NTAPS_CHROMA_ARP>(src, srcStride, dst, dstStride, width, height, isFirst, isLast, m_chromaFilterARP[frac]); 469 else 470 #endif 471 filterVer<NTAPS_CHROMA>(src, srcStride, dst, dstStride, width, height, isFirst, isLast, m_chromaFilter[frac]); 413 472 } 414 473 }
Note: See TracChangeset for help on using the changeset viewer.