|
|
|
@ -1732,7 +1732,7 @@ const uint8_t ff_vvc_alf_aps_class_to_filt_map[25] = { |
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const int8_t ff_vvc_inter_luma_filters[VVC_INTER_FILTER_TYPES][VVC_INTER_LUMA_FACTS][VVC_INTER_LUMA_TAPS] = { |
|
|
|
|
const int8_t ff_vvc_inter_luma_filters[VVC_INTER_LUMA_FILTER_TYPES][VVC_INTER_LUMA_FACTS][VVC_INTER_LUMA_TAPS] = { |
|
|
|
|
{ |
|
|
|
|
//1x, hpelIfIdx == 0, Table 27
|
|
|
|
|
{ 0, 0, 0, 64, 0, 0, 0, 0 }, |
|
|
|
@ -1773,6 +1773,46 @@ const int8_t ff_vvc_inter_luma_filters[VVC_INTER_FILTER_TYPES][VVC_INTER_LUMA_FA |
|
|
|
|
{ 0, 1, -2, 4, 63, -3, 1, 0 }, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
//1.5x, Table 28
|
|
|
|
|
{ -1, -5, 17, 42, 17, -5, -1, 0 }, |
|
|
|
|
{ 0, -5, 15, 41, 19, -5, -1, 0 }, |
|
|
|
|
{ 0, -5, 13, 40, 21, -4, -1, 0 }, |
|
|
|
|
{ 0, -5, 11, 39, 24, -4, -2, 1 }, |
|
|
|
|
{ 0, -5, 9, 38, 26, -3, -2, 1 }, |
|
|
|
|
{ 0, -5, 7, 38, 28, -2, -3, 1 }, |
|
|
|
|
{ 1, -5, 5, 36, 30, -1, -3, 1 }, |
|
|
|
|
{ 1, -4, 3, 35, 32, 0, -4, 1 }, |
|
|
|
|
{ 1, -4, 2, 33, 33, 2, -4, 1 }, |
|
|
|
|
{ 1, -4, 0, 32, 35, 3, -4, 1 }, |
|
|
|
|
{ 1, -3, -1, 30, 36, 5, -5, 1 }, |
|
|
|
|
{ 1, -3, -2, 28, 38, 7, -5, 0 }, |
|
|
|
|
{ 1, -2, -3, 26, 38, 9, -5, 0 }, |
|
|
|
|
{ 1, -2, -4, 24, 39, 11, -5, 0 }, |
|
|
|
|
{ 0, -1, -4, 21, 40, 13, -5, 0 }, |
|
|
|
|
{ 0, -1, -5, 19, 41, 15, -5, 0 }, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
//2x, Table 29
|
|
|
|
|
{ -4, 2, 20, 28, 20, 2, -4, 0 }, |
|
|
|
|
{ -4, 0, 19, 29, 21, 5, -4, -2 }, |
|
|
|
|
{ -4, -1, 18, 29, 22, 6, -4, -2 }, |
|
|
|
|
{ -4, -1, 16, 29, 23, 7, -4, -2 }, |
|
|
|
|
{ -4, -1, 16, 28, 24, 7, -4, -2 }, |
|
|
|
|
{ -4, -1, 14, 28, 25, 8, -4, -2 }, |
|
|
|
|
{ -3, -3, 14, 27, 26, 9, -3, -3 }, |
|
|
|
|
{ -3, -1, 12, 28, 25, 10, -4, -3 }, |
|
|
|
|
{ -3, -3, 11, 27, 27, 11, -3, -3 }, |
|
|
|
|
{ -3, -4, 10, 25, 28, 12, -1, -3 }, |
|
|
|
|
{ -3, -3, 9, 26, 27, 14, -3, -3 }, |
|
|
|
|
{ -2, -4, 8, 25, 28, 14, -1, -4 }, |
|
|
|
|
{ -2, -4, 7, 24, 28, 16, -1, -4 }, |
|
|
|
|
{ -2, -4, 7, 23, 29, 16, -1, -4 }, |
|
|
|
|
{ -2, -4, 6, 22, 29, 18, -1, -4 }, |
|
|
|
|
{ -2, -4, 5, 21, 29, 19, 0, -4 }, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
//1x, affine, Table 30
|
|
|
|
|
{ 0, 0, 0, 64, 0, 0, 0, 0 }, |
|
|
|
@ -1793,9 +1833,48 @@ const int8_t ff_vvc_inter_luma_filters[VVC_INTER_FILTER_TYPES][VVC_INTER_LUMA_FA |
|
|
|
|
{ 0, 1, -2, 4, 63, -3, 1, 0 }, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
//1.5x, affine, Table 31
|
|
|
|
|
{ 0, -6, 17, 42, 17, -5, -1, 0 }, |
|
|
|
|
{ 0, -5, 15, 41, 19, -5, -1, 0 }, |
|
|
|
|
{ 0, -5, 13, 40, 21, -4, -1, 0 }, |
|
|
|
|
{ 0, -5, 11, 39, 24, -4, -1, 0 }, |
|
|
|
|
{ 0, -5, 9, 38, 26, -3, -1, 0 }, |
|
|
|
|
{ 0, -5, 7, 38, 28, -2, -2, 0 }, |
|
|
|
|
{ 0, -4, 5, 36, 30, -1, -2, 0 }, |
|
|
|
|
{ 0, -3, 3, 35, 32, 0, -3, 0 }, |
|
|
|
|
{ 0, -3, 2, 33, 33, 2, -3, 0 }, |
|
|
|
|
{ 0, -3, 0, 32, 35, 3, -3, 0 }, |
|
|
|
|
{ 0, -2, -1, 30, 36, 5, -4, 0 }, |
|
|
|
|
{ 0, -2, -2, 28, 38, 7, -5, 0 }, |
|
|
|
|
{ 0, -1, -3, 26, 38, 9, -5, 0 }, |
|
|
|
|
{ 0, -1, -4, 24, 39, 11, -5, 0 }, |
|
|
|
|
{ 0, -1, -4, 21, 40, 13, -5, 0 }, |
|
|
|
|
{ 0, -1, -5, 19, 41, 15, -5, 0 }, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
//2x, affine, Table 32
|
|
|
|
|
{ 0, -2, 20, 28, 20, 2, -4, 0 }, |
|
|
|
|
{ 0, -4, 19, 29, 21, 5, -6, 0 }, |
|
|
|
|
{ 0, -5, 18, 29, 22, 6, -6, 0 }, |
|
|
|
|
{ 0, -5, 16, 29, 23, 7, -6, 0 }, |
|
|
|
|
{ 0, -5, 16, 28, 24, 7, -6, 0 }, |
|
|
|
|
{ 0, -5, 14, 28, 25, 8, -6, 0 }, |
|
|
|
|
{ 0, -6, 14, 27, 26, 9, -6, 0 }, |
|
|
|
|
{ 0, -4, 12, 28, 25, 10, -7, 0 }, |
|
|
|
|
{ 0, -6, 11, 27, 27, 11, -6, 0 }, |
|
|
|
|
{ 0, -7, 10, 25, 28, 12, -4, 0 }, |
|
|
|
|
{ 0, -6, 9, 26, 27, 14, -6, 0 }, |
|
|
|
|
{ 0, -6, 8, 25, 28, 14, -5, 0 }, |
|
|
|
|
{ 0, -6, 7, 24, 28, 16, -5, 0 }, |
|
|
|
|
{ 0, -6, 7, 23, 29, 16, -5, 0 }, |
|
|
|
|
{ 0, -6, 6, 22, 29, 18, -5, 0 }, |
|
|
|
|
{ 0, -6, 5, 21, 29, 19, -4, 0 }, |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const int8_t ff_vvc_inter_chroma_filters[VVC_INTER_FILTER_TYPES][VVC_INTER_CHROMA_FACTS][VVC_INTER_CHROMA_TAPS] = { |
|
|
|
|
const int8_t ff_vvc_inter_chroma_filters[VVC_INTER_CHROMA_FILTER_TYPES][VVC_INTER_CHROMA_FACTS][VVC_INTER_CHROMA_TAPS] = { |
|
|
|
|
{ |
|
|
|
|
//1x, Table 33
|
|
|
|
|
{ 0, 64, 0, 0 }, |
|
|
|
|