Commit 6ec3d6e4 authored by Debargha Mukherjee's avatar Debargha Mukherjee

Change 4-tap filter to be smoother

Improves reconstruction performance.

Change-Id: Ia30a345e1f5d4e450138c1dd3a7b700119c7de31
parent 918fe698
......@@ -236,26 +236,26 @@ static const int16_t filter_simple[(1
{ 8, 120 }, { 6, 122 }, { 4, 124 }, { 2, 126 },
#elif INTERP_SIMPLE_TAPS == 4
{ 0, 128, 0, 0 }, { -1, 128, 2, -1 }, { -2, 127, 4, -1 },
{ -4, 127, 7, -2 }, { -5, 126, 9, -2 }, { -6, 126, 11, -3 },
{ -7, 125, 14, -4 }, { -8, 124, 16, -4 }, { -9, 123, 19, -5 },
{ -9, 122, 21, -6 }, { -10, 121, 24, -7 }, { -11, 120, 26, -7 },
{ -12, 119, 29, -8 }, { -13, 118, 31, -8 }, { -13, 116, 34, -9 },
{ -14, 115, 37, -10 }, { -14, 113, 39, -10 }, { -15, 112, 42, -11 },
{ -15, 110, 45, -12 }, { -15, 108, 47, -12 }, { -16, 106, 50, -12 },
{ -16, 105, 52, -13 }, { -17, 103, 55, -13 }, { -17, 101, 58, -14 },
{ -17, 99, 60, -14 }, { -17, 97, 63, -15 }, { -17, 94, 66, -15 },
{ -17, 92, 68, -15 }, { -17, 90, 71, -16 }, { -17, 88, 73, -16 },
{ -17, 85, 76, -16 }, { -17, 83, 78, -16 }, { -17, 81, 81, -17 },
{ -16, 78, 83, -17 }, { -16, 76, 85, -17 }, { -16, 73, 88, -17 },
{ -16, 71, 90, -17 }, { -15, 68, 92, -17 }, { -15, 66, 94, -17 },
{ -15, 63, 97, -17 }, { -14, 60, 99, -17 }, { -14, 58, 101, -17 },
{ -13, 55, 103, -17 }, { -13, 52, 105, -16 }, { -12, 50, 106, -16 },
{ -12, 47, 108, -15 }, { -12, 45, 110, -15 }, { -11, 42, 112, -15 },
{ -10, 39, 113, -14 }, { -10, 37, 115, -14 }, { -9, 34, 116, -13 },
{ -8, 31, 118, -13 }, { -8, 29, 119, -12 }, { -7, 26, 120, -11 },
{ -7, 24, 121, -10 }, { -6, 21, 122, -9 }, { -5, 19, 123, -9 },
{ -4, 16, 124, -8 }, { -4, 14, 125, -7 }, { -3, 11, 126, -6 },
{ -2, 9, 126, -5 }, { -2, 7, 127, -4 }, { -1, 4, 127, -2 },
{ -3, 126, 7, -2 }, { -4, 125, 9, -2 }, { -5, 125, 11, -3 },
{ -6, 124, 13, -3 }, { -7, 123, 16, -4 }, { -7, 122, 18, -5 },
{ -8, 121, 20, -5 }, { -9, 120, 23, -6 }, { -9, 118, 25, -6 },
{ -10, 117, 28, -7 }, { -11, 116, 30, -7 }, { -11, 114, 33, -8 },
{ -12, 113, 35, -8 }, { -12, 111, 38, -9 }, { -13, 109, 41, -9 },
{ -13, 108, 43, -10 }, { -13, 106, 45, -10 }, { -13, 104, 48, -11 },
{ -14, 102, 51, -11 }, { -14, 100, 53, -11 }, { -14, 98, 56, -12 },
{ -14, 96, 58, -12 }, { -14, 94, 61, -13 }, { -15, 92, 64, -13 },
{ -15, 90, 66, -13 }, { -15, 87, 69, -13 }, { -14, 85, 71, -14 },
{ -14, 83, 73, -14 }, { -14, 80, 76, -14 }, { -14, 78, 78, -14 },
{ -14, 76, 80, -14 }, { -14, 73, 83, -14 }, { -14, 71, 85, -14 },
{ -13, 69, 87, -15 }, { -13, 66, 90, -15 }, { -13, 64, 92, -15 },
{ -13, 61, 94, -14 }, { -12, 58, 96, -14 }, { -12, 56, 98, -14 },
{ -11, 53, 100, -14 }, { -11, 51, 102, -14 }, { -11, 48, 104, -13 },
{ -10, 45, 106, -13 }, { -10, 43, 108, -13 }, { -9, 41, 109, -13 },
{ -9, 38, 111, -12 }, { -8, 35, 113, -12 }, { -8, 33, 114, -11 },
{ -7, 30, 116, -11 }, { -7, 28, 117, -10 }, { -6, 25, 118, -9 },
{ -6, 23, 120, -9 }, { -5, 20, 121, -8 }, { -5, 18, 122, -7 },
{ -4, 16, 123, -7 }, { -3, 13, 124, -6 }, { -3, 11, 125, -5 },
{ -2, 9, 125, -4 }, { -2, 7, 126, -3 }, { -1, 4, 127, -2 },
{ -1, 2, 128, -1 },
#elif INTERP_SIMPLE_TAPS == 6
{ 0, 0, 128, 0, 0, 0 }, { 0, -1, 128, 2, -1, 0 },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment