History

avcodec/hevcdsp: Offset ff_hevc_.pel_filters to simplify addressing

Besides simplifying address computations (it saves 432B of .text in hevcdsp.o alone here) it also fixes undefined behaviour that occurs if mx or my are 0 (happens when the filters are unused) because they lead to an array index of -1 in the old code. This happens in the checkasm-hevc_pel FATE-test.

Andreas Rheinhardt committed 2 years ago

Commit 6106fb21 parent 40c5c1915 files · +112 −237Browse files

Showing the changes to libavcodec (15 of 15 files). Show all

Unified · Split

15 files
  1. libavcodec/hevcdsp.c +4 −2
  2. libavcodec/hevcdsp.h +3 −2
  3. libavcodec/hevcdsp_template.c +19 −19
  4. libavcodec/loongarch/hevc_mc.S +48 −176
  5. libavcodec/loongarch/hevc_mc_bi_lsx.c +3 −3
  6. libavcodec/loongarch/hevc_mc_uni_lsx.c +3 −3
  7. libavcodec/loongarch/hevc_mc_uniw_lsx.c +2 −2
  8. libavcodec/loongarch/hevcdsp_lsx.c +3 −3
  9. libavcodec/mips/hevc_mc_bi_msa.c +3 −3
  10. libavcodec/mips/hevc_mc_biw_msa.c +3 −3
  11. libavcodec/mips/hevc_mc_uni_msa.c +3 −3
  12. libavcodec/mips/hevc_mc_uniw_msa.c +3 −3
  13. libavcodec/mips/hevcdsp_mmi.c +10 −10
  14. libavcodec/mips/hevcdsp_msa.c +3 −3
  15. libavcodec/x86/hevcdsp_init.c +2 −2
libavcodec/hevcdsp.c+4−2
@@ -91,7 +91,8 @@ static const int8_t transform[32][32] = { · 90 unmodified lines
9191 90, -90, 88, -85, 82, -78, 73, -67, 61, -54, 46, -38, 31, -22, 13, -4 },
9292 };
9393
94−DECLARE_ALIGNED(16, const int8_t, ff_hevc_epel_filters)[7][4] = {
94+DECLARE_ALIGNED(16, const int8_t, ff_hevc_epel_filters)[8][4] = {
95+ { 0 },
9596 { -2, 58, 10, -2},
9697 { -4, 54, 16, -2},
9798 { -6, 46, 28, -4},
@@ -101,7 +102,8 @@ DECLARE_ALIGNED(16, const int8_t, ff_hevc_epel_filters)[7][4] = { · 3 unmodified lines
101102 { -2, 10, 58, -2},
102103 };
103104
104−DECLARE_ALIGNED(16, const int8_t, ff_hevc_qpel_filters)[3][16] = {
105+DECLARE_ALIGNED(16, const int8_t, ff_hevc_qpel_filters)[4][16] = {
106+ { 0 },
105107 { -1, 4,-10, 58, 17, -5, 1, 0, -1, 4,-10, 58, 17, -5, 1, 0},
106108 { -1, 4,-11, 40, 40,-11, 4, -1, -1, 4,-11, 40, 40,-11, 4, -1},
107109 { 0, 1, -5, 17, 58,-10, 4, -1, 0, 1, -5, 17, 58,-10, 4, -1}
libavcodec/hevcdsp.h+3−2
@@ -126,8 +126,9 @@ typedef struct HEVCDSPContext { · 125 unmodified lines
126126
127127 void ff_hevc_dsp_init(HEVCDSPContext *hpc, int bit_depth);
128128
129−extern const int8_t ff_hevc_epel_filters[7][4];
130−extern const int8_t ff_hevc_qpel_filters[3][16];
129+/** ff_hevc_.pel_filters[0] are dummies to simplify array addressing */
130+extern const int8_t ff_hevc_epel_filters[8][4];
131+extern const int8_t ff_hevc_qpel_filters[4][16];
131132
132133 void ff_hevc_dsp_init_aarch64(HEVCDSPContext *c, const int bit_depth);
133134 void ff_hevc_dsp_init_arm(HEVCDSPContext *c, const int bit_depth);
libavcodec/hevcdsp_template.c+19−19
@@ -301,9 +301,9 @@ IDCT_DC(32) · 300 unmodified lines
301301 //
302302 ////////////////////////////////////////////////////////////////////////////////
303303 #define ff_hevc_pel_filters ff_hevc_qpel_filters
304−#define DECL_HV_FILTER(f) \
305− const uint8_t *hf = ff_hevc_ ## f ## _filters[mx - 1]; \
306− const uint8_t *vf = ff_hevc_ ## f ## _filters[my - 1];
304+#define DECL_HV_FILTER(f) \
305+ const uint8_t *hf = ff_hevc_ ## f ## _filters[mx]; \
306+ const uint8_t *vf = ff_hevc_ ## f ## _filters[my];
307307
308308 #define FW_PUT(p, f, t) \
309309 static void FUNC(put_hevc_## f)(int16_t *dst, const uint8_t *src, ptrdiff_t srcstride, int height, \
@@ -421,7 +421,7 @@ static void FUNC(put_hevc_qpel_bi_h)(uint8_t *_dst, ptrdiff_t _dststride, const · 111 unmodified lines
421421 pixel *dst = (pixel *)_dst;
422422 ptrdiff_t dststride = _dststride / sizeof(pixel);
423423
424− const int8_t *filter = ff_hevc_qpel_filters[mx - 1];
424+ const int8_t *filter = ff_hevc_qpel_filters[mx];
425425
426426 int shift = 14 + 1 - BIT_DEPTH;
427427 #if BIT_DEPTH < 14
@@ -449,7 +449,7 @@ static void FUNC(put_hevc_qpel_bi_v)(uint8_t *_dst, ptrdiff_t _dststride, · 21 unmodified lines
449449 pixel *dst = (pixel *)_dst;
450450 ptrdiff_t dststride = _dststride / sizeof(pixel);
451451
452− const int8_t *filter = ff_hevc_qpel_filters[my - 1];
452+ const int8_t *filter = ff_hevc_qpel_filters[my];
453453
454454 int shift = 14 + 1 - BIT_DEPTH;
455455 #if BIT_DEPTH < 14
@@ -487,7 +487,7 @@ static void FUNC(put_hevc_qpel_bi_hv)(uint8_t *_dst, ptrdiff_t _dststride, · 31 unmodified lines
487487 #endif
488488
489489 src -= QPEL_EXTRA_BEFORE * srcstride;
490− filter = ff_hevc_qpel_filters[mx - 1];
490+ filter = ff_hevc_qpel_filters[mx];
491491 for (y = 0; y < height + QPEL_EXTRA; y++) {
492492 for (x = 0; x < width; x++)
493493 tmp[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
@@ -496,7 +496,7 @@ static void FUNC(put_hevc_qpel_bi_hv)(uint8_t *_dst, ptrdiff_t _dststride, · 2 unmodified lines
496496 }
497497
498498 tmp = tmp_array + QPEL_EXTRA_BEFORE * MAX_PB_SIZE;
499− filter = ff_hevc_qpel_filters[my - 1];
499+ filter = ff_hevc_qpel_filters[my];
500500
501501 for (y = 0; y < height; y++) {
502502 for (x = 0; x < width; x++)
@@ -518,7 +518,7 @@ static void FUNC(put_hevc_qpel_bi_w_h)(uint8_t *_dst, ptrdiff_t _dststride, · 15 unmodified lines
518518 pixel *dst = (pixel *)_dst;
519519 ptrdiff_t dststride = _dststride / sizeof(pixel);
520520
521− const int8_t *filter = ff_hevc_qpel_filters[mx - 1];
521+ const int8_t *filter = ff_hevc_qpel_filters[mx];
522522
523523 int shift = 14 + 1 - BIT_DEPTH;
524524 int log2Wd = denom + shift - 1;
@@ -546,7 +546,7 @@ static void FUNC(put_hevc_qpel_bi_w_v)(uint8_t *_dst, ptrdiff_t _dststride, · 21 unmodified lines
546546 pixel *dst = (pixel *)_dst;
547547 ptrdiff_t dststride = _dststride / sizeof(pixel);
548548
549− const int8_t *filter = ff_hevc_qpel_filters[my - 1];
549+ const int8_t *filter = ff_hevc_qpel_filters[my];
550550
551551 int shift = 14 + 1 - BIT_DEPTH;
552552 int log2Wd = denom + shift - 1;
@@ -580,7 +580,7 @@ static void FUNC(put_hevc_qpel_bi_w_hv)(uint8_t *_dst, ptrdiff_t _dststride, · 27 unmodified lines
580580 int log2Wd = denom + shift - 1;
581581
582582 src -= QPEL_EXTRA_BEFORE * srcstride;
583− filter = ff_hevc_qpel_filters[mx - 1];
583+ filter = ff_hevc_qpel_filters[mx];
584584 for (y = 0; y < height + QPEL_EXTRA; y++) {
585585 for (x = 0; x < width; x++)
586586 tmp[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);
@@ -589,7 +589,7 @@ static void FUNC(put_hevc_qpel_bi_w_hv)(uint8_t *_dst, ptrdiff_t _dststride, · 2 unmodified lines
589589 }
590590
591591 tmp = tmp_array + QPEL_EXTRA_BEFORE * MAX_PB_SIZE;
592− filter = ff_hevc_qpel_filters[my - 1];
592+ filter = ff_hevc_qpel_filters[my];
593593
594594 ox0 = ox0 * (1 << (BIT_DEPTH - 8));
595595 ox1 = ox1 * (1 << (BIT_DEPTH - 8));
@@ -621,7 +621,7 @@ static void FUNC(put_hevc_epel_bi_h)(uint8_t *_dst, ptrdiff_t _dststride, · 25 unmodified lines
621621 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
622622 pixel *dst = (pixel *)_dst;
623623 ptrdiff_t dststride = _dststride / sizeof(pixel);
624− const int8_t *filter = ff_hevc_epel_filters[mx - 1];
624+ const int8_t *filter = ff_hevc_epel_filters[mx];
625625 int shift = 14 + 1 - BIT_DEPTH;
626626 #if BIT_DEPTH < 14
627627 int offset = 1 << (shift - 1);
@@ -646,7 +646,7 @@ static void FUNC(put_hevc_epel_bi_v)(uint8_t *_dst, ptrdiff_t _dststride, · 18 unmodified lines
646646 int x, y;
647647 const pixel *src = (const pixel *)_src;
648648 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
649− const int8_t *filter = ff_hevc_epel_filters[my - 1];
649+ const int8_t *filter = ff_hevc_epel_filters[my];
650650 pixel *dst = (pixel *)_dst;
651651 ptrdiff_t dststride = _dststride / sizeof(pixel);
652652 int shift = 14 + 1 - BIT_DEPTH;
@@ -674,7 +674,7 @@ static void FUNC(put_hevc_epel_bi_hv)(uint8_t *_dst, ptrdiff_t _dststride, · 21 unmodified lines
674674 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
675675 pixel *dst = (pixel *)_dst;
676676 ptrdiff_t dststride = _dststride / sizeof(pixel);
677− const int8_t *filter = ff_hevc_epel_filters[mx - 1];
677+ const int8_t *filter = ff_hevc_epel_filters[mx];
678678 int16_t tmp_array[(MAX_PB_SIZE + EPEL_EXTRA) * MAX_PB_SIZE];
679679 int16_t *tmp = tmp_array;
680680 int shift = 14 + 1 - BIT_DEPTH;
@@ -694,7 +694,7 @@ static void FUNC(put_hevc_epel_bi_hv)(uint8_t *_dst, ptrdiff_t _dststride, · 13 unmodified lines
694694 }
695695
696696 tmp = tmp_array + EPEL_EXTRA_BEFORE * MAX_PB_SIZE;
697− filter = ff_hevc_epel_filters[my - 1];
697+ filter = ff_hevc_epel_filters[my];
698698
699699 for (y = 0; y < height; y++) {
700700 for (x = 0; x < width; x++)
@@ -715,7 +715,7 @@ static void FUNC(put_hevc_epel_bi_w_h)(uint8_t *_dst, ptrdiff_t _dststride, · 14 unmodified lines
715715 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
716716 pixel *dst = (pixel *)_dst;
717717 ptrdiff_t dststride = _dststride / sizeof(pixel);
718− const int8_t *filter = ff_hevc_epel_filters[mx - 1];
718+ const int8_t *filter = ff_hevc_epel_filters[mx];
719719 int shift = 14 + 1 - BIT_DEPTH;
720720 int log2Wd = denom + shift - 1;
721721
@@ -739,7 +739,7 @@ static void FUNC(put_hevc_epel_bi_w_v)(uint8_t *_dst, ptrdiff_t _dststride, · 17 unmodified lines
739739 int x, y;
740740 const pixel *src = (const pixel *)_src;
741741 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
742− const int8_t *filter = ff_hevc_epel_filters[my - 1];
742+ const int8_t *filter = ff_hevc_epel_filters[my];
743743 pixel *dst = (pixel *)_dst;
744744 ptrdiff_t dststride = _dststride / sizeof(pixel);
745745 int shift = 14 + 1 - BIT_DEPTH;
@@ -767,7 +767,7 @@ static void FUNC(put_hevc_epel_bi_w_hv)(uint8_t *_dst, ptrdiff_t _dststride, · 21 unmodified lines
767767 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
768768 pixel *dst = (pixel *)_dst;
769769 ptrdiff_t dststride = _dststride / sizeof(pixel);
770− const int8_t *filter = ff_hevc_epel_filters[mx - 1];
770+ const int8_t *filter = ff_hevc_epel_filters[mx];
771771 int16_t tmp_array[(MAX_PB_SIZE + EPEL_EXTRA) * MAX_PB_SIZE];
772772 int16_t *tmp = tmp_array;
773773 int shift = 14 + 1 - BIT_DEPTH;
@@ -783,7 +783,7 @@ static void FUNC(put_hevc_epel_bi_w_hv)(uint8_t *_dst, ptrdiff_t _dststride, · 9 unmodified lines
783783 }
784784
785785 tmp = tmp_array + EPEL_EXTRA_BEFORE * MAX_PB_SIZE;
786− filter = ff_hevc_epel_filters[my - 1];
786+ filter = ff_hevc_epel_filters[my];
787787
788788 ox0 = ox0 * (1 << (BIT_DEPTH - 8));
789789 ox1 = ox1 * (1 << (BIT_DEPTH - 8));
libavcodec/loongarch/hevc_mc.S+48−176
@@ -498,7 +498,6 @@ endfunc · 497 unmodified lines
498498 function ff_hevc_put_hevc_qpel_uni_w_v4_8_lsx
499499 LOAD_VAR 128
500500 ld.d t0, sp, 8 //my
501− addi.d t0, t0, -1
502501 slli.w t0, t0, 4
503502 la.local t1, ff_hevc_qpel_filters
504503 vldx vr5, t1, t0 //filter
@@ -570,7 +569,6 @@ endfunc · 65 unmodified lines
570569 function ff_hevc_put_hevc_qpel_uni_w_v6_8_lsx
571570 LOAD_VAR 128
572571 ld.d t0, sp, 8 //my
573− addi.d t0, t0, -1
574572 slli.w t0, t0, 4
575573 la.local t1, ff_hevc_qpel_filters
576574 vldx vr5, t1, t0 //filter
@@ -699,7 +697,6 @@ endfunc · 122 unmodified lines
699697 function ff_hevc_put_hevc_qpel_uni_w_v8_8_lsx
700698 LOAD_VAR 128
701699 ld.d t0, sp, 8 //my
702− addi.d t0, t0, -1
703700 slli.w t0, t0, 4
704701 la.local t1, ff_hevc_qpel_filters
705702 vldx vr5, t1, t0 //filter
@@ -778,7 +775,6 @@ endfunc · 72 unmodified lines
778775 function ff_hevc_put_hevc_qpel_uni_w_v8_8_lasx
779776 LOAD_VAR 256
780777 ld.d t0, sp, 8 //my
781− addi.d t0, t0, -1
782778 slli.w t0, t0, 4
783779 la.local t1, ff_hevc_qpel_filters
784780 vldx vr5, t1, t0 //filter
@@ -845,7 +841,6 @@ endfunc · 60 unmodified lines
845841 function ff_hevc_put_hevc_qpel_uni_w_v16_8_lsx
846842 LOAD_VAR 128
847843 ld.d t0, sp, 8 //my
848− addi.d t0, t0, -1
849844 slli.w t0, t0, 4
850845 la.local t1, ff_hevc_qpel_filters
851846 vldx vr5, t1, t0 //filter
@@ -940,7 +935,6 @@ endfunc · 88 unmodified lines
940935 function ff_hevc_put_hevc_qpel_uni_w_v16_8_lasx
941936 LOAD_VAR 256
942937 ld.d t0, sp, 8 //my
943− addi.d t0, t0, -1
944938 slli.w t0, t0, 4
945939 la.local t1, ff_hevc_qpel_filters
946940 vldx vr5, t1, t0 //filter
@@ -955,7 +949,6 @@ endfunc · 8 unmodified lines
955949 function ff_hevc_put_hevc_qpel_uni_w_v12_8_lsx
956950 LOAD_VAR 128
957951 ld.d t0, sp, 8 //my
958− addi.d t0, t0, -1
959952 slli.w t0, t0, 4
960953 la.local t1, ff_hevc_qpel_filters
961954 vldx vr5, t1, t0 //filter
@@ -969,7 +962,6 @@ endfunc · 7 unmodified lines
969962 function ff_hevc_put_hevc_qpel_uni_w_v12_8_lasx
970963 LOAD_VAR 256
971964 ld.d t0, sp, 8 //my
972− addi.d t0, t0, -1
973965 slli.w t0, t0, 4
974966 la.local t1, ff_hevc_qpel_filters
975967 vldx vr5, t1, t0 //filter
@@ -984,7 +976,6 @@ endfunc · 8 unmodified lines
984976 function ff_hevc_put_hevc_qpel_uni_w_v24_8_lsx
985977 LOAD_VAR 128
986978 ld.d t0, sp, 8 //my
987− addi.d t0, t0, -1
988979 slli.w t0, t0, 4
989980 la.local t1, ff_hevc_qpel_filters
990981 vldx vr5, t1, t0 //filter
@@ -1005,7 +996,6 @@ endfunc · 14 unmodified lines
1005996 function ff_hevc_put_hevc_qpel_uni_w_v24_8_lasx
1006997 LOAD_VAR 256
1007998 ld.d t0, sp, 8 //my
1008− addi.d t0, t0, -1
1009999 slli.w t0, t0, 4
10101000 la.local t1, ff_hevc_qpel_filters
10111001 vldx vr5, t1, t0 //filter
@@ -1027,7 +1017,6 @@ endfunc · 15 unmodified lines
10271017 function ff_hevc_put_hevc_qpel_uni_w_v32_8_lsx
10281018 LOAD_VAR 128
10291019 ld.d t0, sp, 8 //my
1030− addi.d t0, t0, -1
10311020 slli.w t0, t0, 4
10321021 la.local t1, ff_hevc_qpel_filters
10331022 vldx vr5, t1, t0 //filter
@@ -1051,7 +1040,6 @@ endfunc · 17 unmodified lines
10511040 function ff_hevc_put_hevc_qpel_uni_w_v32_8_lasx
10521041 LOAD_VAR 256
10531042 ld.d t0, sp, 8 //my
1054− addi.d t0, t0, -1
10551043 slli.w t0, t0, 4
10561044 la.local t1, ff_hevc_qpel_filters
10571045 vldx vr5, t1, t0 //filter
@@ -1076,7 +1064,6 @@ endfunc · 18 unmodified lines
10761064 function ff_hevc_put_hevc_qpel_uni_w_v48_8_lsx
10771065 LOAD_VAR 128
10781066 ld.d t0, sp, 8 //my
1079− addi.d t0, t0, -1
10801067 slli.w t0, t0, 4
10811068 la.local t1, ff_hevc_qpel_filters
10821069 vldx vr5, t1, t0 //filter
@@ -1102,7 +1089,6 @@ endfunc · 19 unmodified lines
11021089 function ff_hevc_put_hevc_qpel_uni_w_v48_8_lasx
11031090 LOAD_VAR 256
11041091 ld.d t0, sp, 8 //my
1105− addi.d t0, t0, -1
11061092 slli.w t0, t0, 4
11071093 la.local t1, ff_hevc_qpel_filters
11081094 vldx vr5, t1, t0 //filter
@@ -1129,7 +1115,6 @@ endfunc · 20 unmodified lines
11291115 function ff_hevc_put_hevc_qpel_uni_w_v64_8_lsx
11301116 LOAD_VAR 128
11311117 ld.d t0, sp, 8 //my
1132− addi.d t0, t0, -1
11331118 slli.w t0, t0, 4
11341119 la.local t1, ff_hevc_qpel_filters
11351120 vldx vr5, t1, t0 //filter
@@ -1155,7 +1140,6 @@ endfunc · 19 unmodified lines
11551140 function ff_hevc_put_hevc_qpel_uni_w_v64_8_lasx
11561141 LOAD_VAR 256
11571142 ld.d t0, sp, 8 //my
1158− addi.d t0, t0, -1
11591143 slli.w t0, t0, 4
11601144 la.local t1, ff_hevc_qpel_filters
11611145 vldx vr5, t1, t0 //filter
@@ -1275,7 +1259,6 @@ endfunc · 113 unmodified lines
12751259 function ff_hevc_put_hevc_qpel_uni_w_h4_8_lsx
12761260 LOAD_VAR 128
12771261 ld.d t0, sp, 0 //mx
1278− addi.d t0, t0, -1
12791262 slli.w t0, t0, 4
12801263 la.local t1, ff_hevc_qpel_filters
12811264 vldx vr5, t1, t0 //filter
@@ -1325,7 +1308,6 @@ endfunc · 43 unmodified lines
13251308 function ff_hevc_put_hevc_qpel_uni_w_h4_8_lasx
13261309 LOAD_VAR 256
13271310 ld.d t0, sp, 0 //mx
1328− addi.d t0, t0, -1
13291311 slli.w t0, t0, 4
13301312 la.local t1, ff_hevc_qpel_filters
13311313 vldx vr5, t1, t0 //filter
@@ -1364,7 +1346,6 @@ endfunc · 32 unmodified lines
13641346 function ff_hevc_put_hevc_qpel_uni_w_h6_8_lsx
13651347 LOAD_VAR 128
13661348 ld.d t0, sp, 0 //mx
1367− addi.d t0, t0, -1
13681349 slli.w t0, t0, 4
13691350 la.local t1, ff_hevc_qpel_filters
13701351 vldx vr5, t1, t0 //filter
@@ -1385,7 +1366,6 @@ endfunc · 14 unmodified lines
13851366 function ff_hevc_put_hevc_qpel_uni_w_h6_8_lasx
13861367 LOAD_VAR 256
13871368 ld.d t0, sp, 0 //mx
1388− addi.d t0, t0, -1
13891369 slli.w t0, t0, 4
13901370 la.local t1, ff_hevc_qpel_filters
13911371 vldx vr5, t1, t0 //filter
@@ -1408,7 +1388,6 @@ endfunc · 16 unmodified lines
14081388 function ff_hevc_put_hevc_qpel_uni_w_h8_8_lsx
14091389 LOAD_VAR 128
14101390 ld.d t0, sp, 0 //mx
1411− addi.d t0, t0, -1
14121391 slli.w t0, t0, 4
14131392 la.local t1, ff_hevc_qpel_filters
14141393 vldx vr5, t1, t0 //filter
@@ -1428,7 +1407,6 @@ endfunc · 13 unmodified lines
14281407 function ff_hevc_put_hevc_qpel_uni_w_h8_8_lasx
14291408 LOAD_VAR 256
14301409 ld.d t0, sp, 0 //mx
1431− addi.d t0, t0, -1
14321410 slli.w t0, t0, 4
14331411 la.local t1, ff_hevc_qpel_filters
14341412 vldx vr5, t1, t0 //filter
@@ -1450,7 +1428,6 @@ endfunc · 15 unmodified lines
14501428 function ff_hevc_put_hevc_qpel_uni_w_h12_8_lsx
14511429 LOAD_VAR 128
14521430 ld.d t0, sp, 0 //mx
1453− addi.d t0, t0, -1
14541431 slli.w t0, t0, 4
14551432 la.local t1, ff_hevc_qpel_filters
14561433 vldx vr5, t1, t0 //filter
@@ -1475,7 +1452,6 @@ endfunc · 18 unmodified lines
14751452 function ff_hevc_put_hevc_qpel_uni_w_h12_8_lasx
14761453 LOAD_VAR 256
14771454 ld.d t0, sp, 0 //mx
1478− addi.d t0, t0, -1
14791455 slli.w t0, t0, 4
14801456 la.local t1, ff_hevc_qpel_filters
14811457 vldx vr5, t1, t0 //filter
@@ -1495,7 +1471,6 @@ endfunc · 13 unmodified lines
14951471 function ff_hevc_put_hevc_qpel_uni_w_h16_8_lsx
14961472 LOAD_VAR 128
14971473 ld.d t0, sp, 0 //mx
1498− addi.d t0, t0, -1
14991474 slli.w t0, t0, 4
15001475 la.local t1, ff_hevc_qpel_filters
15011476 vldx vr5, t1, t0 //filter
@@ -1518,7 +1493,6 @@ endfunc · 16 unmodified lines
15181493 function ff_hevc_put_hevc_qpel_uni_w_h16_8_lasx
15191494 LOAD_VAR 256
15201495 ld.d t0, sp, 0 //mx
1521− addi.d t0, t0, -1
15221496 slli.w t0, t0, 4
15231497 la.local t1, ff_hevc_qpel_filters
15241498 vldx vr5, t1, t0 //filter
@@ -1537,7 +1511,6 @@ endfunc · 12 unmodified lines
15371511 function ff_hevc_put_hevc_qpel_uni_w_h24_8_lsx
15381512 LOAD_VAR 128
15391513 ld.d t0, sp, 0 //mx
1540− addi.d t0, t0, -1
15411514 slli.w t0, t0, 4
15421515 la.local t1, ff_hevc_qpel_filters
15431516 vldx vr5, t1, t0 //filter
@@ -1565,7 +1538,6 @@ endfunc · 21 unmodified lines
15651538 function ff_hevc_put_hevc_qpel_uni_w_h24_8_lasx
15661539 LOAD_VAR 256
15671540 ld.d t0, sp, 0 //mx
1568− addi.d t0, t0, -1
15691541 slli.w t0, t0, 4
15701542 la.local t1, ff_hevc_qpel_filters
15711543 vldx vr5, t1, t0 //filter
@@ -1590,7 +1562,6 @@ endfunc · 18 unmodified lines
15901562 function ff_hevc_put_hevc_qpel_uni_w_h32_8_lsx
15911563 LOAD_VAR 128
15921564 ld.d t0, sp, 0 //mx
1593− addi.d t0, t0, -1
15941565 slli.w t0, t0, 4
15951566 la.local t1, ff_hevc_qpel_filters
15961567 vldx vr5, t1, t0 //filter
@@ -1622,7 +1593,6 @@ endfunc · 25 unmodified lines
16221593 function ff_hevc_put_hevc_qpel_uni_w_h32_8_lasx
16231594 LOAD_VAR 256
16241595 ld.d t0, sp, 0 //mx
1625− addi.d t0, t0, -1
16261596 slli.w t0, t0, 4
16271597 la.local t1, ff_hevc_qpel_filters
16281598 vldx vr5, t1, t0 //filter
@@ -1644,7 +1614,6 @@ endfunc · 15 unmodified lines
16441614 function ff_hevc_put_hevc_qpel_uni_w_h48_8_lsx
16451615 LOAD_VAR 128
16461616 ld.d t0, sp, 0 //mx
1647− addi.d t0, t0, -1
16481617 slli.w t0, t0, 4
16491618 la.local t1, ff_hevc_qpel_filters
16501619 vldx vr5, t1, t0 //filter
@@ -1684,7 +1653,6 @@ endfunc · 33 unmodified lines
16841653 function ff_hevc_put_hevc_qpel_uni_w_h48_8_lasx
16851654 LOAD_VAR 256
16861655 ld.d t0, sp, 0 //mx
1687− addi.d t0, t0, -1
16881656 slli.w t0, t0, 4
16891657 la.local t1, ff_hevc_qpel_filters
16901658 vldx vr5, t1, t0 //filter
@@ -1709,7 +1677,6 @@ endfunc · 18 unmodified lines
17091677 function ff_hevc_put_hevc_qpel_uni_w_h64_8_lsx
17101678 LOAD_VAR 128
17111679 ld.d t0, sp, 0 //mx
1712− addi.d t0, t0, -1
17131680 slli.w t0, t0, 4
17141681 la.local t1, ff_hevc_qpel_filters
17151682 vldx vr5, t1, t0 //filter
@@ -1757,7 +1724,6 @@ endfunc · 41 unmodified lines
17571724 function ff_hevc_put_hevc_qpel_uni_w_h64_8_lasx
17581725 LOAD_VAR 256
17591726 ld.d t0, sp, 0 //mx
1760− addi.d t0, t0, -1
17611727 slli.w t0, t0, 4
17621728 la.local t1, ff_hevc_qpel_filters
17631729 vldx vr5, t1, t0 //filter
@@ -1841,15 +1807,13 @@ endconst · 77 unmodified lines
18411807 function ff_hevc_put_hevc_epel_uni_w_hv4_8_lsx
18421808 LOAD_VAR 128
18431809 ld.d t0, sp, 0 // mx
1844− addi.d t0, t0, -1
18451810 slli.w t0, t0, 2
18461811 la.local t1, ff_hevc_epel_filters
1847− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
1812+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
18481813 vreplvei.w vr5, vr5, 0
18491814 ld.d t0, sp, 8 // my
1850− addi.d t0, t0, -1
18511815 slli.w t0, t0, 2
1852− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
1816+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
18531817 vsllwil.h.b vr6, vr6, 0
18541818 vsllwil.w.h vr6, vr6, 0
18551819 vreplvei.w vr16, vr6, 0
@@ -2068,15 +2032,13 @@ endfunc · 212 unmodified lines
20682032 function ff_hevc_put_hevc_epel_uni_w_hv6_8_lsx
20692033 LOAD_VAR 128
20702034 ld.d t0, sp, 0 // mx
2071− addi.d t0, t0, -1
20722035 slli.w t0, t0, 2
20732036 la.local t1, ff_hevc_epel_filters
2074− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2037+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
20752038 vreplvei.w vr5, vr5, 0
20762039 ld.d t0, sp, 8 // my
2077− addi.d t0, t0, -1
20782040 slli.w t0, t0, 2
2079− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2041+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
20802042 vsllwil.h.b vr6, vr6, 0
20812043 vsllwil.w.h vr6, vr6, 0
20822044 vreplvei.w vr16, vr6, 0
@@ -2094,15 +2056,13 @@ endfunc · 11 unmodified lines
20942056 function ff_hevc_put_hevc_epel_uni_w_hv6_8_lasx
20952057 LOAD_VAR 256
20962058 ld.d t0, sp, 0 // mx
2097− addi.d t0, t0, -1
20982059 slli.w t0, t0, 2
20992060 la.local t1, ff_hevc_epel_filters
2100− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2061+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
21012062 xvreplve0.w xr5, xr5
21022063 ld.d t0, sp, 8 // my
2103− addi.d t0, t0, -1
21042064 slli.w t0, t0, 2
2105− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2065+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
21062066 vsllwil.h.b vr6, vr6, 0
21072067 vsllwil.w.h vr6, vr6, 0
21082068 xvreplve0.q xr6, xr6
@@ -2120,15 +2080,13 @@ endfunc · 11 unmodified lines
21202080 function ff_hevc_put_hevc_epel_uni_w_hv8_8_lsx
21212081 LOAD_VAR 128
21222082 ld.d t0, sp, 0 // mx
2123− addi.d t0, t0, -1
21242083 slli.w t0, t0, 2
21252084 la.local t1, ff_hevc_epel_filters
2126− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2085+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
21272086 vreplvei.w vr5, vr5, 0
21282087 ld.d t0, sp, 8 // my
2129− addi.d t0, t0, -1
21302088 slli.w t0, t0, 2
2131− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2089+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
21322090 vsllwil.h.b vr6, vr6, 0
21332091 vsllwil.w.h vr6, vr6, 0
21342092 vreplvei.w vr16, vr6, 0
@@ -2146,15 +2104,13 @@ endfunc · 11 unmodified lines
21462104 function ff_hevc_put_hevc_epel_uni_w_hv8_8_lasx
21472105 LOAD_VAR 256
21482106 ld.d t0, sp, 0 // mx
2149− addi.d t0, t0, -1
21502107 slli.w t0, t0, 2
21512108 la.local t1, ff_hevc_epel_filters
2152− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2109+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
21532110 xvreplve0.w xr5, xr5
21542111 ld.d t0, sp, 8 // my
2155− addi.d t0, t0, -1
21562112 slli.w t0, t0, 2
2157− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2113+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
21582114 vsllwil.h.b vr6, vr6, 0
21592115 vsllwil.w.h vr6, vr6, 0
21602116 xvreplve0.q xr6, xr6
@@ -2172,15 +2128,13 @@ endfunc · 11 unmodified lines
21722128 function ff_hevc_put_hevc_epel_uni_w_hv12_8_lsx
21732129 LOAD_VAR 128
21742130 ld.d t0, sp, 0 // mx
2175− addi.d t0, t0, -1
21762131 slli.w t0, t0, 2
21772132 la.local t1, ff_hevc_epel_filters
2178− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2133+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
21792134 vreplvei.w vr5, vr5, 0
21802135 ld.d t0, sp, 8 // my
2181− addi.d t0, t0, -1
21822136 slli.w t0, t0, 2
2183− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2137+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
21842138 vsllwil.h.b vr6, vr6, 0
21852139 vsllwil.w.h vr6, vr6, 0
21862140 vreplvei.w vr16, vr6, 0
@@ -2205,15 +2159,13 @@ endfunc · 18 unmodified lines
22052159 function ff_hevc_put_hevc_epel_uni_w_hv12_8_lasx
22062160 LOAD_VAR 256
22072161 ld.d t0, sp, 0 // mx
2208− addi.d t0, t0, -1
22092162 slli.w t0, t0, 2
22102163 la.local t1, ff_hevc_epel_filters
2211− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2164+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
22122165 xvreplve0.w xr5, xr5
22132166 ld.d t0, sp, 8 // my
2214− addi.d t0, t0, -1
22152167 slli.w t0, t0, 2
2216− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2168+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
22172169 vsllwil.h.b vr6, vr6, 0
22182170 vsllwil.w.h vr6, vr6, 0
22192171 xvreplve0.q xr6, xr6
@@ -2231,15 +2183,13 @@ endfunc · 11 unmodified lines
22312183 function ff_hevc_put_hevc_epel_uni_w_hv16_8_lsx
22322184 LOAD_VAR 128
22332185 ld.d t0, sp, 0 // mx
2234− addi.d t0, t0, -1
22352186 slli.w t0, t0, 2
22362187 la.local t1, ff_hevc_epel_filters
2237− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2188+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
22382189 vreplvei.w vr5, vr5, 0
22392190 ld.d t0, sp, 8 // my
2240− addi.d t0, t0, -1
22412191 slli.w t0, t0, 2
2242− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2192+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
22432193 vsllwil.h.b vr6, vr6, 0
22442194 vsllwil.w.h vr6, vr6, 0
22452195 vreplvei.w vr16, vr6, 0
@@ -2267,15 +2217,13 @@ endfunc · 21 unmodified lines
22672217 function ff_hevc_put_hevc_epel_uni_w_hv16_8_lasx
22682218 LOAD_VAR 256
22692219 ld.d t0, sp, 0 // mx
2270− addi.d t0, t0, -1
22712220 slli.w t0, t0, 2
22722221 la.local t1, ff_hevc_epel_filters
2273− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2222+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
22742223 xvreplve0.w xr5, xr5
22752224 ld.d t0, sp, 8 // my
2276− addi.d t0, t0, -1
22772225 slli.w t0, t0, 2
2278− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2226+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
22792227 vsllwil.h.b vr6, vr6, 0
22802228 vsllwil.w.h vr6, vr6, 0
22812229 xvreplve0.q xr6, xr6
@@ -2293,15 +2241,13 @@ endfunc · 11 unmodified lines
22932241 function ff_hevc_put_hevc_epel_uni_w_hv24_8_lsx
22942242 LOAD_VAR 128
22952243 ld.d t0, sp, 0 // mx
2296− addi.d t0, t0, -1
22972244 slli.w t0, t0, 2
22982245 la.local t1, ff_hevc_epel_filters
2299− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2246+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
23002247 vreplvei.w vr5, vr5, 0
23012248 ld.d t0, sp, 8 // my
2302− addi.d t0, t0, -1
23032249 slli.w t0, t0, 2
2304− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2250+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
23052251 vsllwil.h.b vr6, vr6, 0
23062252 vsllwil.w.h vr6, vr6, 0
23072253 vreplvei.w vr16, vr6, 0
@@ -2331,15 +2277,13 @@ endfunc · 23 unmodified lines
23312277 function ff_hevc_put_hevc_epel_uni_w_hv24_8_lasx
23322278 LOAD_VAR 256
23332279 ld.d t0, sp, 0 // mx
2334− addi.d t0, t0, -1
23352280 slli.w t0, t0, 2
23362281 la.local t1, ff_hevc_epel_filters
2337− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2282+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
23382283 xvreplve0.w xr5, xr5
23392284 ld.d t0, sp, 8 // my
2340− addi.d t0, t0, -1
23412285 slli.w t0, t0, 2
2342− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2286+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
23432287 vsllwil.h.b vr6, vr6, 0
23442288 vsllwil.w.h vr6, vr6, 0
23452289 xvreplve0.q xr6, xr6
@@ -2364,15 +2308,13 @@ endfunc · 18 unmodified lines
23642308 function ff_hevc_put_hevc_epel_uni_w_hv32_8_lsx
23652309 LOAD_VAR 128
23662310 ld.d t0, sp, 0 // mx
2367− addi.d t0, t0, -1
23682311 slli.w t0, t0, 2
23692312 la.local t1, ff_hevc_epel_filters
2370− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2313+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
23712314 vreplvei.w vr5, vr5, 0
23722315 ld.d t0, sp, 8 // my
2373− addi.d t0, t0, -1
23742316 slli.w t0, t0, 2
2375− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2317+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
23762318 vsllwil.h.b vr6, vr6, 0
23772319 vsllwil.w.h vr6, vr6, 0
23782320 vreplvei.w vr16, vr6, 0
@@ -2402,15 +2344,13 @@ endfunc · 23 unmodified lines
24022344 function ff_hevc_put_hevc_epel_uni_w_hv32_8_lasx
24032345 LOAD_VAR 256
24042346 ld.d t0, sp, 0 // mx
2405− addi.d t0, t0, -1
24062347 slli.w t0, t0, 2
24072348 la.local t1, ff_hevc_epel_filters
2408− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2349+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
24092350 xvreplve0.w xr5, xr5
24102351 ld.d t0, sp, 8 // my
2411− addi.d t0, t0, -1
24122352 slli.w t0, t0, 2
2413− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2353+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
24142354 vsllwil.h.b vr6, vr6, 0
24152355 vsllwil.w.h vr6, vr6, 0
24162356 xvreplve0.q xr6, xr6
@@ -2440,15 +2380,13 @@ endfunc · 23 unmodified lines
24402380 function ff_hevc_put_hevc_epel_uni_w_hv48_8_lsx
24412381 LOAD_VAR 128
24422382 ld.d t0, sp, 0 // mx
2443− addi.d t0, t0, -1
24442383 slli.w t0, t0, 2
24452384 la.local t1, ff_hevc_epel_filters
2446− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2385+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
24472386 vreplvei.w vr5, vr5, 0
24482387 ld.d t0, sp, 8 // my
2449− addi.d t0, t0, -1
24502388 slli.w t0, t0, 2
2451− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2389+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
24522390 vsllwil.h.b vr6, vr6, 0
24532391 vsllwil.w.h vr6, vr6, 0
24542392 vreplvei.w vr16, vr6, 0
@@ -2478,15 +2416,13 @@ endfunc · 23 unmodified lines
24782416 function ff_hevc_put_hevc_epel_uni_w_hv48_8_lasx
24792417 LOAD_VAR 256
24802418 ld.d t0, sp, 0 // mx
2481− addi.d t0, t0, -1
24822419 slli.w t0, t0, 2
24832420 la.local t1, ff_hevc_epel_filters
2484− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2421+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
24852422 xvreplve0.w xr5, xr5
24862423 ld.d t0, sp, 8 // my
2487− addi.d t0, t0, -1
24882424 slli.w t0, t0, 2
2489− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2425+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
24902426 vsllwil.h.b vr6, vr6, 0
24912427 vsllwil.w.h vr6, vr6, 0
24922428 xvreplve0.q xr6, xr6
@@ -2516,15 +2452,13 @@ endfunc · 23 unmodified lines
25162452 function ff_hevc_put_hevc_epel_uni_w_hv64_8_lsx
25172453 LOAD_VAR 128
25182454 ld.d t0, sp, 0 // mx
2519− addi.d t0, t0, -1
25202455 slli.w t0, t0, 2
25212456 la.local t1, ff_hevc_epel_filters
2522− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2457+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
25232458 vreplvei.w vr5, vr5, 0
25242459 ld.d t0, sp, 8 // my
2525− addi.d t0, t0, -1
25262460 slli.w t0, t0, 2
2527− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2461+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
25282462 vsllwil.h.b vr6, vr6, 0
25292463 vsllwil.w.h vr6, vr6, 0
25302464 vreplvei.w vr16, vr6, 0
@@ -2554,15 +2488,13 @@ endfunc · 23 unmodified lines
25542488 function ff_hevc_put_hevc_epel_uni_w_hv64_8_lasx
25552489 LOAD_VAR 256
25562490 ld.d t0, sp, 0 // mx
2557− addi.d t0, t0, -1
25582491 slli.w t0, t0, 2
25592492 la.local t1, ff_hevc_epel_filters
2560− vldx vr5, t1, t0 // ff_hevc_epel_filters[mx - 1];
2493+ vldx vr5, t1, t0 // ff_hevc_epel_filters[mx];
25612494 xvreplve0.w xr5, xr5
25622495 ld.d t0, sp, 8 // my
2563− addi.d t0, t0, -1
25642496 slli.w t0, t0, 2
2565− vldx vr6, t1, t0 // ff_hevc_epel_filters[my - 1];
2497+ vldx vr6, t1, t0 // ff_hevc_epel_filters[my];
25662498 vsllwil.h.b vr6, vr6, 0
25672499 vsllwil.w.h vr6, vr6, 0
25682500 xvreplve0.q xr6, xr6
@@ -2596,8 +2528,7 @@ endfunc · 27 unmodified lines
25962528 * int width)
25972529 */
25982530 function ff_hevc_put_hevc_uni_qpel_h4_8_lsx
2599− addi.d t0, a5, -1
2600− slli.w t0, t0, 4
2531+ slli.w t0, a5, 4
26012532 la.local t1, ff_hevc_qpel_filters
26022533 vldx vr5, t1, t0 //filter
26032534 addi.d a2, a2, -3 //src -= 3
@@ -2663,8 +2594,7 @@ endfunc · 59 unmodified lines
26632594 .endm
26642595
26652596 function ff_hevc_put_hevc_uni_qpel_h6_8_lsx
2666− addi.d t0, a5, -1
2667− slli.w t0, t0, 4
2597+ slli.w t0, a5, 4
26682598 la.local t1, ff_hevc_qpel_filters
26692599 vldx vr0, t1, t0 //filter abcdefgh
26702600 vreplvei.h vr1, vr0, 1 //cd...
@@ -2692,8 +2622,7 @@ function ff_hevc_put_hevc_uni_qpel_h6_8_lsx · 21 unmodified lines
26922622 endfunc
26932623
26942624 function ff_hevc_put_hevc_uni_qpel_h8_8_lsx
2695− addi.d t0, a5, -1
2696− slli.w t0, t0, 4
2625+ slli.w t0, a5, 4
26972626 la.local t1, ff_hevc_qpel_filters
26982627 vldx vr0, t1, t0 //filter abcdefgh
26992628 vreplvei.h vr1, vr0, 1 //cd...
@@ -2720,8 +2649,7 @@ function ff_hevc_put_hevc_uni_qpel_h8_8_lsx · 20 unmodified lines
27202649 endfunc
27212650
27222651 function ff_hevc_put_hevc_uni_qpel_h12_8_lsx
2723− addi.d t0, a5, -1
2724− slli.w t0, t0, 4
2652+ slli.w t0, a5, 4
27252653 la.local t1, ff_hevc_qpel_filters
27262654 vldx vr0, t1, t0 //filter abcdefgh
27272655 vreplvei.h vr1, vr0, 1 //cd...
@@ -2751,8 +2679,7 @@ function ff_hevc_put_hevc_uni_qpel_h12_8_lsx · 23 unmodified lines
27512679 endfunc
27522680
27532681 function ff_hevc_put_hevc_uni_qpel_h12_8_lasx
2754− addi.d t0, a5, -1
2755− slli.w t0, t0, 4
2682+ slli.w t0, a5, 4
27562683 la.local t1, ff_hevc_qpel_filters
27572684 vldx vr0, t1, t0 //filter abcdefgh
27582685 xvreplve0.q xr0, xr0
@@ -2784,8 +2711,7 @@ function ff_hevc_put_hevc_uni_qpel_h12_8_lasx · 25 unmodified lines
27842711 endfunc
27852712
27862713 function ff_hevc_put_hevc_uni_qpel_h16_8_lsx
2787− addi.d t0, a5, -1
2788− slli.w t0, t0, 4
2714+ slli.w t0, a5, 4
27892715 la.local t1, ff_hevc_qpel_filters
27902716 vldx vr0, t1, t0 //filter abcdefgh
27912717 vreplvei.h vr1, vr0, 1 //cd...
@@ -2814,8 +2740,7 @@ function ff_hevc_put_hevc_uni_qpel_h16_8_lsx · 22 unmodified lines
28142740 endfunc
28152741
28162742 function ff_hevc_put_hevc_uni_qpel_h16_8_lasx
2817− addi.d t0, a5, -1
2818− slli.w t0, t0, 4
2743+ slli.w t0, a5, 4
28192744 la.local t1, ff_hevc_qpel_filters
28202745 vldx vr0, t1, t0 //filter abcdefgh
28212746 xvreplve0.q xr0, xr0
@@ -2846,8 +2771,7 @@ function ff_hevc_put_hevc_uni_qpel_h16_8_lasx · 24 unmodified lines
28462771 endfunc
28472772
28482773 function ff_hevc_put_hevc_uni_qpel_h24_8_lsx
2849− addi.d t0, a5, -1
2850− slli.w t0, t0, 4
2774+ slli.w t0, a5, 4
28512775 la.local t1, ff_hevc_qpel_filters
28522776 vldx vr0, t1, t0 //filter abcdefgh
28532777 vreplvei.h vr1, vr0, 1 //cd...
@@ -2880,8 +2804,7 @@ function ff_hevc_put_hevc_uni_qpel_h24_8_lsx · 26 unmodified lines
28802804 endfunc
28812805
28822806 function ff_hevc_put_hevc_uni_qpel_h24_8_lasx
2883− addi.d t0, a5, -1
2884− slli.w t0, t0, 4
2807+ slli.w t0, a5, 4
28852808 la.local t1, ff_hevc_qpel_filters
28862809 vldx vr0, t1, t0 //filter abcdefgh
28872810 xvreplve0.q xr0, xr0
@@ -2916,8 +2839,7 @@ function ff_hevc_put_hevc_uni_qpel_h24_8_lasx · 28 unmodified lines
29162839 endfunc
29172840
29182841 function ff_hevc_put_hevc_uni_qpel_h32_8_lsx
2919− addi.d t0, a5, -1
2920− slli.w t0, t0, 4
2842+ slli.w t0, a5, 4
29212843 la.local t1, ff_hevc_qpel_filters
29222844 vldx vr0, t1, t0 //filter abcdefgh
29232845 vreplvei.h vr1, vr0, 1 //cd...
@@ -2952,8 +2874,7 @@ function ff_hevc_put_hevc_uni_qpel_h32_8_lsx · 28 unmodified lines
29522874 endfunc
29532875
29542876 function ff_hevc_put_hevc_uni_qpel_h32_8_lasx
2955− addi.d t0, a5, -1
2956− slli.w t0, t0, 4
2877+ slli.w t0, a5, 4
29572878 la.local t1, ff_hevc_qpel_filters
29582879 vldx vr0, t1, t0 //filter abcdefgh
29592880 xvreplve0.q xr0, xr0
@@ -2987,8 +2908,7 @@ function ff_hevc_put_hevc_uni_qpel_h32_8_lasx · 27 unmodified lines
29872908 endfunc
29882909
29892910 function ff_hevc_put_hevc_uni_qpel_h48_8_lsx
2990− addi.d t0, a5, -1
2991− slli.w t0, t0, 4
2911+ slli.w t0, a5, 4
29922912 la.local t1, ff_hevc_qpel_filters
29932913 vldx vr0, t1, t0 //filter abcdefgh
29942914 vreplvei.h vr1, vr0, 1 //cd...
@@ -3029,8 +2949,7 @@ function ff_hevc_put_hevc_uni_qpel_h48_8_lsx · 34 unmodified lines
30292949 endfunc
30302950
30312951 function ff_hevc_put_hevc_uni_qpel_h48_8_lasx
3032− addi.d t0, a5, -1
3033− slli.w t0, t0, 4
2952+ slli.w t0, a5, 4
30342953 la.local t1, ff_hevc_qpel_filters
30352954 vldx vr0, t1, t0 //filter abcdefgh
30362955 xvreplve0.q xr0, xr0
@@ -3070,8 +2989,7 @@ function ff_hevc_put_hevc_uni_qpel_h48_8_lasx · 33 unmodified lines
30702989 endfunc
30712990
30722991 function ff_hevc_put_hevc_uni_qpel_h64_8_lasx
3073− addi.d t0, a5, -1
3074− slli.w t0, t0, 4
2992+ slli.w t0, a5, 4
30752993 la.local t1, ff_hevc_qpel_filters
30762994 vldx vr0, t1, t0 //filter abcdefgh
30772995 xvreplve0.q xr0, xr0
@@ -3122,7 +3040,6 @@ endfunc · 44 unmodified lines
31223040 function ff_hevc_put_hevc_epel_uni_w_v4_8_lsx
31233041 LOAD_VAR 128
31243042 ld.d t0, sp, 8 //my
3125− addi.d t0, t0, -1
31263043 slli.w t0, t0, 2
31273044 la.local t1, ff_hevc_epel_filters
31283045 vldx vr0, t1, t0 //filter
@@ -3260,7 +3177,6 @@ endfunc · 131 unmodified lines
32603177 function ff_hevc_put_hevc_epel_uni_w_v6_8_lsx
32613178 LOAD_VAR 128
32623179 ld.d t0, sp, 8 //my
3263− addi.d t0, t0, -1
32643180 slli.w t0, t0, 2
32653181 la.local t1, ff_hevc_epel_filters
32663182 vldx vr0, t1, t0 //filter
@@ -3275,7 +3191,6 @@ endfunc · 8 unmodified lines
32753191 function ff_hevc_put_hevc_epel_uni_w_v6_8_lasx
32763192 LOAD_VAR 256
32773193 ld.d t0, sp, 8 //my
3278− addi.d t0, t0, -1
32793194 slli.w t0, t0, 2
32803195 la.local t1, ff_hevc_epel_filters
32813196 vldx vr0, t1, t0 //filter
@@ -3289,7 +3204,6 @@ endfunc · 7 unmodified lines
32893204 function ff_hevc_put_hevc_epel_uni_w_v8_8_lsx
32903205 LOAD_VAR 128
32913206 ld.d t0, sp, 8 //my
3292− addi.d t0, t0, -1
32933207 slli.w t0, t0, 2
32943208 la.local t1, ff_hevc_epel_filters
32953209 vldx vr0, t1, t0 //filter
@@ -3304,7 +3218,6 @@ endfunc · 8 unmodified lines
33043218 function ff_hevc_put_hevc_epel_uni_w_v8_8_lasx
33053219 LOAD_VAR 256
33063220 ld.d t0, sp, 8 //my
3307− addi.d t0, t0, -1
33083221 slli.w t0, t0, 2
33093222 la.local t1, ff_hevc_epel_filters
33103223 vldx vr0, t1, t0 //filter
@@ -3394,7 +3307,6 @@ endfunc · 83 unmodified lines
33943307 function ff_hevc_put_hevc_epel_uni_w_v12_8_lsx
33953308 LOAD_VAR 128
33963309 ld.d t0, sp, 8 //my
3397− addi.d t0, t0, -1
33983310 slli.w t0, t0, 2
33993311 la.local t1, ff_hevc_epel_filters
34003312 vldx vr0, t1, t0 //filter
@@ -3409,7 +3321,6 @@ endfunc · 8 unmodified lines
34093321 function ff_hevc_put_hevc_epel_uni_w_v12_8_lasx
34103322 LOAD_VAR 256
34113323 ld.d t0, sp, 8 //my
3412− addi.d t0, t0, -1
34133324 slli.w t0, t0, 2
34143325 la.local t1, ff_hevc_epel_filters
34153326 vldx vr0, t1, t0 //filter
@@ -3425,7 +3336,6 @@ endfunc · 9 unmodified lines
34253336 function ff_hevc_put_hevc_epel_uni_w_v16_8_lsx
34263337 LOAD_VAR 128
34273338 ld.d t0, sp, 8 //my
3428− addi.d t0, t0, -1
34293339 slli.w t0, t0, 2
34303340 la.local t1, ff_hevc_epel_filters
34313341 vldx vr0, t1, t0 //filter
@@ -3440,7 +3350,6 @@ endfunc · 8 unmodified lines
34403350 function ff_hevc_put_hevc_epel_uni_w_v16_8_lasx
34413351 LOAD_VAR 256
34423352 ld.d t0, sp, 8 //my
3443− addi.d t0, t0, -1
34443353 slli.w t0, t0, 2
34453354 la.local t1, ff_hevc_epel_filters
34463355 vldx vr0, t1, t0 //filter
@@ -3456,7 +3365,6 @@ endfunc · 9 unmodified lines
34563365 function ff_hevc_put_hevc_epel_uni_w_v24_8_lsx
34573366 LOAD_VAR 128
34583367 ld.d t0, sp, 8 //my
3459− addi.d t0, t0, -1
34603368 slli.w t0, t0, 2
34613369 la.local t1, ff_hevc_epel_filters
34623370 vldx vr0, t1, t0 //filter
@@ -3478,7 +3386,6 @@ endfunc · 15 unmodified lines
34783386 function ff_hevc_put_hevc_epel_uni_w_v24_8_lasx
34793387 LOAD_VAR 256
34803388 ld.d t0, sp, 8 //my
3481− addi.d t0, t0, -1
34823389 slli.w t0, t0, 2
34833390 la.local t1, ff_hevc_epel_filters
34843391 vldx vr0, t1, t0 //filter
@@ -3503,7 +3410,6 @@ endfunc · 18 unmodified lines
35033410 function ff_hevc_put_hevc_epel_uni_w_v32_8_lsx
35043411 LOAD_VAR 128
35053412 ld.d t0, sp, 8 //my
3506− addi.d t0, t0, -1
35073413 slli.w t0, t0, 2
35083414 la.local t1, ff_hevc_epel_filters
35093415 vldx vr0, t1, t0 //filter
@@ -3525,7 +3431,6 @@ endfunc · 15 unmodified lines
35253431 function ff_hevc_put_hevc_epel_uni_w_v32_8_lasx
35263432 LOAD_VAR 256
35273433 ld.d t0, sp, 8 //my
3528− addi.d t0, t0, -1
35293434 slli.w t0, t0, 2
35303435 la.local t1, ff_hevc_epel_filters
35313436 vldx vr0, t1, t0 //filter
@@ -3548,7 +3453,6 @@ endfunc · 16 unmodified lines
35483453 function ff_hevc_put_hevc_epel_uni_w_v48_8_lsx
35493454 LOAD_VAR 128
35503455 ld.d t0, sp, 8 //my
3551− addi.d t0, t0, -1
35523456 slli.w t0, t0, 2
35533457 la.local t1, ff_hevc_epel_filters
35543458 vldx vr0, t1, t0 //filter
@@ -3574,7 +3478,6 @@ endfunc · 19 unmodified lines
35743478 function ff_hevc_put_hevc_epel_uni_w_v48_8_lasx
35753479 LOAD_VAR 256
35763480 ld.d t0, sp, 8 //my
3577− addi.d t0, t0, -1
35783481 slli.w t0, t0, 2
35793482 la.local t1, ff_hevc_epel_filters
35803483 vldx vr0, t1, t0 //filter
@@ -3601,7 +3504,6 @@ endfunc · 20 unmodified lines
36013504 function ff_hevc_put_hevc_epel_uni_w_v64_8_lsx
36023505 LOAD_VAR 128
36033506 ld.d t0, sp, 8 //my
3604− addi.d t0, t0, -1
36053507 slli.w t0, t0, 2
36063508 la.local t1, ff_hevc_epel_filters
36073509 vldx vr0, t1, t0 //filter
@@ -3631,7 +3533,6 @@ endfunc · 23 unmodified lines
36313533 function ff_hevc_put_hevc_epel_uni_w_v64_8_lasx
36323534 LOAD_VAR 256
36333535 ld.d t0, sp, 8 //my
3634− addi.d t0, t0, -1
36353536 slli.w t0, t0, 2
36363537 la.local t1, ff_hevc_epel_filters
36373538 vldx vr0, t1, t0 //filter
@@ -3668,7 +3569,6 @@ endfunc · 30 unmodified lines
36683569 function ff_hevc_put_hevc_epel_uni_w_h4_8_lsx
36693570 LOAD_VAR 128
36703571 ld.d t0, sp, 0 //mx
3671− addi.d t0, t0, -1
36723572 slli.w t0, t0, 2
36733573 la.local t1, ff_hevc_epel_filters
36743574 vldx vr0, t1, t0 //filter
@@ -3699,7 +3599,6 @@ endfunc · 24 unmodified lines
36993599 function ff_hevc_put_hevc_epel_uni_w_h6_8_lsx
37003600 LOAD_VAR 128
37013601 ld.d t0, sp, 0 //mx
3702− addi.d t0, t0, -1
37033602 slli.w t0, t0, 2
37043603 la.local t1, ff_hevc_epel_filters
37053604 vldx vr0, t1, t0 //filter
@@ -3730,7 +3629,6 @@ endfunc · 24 unmodified lines
37303629 function ff_hevc_put_hevc_epel_uni_w_h6_8_lasx
37313630 LOAD_VAR 256
37323631 ld.d t0, sp, 0 //mx
3733− addi.d t0, t0, -1
37343632 slli.w t0, t0, 2
37353633 la.local t1, ff_hevc_epel_filters
37363634 vldx vr0, t1, t0 //filter
@@ -3759,7 +3657,6 @@ endfunc · 22 unmodified lines
37593657 function ff_hevc_put_hevc_epel_uni_w_h8_8_lsx
37603658 LOAD_VAR 128
37613659 ld.d t0, sp, 0 //mx
3762− addi.d t0, t0, -1
37633660 slli.w t0, t0, 2
37643661 la.local t1, ff_hevc_epel_filters
37653662 vldx vr0, t1, t0 //filter
@@ -3789,7 +3686,6 @@ endfunc · 23 unmodified lines
37893686 function ff_hevc_put_hevc_epel_uni_w_h8_8_lasx
37903687 LOAD_VAR 256
37913688 ld.d t0, sp, 0 //mx
3792− addi.d t0, t0, -1
37933689 slli.w t0, t0, 2
37943690 la.local t1, ff_hevc_epel_filters
37953691 vldx vr0, t1, t0 //filter
@@ -3853,7 +3749,6 @@ endfunc · 57 unmodified lines
38533749 function ff_hevc_put_hevc_epel_uni_w_h12_8_lsx
38543750 LOAD_VAR 128
38553751 ld.d t0, sp, 0 //mx
3856− addi.d t0, t0, -1
38573752 slli.w t0, t0, 2
38583753 la.local t1, ff_hevc_epel_filters
38593754 vldx vr0, t1, t0 //filter
@@ -3889,7 +3784,6 @@ endfunc · 29 unmodified lines
38893784 function ff_hevc_put_hevc_epel_uni_w_h12_8_lasx
38903785 LOAD_VAR 256
38913786 ld.d t0, sp, 0 //mx
3892− addi.d t0, t0, -1
38933787 slli.w t0, t0, 2
38943788 la.local t1, ff_hevc_epel_filters
38953789 vldx vr0, t1, t0 //filter
@@ -3910,7 +3804,6 @@ endfunc · 14 unmodified lines
39103804 function ff_hevc_put_hevc_epel_uni_w_h16_8_lsx
39113805 LOAD_VAR 128
39123806 ld.d t0, sp, 0 //mx
3913− addi.d t0, t0, -1
39143807 slli.w t0, t0, 2
39153808 la.local t1, ff_hevc_epel_filters
39163809 vldx vr0, t1, t0 //filter
@@ -3934,7 +3827,6 @@ endfunc · 17 unmodified lines
39343827 function ff_hevc_put_hevc_epel_uni_w_h16_8_lasx
39353828 LOAD_VAR 256
39363829 ld.d t0, sp, 0 //mx
3937− addi.d t0, t0, -1
39383830 slli.w t0, t0, 2
39393831 la.local t1, ff_hevc_epel_filters
39403832 vldx vr0, t1, t0 //filter
@@ -3955,7 +3847,6 @@ endfunc · 14 unmodified lines
39553847 function ff_hevc_put_hevc_epel_uni_w_h24_8_lsx
39563848 LOAD_VAR 128
39573849 ld.d t0, sp, 0 //mx
3958− addi.d t0, t0, -1
39593850 slli.w t0, t0, 2
39603851 la.local t1, ff_hevc_epel_filters
39613852 vldx vr0, t1, t0 //filter
@@ -3986,7 +3877,6 @@ endfunc · 24 unmodified lines
39863877 function ff_hevc_put_hevc_epel_uni_w_h24_8_lasx
39873878 LOAD_VAR 256
39883879 ld.d t0, sp, 0 //mx
3989− addi.d t0, t0, -1
39903880 slli.w t0, t0, 2
39913881 la.local t1, ff_hevc_epel_filters
39923882 vldx vr0, t1, t0 //filter
@@ -4015,7 +3905,6 @@ endfunc · 22 unmodified lines
40153905 function ff_hevc_put_hevc_epel_uni_w_h32_8_lsx
40163906 LOAD_VAR 128
40173907 ld.d t0, sp, 0 //mx
4018− addi.d t0, t0, -1
40193908 slli.w t0, t0, 2
40203909 la.local t1, ff_hevc_epel_filters
40213910 vldx vr0, t1, t0 //filter
@@ -4040,7 +3929,6 @@ endfunc · 18 unmodified lines
40403929 function ff_hevc_put_hevc_epel_uni_w_h32_8_lasx
40413930 LOAD_VAR 256
40423931 ld.d t0, sp, 0 //mx
4043− addi.d t0, t0, -1
40443932 slli.w t0, t0, 2
40453933 la.local t1, ff_hevc_epel_filters
40463934 vldx vr0, t1, t0 //filter
@@ -4062,7 +3950,6 @@ endfunc · 15 unmodified lines
40623950 function ff_hevc_put_hevc_epel_uni_w_h48_8_lsx
40633951 LOAD_VAR 128
40643952 ld.d t0, sp, 0 //mx
4065− addi.d t0, t0, -1
40663953 slli.w t0, t0, 2
40673954 la.local t1, ff_hevc_epel_filters
40683955 vldx vr0, t1, t0 //filter
@@ -4088,7 +3975,6 @@ endfunc · 19 unmodified lines
40883975 function ff_hevc_put_hevc_epel_uni_w_h48_8_lasx
40893976 LOAD_VAR 256
40903977 ld.d t0, sp, 0 //mx
4091− addi.d t0, t0, -1
40923978 slli.w t0, t0, 2
40933979 la.local t1, ff_hevc_epel_filters
40943980 vldx vr0, t1, t0 //filter
@@ -4111,7 +3997,6 @@ endfunc · 16 unmodified lines
41113997 function ff_hevc_put_hevc_epel_uni_w_h64_8_lsx
41123998 LOAD_VAR 128
41133999 ld.d t0, sp, 0 //mx
4114− addi.d t0, t0, -1
41154000 slli.w t0, t0, 2
41164001 la.local t1, ff_hevc_epel_filters
41174002 vldx vr0, t1, t0 //filter
@@ -4138,7 +4023,6 @@ endfunc · 20 unmodified lines
41384023 function ff_hevc_put_hevc_epel_uni_w_h64_8_lasx
41394024 LOAD_VAR 256
41404025 ld.d t0, sp, 0 //mx
4141− addi.d t0, t0, -1
41424026 slli.w t0, t0, 2
41434027 la.local t1, ff_hevc_epel_filters
41444028 vldx vr0, t1, t0 //filter
@@ -4166,7 +4050,6 @@ endfunc · 21 unmodified lines
41664050 * intptr_t my, int width)
41674051 */
41684052 function ff_hevc_put_hevc_bi_epel_h4_8_lsx
4169− addi.d a6, a6, -1
41704053 slli.w a6, a6, 2
41714054 la.local t0, ff_hevc_epel_filters
41724055 vldx vr0, t0, a6 // filter
@@ -4209,7 +4092,6 @@ endfunc · 36 unmodified lines
42094092 .endm
42104093
42114094 function ff_hevc_put_hevc_bi_epel_h6_8_lsx
4212− addi.d a6, a6, -1
42134095 slli.w a6, a6, 2
42144096 la.local t0, ff_hevc_epel_filters
42154097 vldx vr0, t0, a6 // filter
@@ -4234,7 +4116,6 @@ function ff_hevc_put_hevc_bi_epel_h6_8_lsx · 18 unmodified lines
42344116 endfunc
42354117
42364118 function ff_hevc_put_hevc_bi_epel_h8_8_lsx
4237− addi.d a6, a6, -1
42384119 slli.w a6, a6, 2
42394120 la.local t0, ff_hevc_epel_filters
42404121 vldx vr0, t0, a6 // filter
@@ -4258,7 +4139,6 @@ function ff_hevc_put_hevc_bi_epel_h8_8_lsx · 17 unmodified lines
42584139 endfunc
42594140
42604141 function ff_hevc_put_hevc_bi_epel_h12_8_lsx
4261− addi.d a6, a6, -1
42624142 slli.w a6, a6, 2
42634143 la.local t0, ff_hevc_epel_filters
42644144 vldx vr0, t0, a6 // filter
@@ -4286,7 +4166,6 @@ function ff_hevc_put_hevc_bi_epel_h12_8_lsx · 21 unmodified lines
42864166 endfunc
42874167
42884168 function ff_hevc_put_hevc_bi_epel_h12_8_lasx
4289− addi.d a6, a6, -1
42904169 slli.w a6, a6, 2
42914170 la.local t0, ff_hevc_epel_filters
42924171 vldx vr0, t0, a6 // filter
@@ -4314,7 +4193,6 @@ function ff_hevc_put_hevc_bi_epel_h12_8_lasx · 21 unmodified lines
43144193 endfunc
43154194
43164195 function ff_hevc_put_hevc_bi_epel_h16_8_lsx
4317− addi.d a6, a6, -1
43184196 slli.w a6, a6, 2
43194197 la.local t0, ff_hevc_epel_filters
43204198 vldx vr0, t0, a6 // filter
@@ -4341,7 +4219,6 @@ function ff_hevc_put_hevc_bi_epel_h16_8_lsx · 20 unmodified lines
43414219 endfunc
43424220
43434221 function ff_hevc_put_hevc_bi_epel_h16_8_lasx
4344− addi.d a6, a6, -1
43454222 slli.w a6, a6, 2
43464223 la.local t0, ff_hevc_epel_filters
43474224 vldx vr0, t0, a6 // filter
@@ -4368,7 +4245,6 @@ function ff_hevc_put_hevc_bi_epel_h16_8_lasx · 20 unmodified lines
43684245 endfunc
43694246
43704247 function ff_hevc_put_hevc_bi_epel_h32_8_lasx
4371− addi.d a6, a6, -1
43724248 slli.w a6, a6, 2
43734249 la.local t0, ff_hevc_epel_filters
43744250 vldx vr0, t0, a6 // filter
@@ -4400,7 +4276,6 @@ function ff_hevc_put_hevc_bi_epel_h32_8_lasx · 25 unmodified lines
44004276 endfunc
44014277
44024278 function ff_hevc_put_hevc_bi_epel_h48_8_lsx
4403− addi.d a6, a6, -1
44044279 slli.w a6, a6, 2
44054280 la.local t0, ff_hevc_epel_filters
44064281 vldx vr0, t0, a6// filter
@@ -4443,7 +4318,6 @@ function ff_hevc_put_hevc_bi_epel_h48_8_lsx · 36 unmodified lines
44434318 endfunc
44444319
44454320 function ff_hevc_put_hevc_bi_epel_h48_8_lasx
4446− addi.d a6, a6, -1
44474321 slli.w a6, a6, 2
44484322 la.local t0, ff_hevc_epel_filters
44494323 vldx vr0, t0, a6 // filter
@@ -4481,7 +4355,6 @@ function ff_hevc_put_hevc_bi_epel_h48_8_lasx · 31 unmodified lines
44814355 endfunc
44824356
44834357 function ff_hevc_put_hevc_bi_epel_h64_8_lsx
4484− addi.d a6, a6, -1
44854358 slli.w a6, a6, 2
44864359 la.local t0, ff_hevc_epel_filters
44874360 vldx vr0, t0, a6// filter
@@ -4531,7 +4404,6 @@ function ff_hevc_put_hevc_bi_epel_h64_8_lsx · 43 unmodified lines
45314404 endfunc
45324405
45334406 function ff_hevc_put_hevc_bi_epel_h64_8_lasx
4534− addi.d a6, a6, -1
45354407 slli.w a6, a6, 2
45364408 la.local t0, ff_hevc_epel_filters
45374409 vldx vr0, t0, a6 // filter
libavcodec/loongarch/hevc_mc_bi_lsx.c+3−3
@@ -2224,7 +2224,7 @@ void ff_hevc_put_hevc_bi_##PEL##_##DIR##WIDTH##_8_lsx(uint8_t *dst, \ · 2223 unmodified lines
22242224 intptr_t my, \
22252225 int width) \
22262226 { \
2227− const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \
2227+ const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
22282228 \
22292229 hevc_##DIR1##_##TAP##t_##WIDTH##w_lsx(src, src_stride, src_16bit, \
22302230 MAX_PB_SIZE, dst, dst_stride, \
@@ -2265,8 +2265,8 @@ void ff_hevc_put_hevc_bi_##PEL##_hv##WIDTH##_8_lsx(uint8_t *dst, \ · 34 unmodified lines
22652265 intptr_t my, \
22662266 int width) \
22672267 { \
2268− const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \
2269− const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \
2268+ const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
2269+ const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
22702270 \
22712271 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, src_16bit, \
22722272 MAX_PB_SIZE, dst, dst_stride, \
libavcodec/loongarch/hevc_mc_uni_lsx.c+3−3
@@ -1373,7 +1373,7 @@ void ff_hevc_put_hevc_uni_##PEL##_##DIR##WIDTH##_8_lsx(uint8_t *dst, \ · 1372 unmodified lines
13731373 intptr_t my, \
13741374 int width) \
13751375 { \
1376− const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \
1376+ const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
13771377 \
13781378 common_##DIR1##_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, dst_stride, \
13791379 filter, height); \
@@ -1401,8 +1401,8 @@ void ff_hevc_put_hevc_uni_##PEL##_hv##WIDTH##_8_lsx(uint8_t *dst, \ · 21 unmodified lines
14011401 intptr_t my, \
14021402 int width) \
14031403 { \
1404− const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \
1405− const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \
1404+ const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
1405+ const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
14061406 \
14071407 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, dst_stride, \
14081408 filter_x, filter_y, height); \
libavcodec/loongarch/hevc_mc_uniw_lsx.c+2−2
@@ -280,8 +280,8 @@ void ff_hevc_put_hevc_uni_w_##PEL##_hv##WIDTH##_8_lsx(uint8_t *dst, \ · 279 unmodified lines
280280 intptr_t my, \
281281 int width) \
282282 { \
283− const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \
284− const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \
283+ const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
284+ const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
285285 int shift = denom + 14 - 8; \
286286 \
287287 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, dst_stride, filter_x,\
libavcodec/loongarch/hevcdsp_lsx.c+3−3
@@ -3233,7 +3233,7 @@ void ff_hevc_put_hevc_##PEL##_##DIR##WIDTH##_8_lsx(int16_t *dst, \ · 3232 unmodified lines
32333233 intptr_t my, \
32343234 int width) \
32353235 { \
3236− const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \
3236+ const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
32373237 \
32383238 hevc_##DIR1##_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, \
32393239 MAX_PB_SIZE, filter, height); \
@@ -3274,8 +3274,8 @@ void ff_hevc_put_hevc_##PEL##_hv##WIDTH##_8_lsx(int16_t *dst, \ · 34 unmodified lines
32743274 intptr_t my, \
32753275 int width) \
32763276 { \
3277− const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \
3278− const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \
3277+ const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
3278+ const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
32793279 \
32803280 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, MAX_PB_SIZE, \
32813281 filter_x, filter_y, height); \
libavcodec/mips/hevc_mc_bi_msa.c+3−3
@@ -5096,7 +5096,7 @@ void ff_hevc_put_hevc_bi_##PEL##_##DIR##WIDTH##_8_msa(uint8_t *dst, \ · 5095 unmodified lines
50965096 intptr_t my, \
50975097 int width) \
50985098 { \
5099− const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \
5099+ const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
51005100 \
51015101 hevc_##DIR1##_bi_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \
51025102 MAX_PB_SIZE, dst, dst_stride, \
@@ -5150,8 +5150,8 @@ void ff_hevc_put_hevc_bi_##PEL##_hv##WIDTH##_8_msa(uint8_t *dst, \ · 47 unmodified lines
51505150 intptr_t my, \
51515151 int width) \
51525152 { \
5153− const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \
5154− const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \
5153+ const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
5154+ const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
51555155 \
51565156 hevc_hv_bi_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \
51575157 MAX_PB_SIZE, dst, dst_stride, \
libavcodec/mips/hevc_mc_biw_msa.c+3−3
@@ -6060,7 +6060,7 @@ void ff_hevc_put_hevc_bi_w_##PEL##_##DIR##WIDTH##_8_msa(uint8_t *dst, \ · 6059 unmodified lines
60606060 intptr_t my, \
60616061 int width) \
60626062 { \
6063− const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \
6063+ const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
60646064 int log2Wd = denom + 14 - 8; \
60656065 \
60666066 hevc_##DIR1##_biwgt_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \
@@ -6122,8 +6122,8 @@ void ff_hevc_put_hevc_bi_w_##PEL##_hv##WIDTH##_8_msa(uint8_t *dst, \ · 55 unmodified lines
61226122 intptr_t my, \
61236123 int width) \
61246124 { \
6125− const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \
6126− const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \
6125+ const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
6126+ const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
61276127 int log2Wd = denom + 14 - 8; \
61286128 \
61296129 hevc_hv_biwgt_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \
libavcodec/mips/hevc_mc_uni_msa.c+3−3
@@ -4155,7 +4155,7 @@ void ff_hevc_put_hevc_uni_##PEL##_##DIR##WIDTH##_8_msa(uint8_t *dst, \ · 4154 unmodified lines
41554155 intptr_t my, \
41564156 int width) \
41574157 { \
4158− const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \
4158+ const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
41594159 \
41604160 common_##DIR1##_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, dst_stride, \
41614161 filter, height); \
@@ -4207,8 +4207,8 @@ void ff_hevc_put_hevc_uni_##PEL##_hv##WIDTH##_8_msa(uint8_t *dst, \ · 45 unmodified lines
42074207 intptr_t my, \
42084208 int width) \
42094209 { \
4210− const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \
4211− const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \
4210+ const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
4211+ const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
42124212 \
42134213 hevc_hv_uni_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, dst_stride, \
42144214 filter_x, filter_y, height); \
libavcodec/mips/hevc_mc_uniw_msa.c+3−3
@@ -6263,7 +6263,7 @@ void ff_hevc_put_hevc_uni_w_##PEL##_##DIR##WIDTH##_8_msa(uint8_t *dst, \ · 6262 unmodified lines
62636263 intptr_t my, \
62646264 int width) \
62656265 { \
6266− const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \
6266+ const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
62676267 int shift = denom + 14 - 8; \
62686268 \
62696269 hevc_##DIR1##_uniwgt_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, \
@@ -6320,8 +6320,8 @@ void ff_hevc_put_hevc_uni_w_##PEL##_hv##WIDTH##_8_msa(uint8_t *dst, \ · 50 unmodified lines
63206320 intptr_t my, \
63216321 int width) \
63226322 { \
6323− const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \
6324− const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \
6323+ const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
6324+ const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
63256325 int shift = denom + 14 - 8; \
63266326 \
63276327 hevc_hv_uniwgt_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, dst_stride, \
libavcodec/mips/hevcdsp_mmi.c+10−10
@@ -34,7 +34,7 @@ void ff_hevc_put_hevc_qpel_h##w##_8_mmi(int16_t *dst, const uint8_t *_src, \ · 33 unmodified lines
3434 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \
3535 double ftmp[15]; \
3636 uint64_t rtmp[1]; \
37− const int8_t *filter = ff_hevc_qpel_filters[mx - 1]; \
37+ const int8_t *filter = ff_hevc_qpel_filters[mx]; \
3838 DECLARE_VAR_ALL64; \
3939 \
4040 x = x_step; \
@@ -134,7 +134,7 @@ void ff_hevc_put_hevc_qpel_hv##w##_8_mmi(int16_t *dst, const uint8_t *_src,\ · 93 unmodified lines
134134 DECLARE_VAR_ALL64; \
135135 \
136136 src -= (QPEL_EXTRA_BEFORE * srcstride + 3); \
137− filter = ff_hevc_qpel_filters[mx - 1]; \
137+ filter = ff_hevc_qpel_filters[mx]; \
138138 x = x_step; \
139139 y = height + QPEL_EXTRA; \
140140 __asm__ volatile( \
@@ -206,7 +206,7 @@ void ff_hevc_put_hevc_qpel_hv##w##_8_mmi(int16_t *dst, const uint8_t *_src,\ · 65 unmodified lines
206206 ); \
207207 \
208208 tmp = tmp_array + QPEL_EXTRA_BEFORE * 4 -12; \
209− filter = ff_hevc_qpel_filters[my - 1]; \
209+ filter = ff_hevc_qpel_filters[my]; \
210210 x = x_step; \
211211 y = height; \
212212 __asm__ volatile( \
@@ -314,7 +314,7 @@ void ff_hevc_put_hevc_qpel_bi_h##w##_8_mmi(uint8_t *_dst, \ · 101 unmodified lines
314314 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \
315315 pixel *dst = (pixel *)_dst; \
316316 ptrdiff_t dststride = _dststride / sizeof(pixel); \
317− const int8_t *filter = ff_hevc_qpel_filters[mx - 1]; \
317+ const int8_t *filter = ff_hevc_qpel_filters[mx]; \
318318 double ftmp[20]; \
319319 uint64_t rtmp[1]; \
320320 union av_intfloat64 shift; \
@@ -458,7 +458,7 @@ void ff_hevc_put_hevc_qpel_bi_hv##w##_8_mmi(uint8_t *_dst, \ · 137 unmodified lines
458458 offset.i = 64; \
459459 \
460460 src -= (QPEL_EXTRA_BEFORE * srcstride + 3); \
461− filter = ff_hevc_qpel_filters[mx - 1]; \
461+ filter = ff_hevc_qpel_filters[mx]; \
462462 x = width >> 2; \
463463 y = height + QPEL_EXTRA; \
464464 __asm__ volatile( \
@@ -530,7 +530,7 @@ void ff_hevc_put_hevc_qpel_bi_hv##w##_8_mmi(uint8_t *_dst, \ · 65 unmodified lines
530530 ); \
531531 \
532532 tmp = tmp_array; \
533− filter = ff_hevc_qpel_filters[my - 1]; \
533+ filter = ff_hevc_qpel_filters[my]; \
534534 x = width >> 2; \
535535 y = height; \
536536 __asm__ volatile( \
@@ -665,7 +665,7 @@ void ff_hevc_put_hevc_epel_bi_hv##w##_8_mmi(uint8_t *_dst, \ · 128 unmodified lines
665665 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \
666666 pixel *dst = (pixel *)_dst; \
667667 ptrdiff_t dststride = _dststride / sizeof(pixel); \
668− const int8_t *filter = ff_hevc_epel_filters[mx - 1]; \
668+ const int8_t *filter = ff_hevc_epel_filters[mx]; \
669669 int16_t tmp_array[(MAX_PB_SIZE + EPEL_EXTRA) * MAX_PB_SIZE]; \
670670 int16_t *tmp = tmp_array; \
671671 double ftmp[12]; \
@@ -735,7 +735,7 @@ void ff_hevc_put_hevc_epel_bi_hv##w##_8_mmi(uint8_t *_dst, \ · 63 unmodified lines
735735 ); \
736736 \
737737 tmp = tmp_array; \
738− filter = ff_hevc_epel_filters[my - 1]; \
738+ filter = ff_hevc_epel_filters[my]; \
739739 x = width >> 2; \
740740 y = height; \
741741 __asm__ volatile( \
@@ -969,7 +969,7 @@ void ff_hevc_put_hevc_qpel_uni_hv##w##_8_mmi(uint8_t *_dst, \ · 227 unmodified lines
969969 offset.i = 32; \
970970 \
971971 src -= (QPEL_EXTRA_BEFORE * srcstride + 3); \
972− filter = ff_hevc_qpel_filters[mx - 1]; \
972+ filter = ff_hevc_qpel_filters[mx]; \
973973 x = width >> 2; \
974974 y = height + QPEL_EXTRA; \
975975 __asm__ volatile( \
@@ -1041,7 +1041,7 @@ void ff_hevc_put_hevc_qpel_uni_hv##w##_8_mmi(uint8_t *_dst, \ · 65 unmodified lines
10411041 ); \
10421042 \
10431043 tmp = tmp_array; \
1044− filter = ff_hevc_qpel_filters[my - 1]; \
1044+ filter = ff_hevc_qpel_filters[my]; \
10451045 x = width >> 2; \
10461046 y = height; \
10471047 __asm__ volatile( \
libavcodec/mips/hevcdsp_msa.c+3−3
@@ -4322,7 +4322,7 @@ void ff_hevc_put_hevc_##PEL##_##DIR##WIDTH##_8_msa(int16_t *dst, \ · 4321 unmodified lines
43224322 intptr_t my, \
43234323 int width) \
43244324 { \
4325− const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \
4325+ const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
43264326 \
43274327 hevc_##DIR1##_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, \
43284328 MAX_PB_SIZE, filter, height); \
@@ -4373,8 +4373,8 @@ void ff_hevc_put_hevc_##PEL##_hv##WIDTH##_8_msa(int16_t *dst, \ · 44 unmodified lines
43734373 intptr_t my, \
43744374 int width) \
43754375 { \
4376− const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \
4377− const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \
4376+ const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
4377+ const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
43784378 \
43794379 hevc_hv_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, MAX_PB_SIZE, \
43804380 filter_x, filter_y, height); \
libavcodec/x86/hevcdsp_init.c+2−2
@@ -88,8 +88,8 @@ IDCT_FUNCS(avx) · 87 unmodified lines
8888
8989 #define ff_hevc_pel_filters ff_hevc_qpel_filters
9090 #define DECL_HV_FILTER(f) \
91− const uint8_t *hf = ff_hevc_ ## f ## _filters[mx - 1]; \
92− const uint8_t *vf = ff_hevc_ ## f ## _filters[my - 1];
91+ const uint8_t *hf = ff_hevc_ ## f ## _filters[mx]; \
92+ const uint8_t *vf = ff_hevc_ ## f ## _filters[my];
9393
9494 #define FW_PUT(p, a, b, depth, opt) \
9595 void ff_hevc_put_hevc_ ## a ## _ ## depth ## _##opt(int16_t *dst, const uint8_t *src, ptrdiff_t srcstride, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t