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
91 90, -90, 88, -85, 82, -78, 73, -67, 61, -54, 46, -38, 31, -22, 13, -4 },91 90, -90, 88, -85, 82, -78, 73, -67, 61, -54, 46, -38, 31, -22, 13, -4 },
92};92};
93 93
94DECLARE_ALIGNED(16, const int8_t, ff_hevc_epel_filters)[7][4] = {94DECLARE_ALIGNED(16, const int8_t, ff_hevc_epel_filters)[8][4] = {
95 { 0 },
95 { -2, 58, 10, -2},96 { -2, 58, 10, -2},
96 { -4, 54, 16, -2},97 { -4, 54, 16, -2},
97 { -6, 46, 28, -4},98 { -6, 46, 28, -4},
@@ -101,7 +102,8 @@ DECLARE_ALIGNED(16, const int8_t, ff_hevc_epel_filters)[7][4] = { · 3 unmodified lines
101 { -2, 10, 58, -2},102 { -2, 10, 58, -2},
102};103};
103 104
104DECLARE_ALIGNED(16, const int8_t, ff_hevc_qpel_filters)[3][16] = {105DECLARE_ALIGNED(16, const int8_t, ff_hevc_qpel_filters)[4][16] = {
106 { 0 },
105 { -1, 4,-10, 58, 17, -5, 1, 0, -1, 4,-10, 58, 17, -5, 1, 0},107 { -1, 4,-10, 58, 17, -5, 1, 0, -1, 4,-10, 58, 17, -5, 1, 0},
106 { -1, 4,-11, 40, 40,-11, 4, -1, -1, 4,-11, 40, 40,-11, 4, -1},108 { -1, 4,-11, 40, 40,-11, 4, -1, -1, 4,-11, 40, 40,-11, 4, -1},
107 { 0, 1, -5, 17, 58,-10, 4, -1, 0, 1, -5, 17, 58,-10, 4, -1}109 { 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
126 126
127void ff_hevc_dsp_init(HEVCDSPContext *hpc, int bit_depth);127void ff_hevc_dsp_init(HEVCDSPContext *hpc, int bit_depth);
128 128
129extern const int8_t ff_hevc_epel_filters[7][4];129/** ff_hevc_.pel_filters[0] are dummies to simplify array addressing */
130extern const int8_t ff_hevc_qpel_filters[3][16];130extern const int8_t ff_hevc_epel_filters[8][4];
131extern const int8_t ff_hevc_qpel_filters[4][16];
131 132
132void ff_hevc_dsp_init_aarch64(HEVCDSPContext *c, const int bit_depth);133void ff_hevc_dsp_init_aarch64(HEVCDSPContext *c, const int bit_depth);
133void ff_hevc_dsp_init_arm(HEVCDSPContext *c, const int bit_depth);134void 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
301//301//
302////////////////////////////////////////////////////////////////////////////////302////////////////////////////////////////////////////////////////////////////////
303#define ff_hevc_pel_filters ff_hevc_qpel_filters303#define ff_hevc_pel_filters ff_hevc_qpel_filters
304#define DECL_HV_FILTER(f) \304#define DECL_HV_FILTER(f) \
305 const uint8_t *hf = ff_hevc_ ## f ## _filters[mx - 1]; \305 const uint8_t *hf = ff_hevc_ ## f ## _filters[mx]; \
306 const uint8_t *vf = ff_hevc_ ## f ## _filters[my - 1];306 const uint8_t *vf = ff_hevc_ ## f ## _filters[my];
307 307
308#define FW_PUT(p, f, t) \308#define FW_PUT(p, f, t) \
309static void FUNC(put_hevc_## f)(int16_t *dst, const uint8_t *src, ptrdiff_t srcstride, int height, \309static 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
421 pixel *dst = (pixel *)_dst;421 pixel *dst = (pixel *)_dst;
422 ptrdiff_t dststride = _dststride / sizeof(pixel);422 ptrdiff_t dststride = _dststride / sizeof(pixel);
423 423
424 const int8_t *filter = ff_hevc_qpel_filters[mx - 1];424 const int8_t *filter = ff_hevc_qpel_filters[mx];
425 425
426 int shift = 14 + 1 - BIT_DEPTH;426 int shift = 14 + 1 - BIT_DEPTH;
427#if BIT_DEPTH < 14427#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
449 pixel *dst = (pixel *)_dst;449 pixel *dst = (pixel *)_dst;
450 ptrdiff_t dststride = _dststride / sizeof(pixel);450 ptrdiff_t dststride = _dststride / sizeof(pixel);
451 451
452 const int8_t *filter = ff_hevc_qpel_filters[my - 1];452 const int8_t *filter = ff_hevc_qpel_filters[my];
453 453
454 int shift = 14 + 1 - BIT_DEPTH;454 int shift = 14 + 1 - BIT_DEPTH;
455#if BIT_DEPTH < 14455#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
487#endif487#endif
488 488
489 src -= QPEL_EXTRA_BEFORE * srcstride;489 src -= QPEL_EXTRA_BEFORE * srcstride;
490 filter = ff_hevc_qpel_filters[mx - 1];490 filter = ff_hevc_qpel_filters[mx];
491 for (y = 0; y < height + QPEL_EXTRA; y++) {491 for (y = 0; y < height + QPEL_EXTRA; y++) {
492 for (x = 0; x < width; x++)492 for (x = 0; x < width; x++)
493 tmp[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);493 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
496 }496 }
497 497
498 tmp = tmp_array + QPEL_EXTRA_BEFORE * MAX_PB_SIZE;498 tmp = tmp_array + QPEL_EXTRA_BEFORE * MAX_PB_SIZE;
499 filter = ff_hevc_qpel_filters[my - 1];499 filter = ff_hevc_qpel_filters[my];
500 500
501 for (y = 0; y < height; y++) {501 for (y = 0; y < height; y++) {
502 for (x = 0; x < width; x++)502 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
518 pixel *dst = (pixel *)_dst;518 pixel *dst = (pixel *)_dst;
519 ptrdiff_t dststride = _dststride / sizeof(pixel);519 ptrdiff_t dststride = _dststride / sizeof(pixel);
520 520
521 const int8_t *filter = ff_hevc_qpel_filters[mx - 1];521 const int8_t *filter = ff_hevc_qpel_filters[mx];
522 522
523 int shift = 14 + 1 - BIT_DEPTH;523 int shift = 14 + 1 - BIT_DEPTH;
524 int log2Wd = denom + shift - 1;524 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
546 pixel *dst = (pixel *)_dst;546 pixel *dst = (pixel *)_dst;
547 ptrdiff_t dststride = _dststride / sizeof(pixel);547 ptrdiff_t dststride = _dststride / sizeof(pixel);
548 548
549 const int8_t *filter = ff_hevc_qpel_filters[my - 1];549 const int8_t *filter = ff_hevc_qpel_filters[my];
550 550
551 int shift = 14 + 1 - BIT_DEPTH;551 int shift = 14 + 1 - BIT_DEPTH;
552 int log2Wd = denom + shift - 1;552 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
580 int log2Wd = denom + shift - 1;580 int log2Wd = denom + shift - 1;
581 581
582 src -= QPEL_EXTRA_BEFORE * srcstride;582 src -= QPEL_EXTRA_BEFORE * srcstride;
583 filter = ff_hevc_qpel_filters[mx - 1];583 filter = ff_hevc_qpel_filters[mx];
584 for (y = 0; y < height + QPEL_EXTRA; y++) {584 for (y = 0; y < height + QPEL_EXTRA; y++) {
585 for (x = 0; x < width; x++)585 for (x = 0; x < width; x++)
586 tmp[x] = QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8);586 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
589 }589 }
590 590
591 tmp = tmp_array + QPEL_EXTRA_BEFORE * MAX_PB_SIZE;591 tmp = tmp_array + QPEL_EXTRA_BEFORE * MAX_PB_SIZE;
592 filter = ff_hevc_qpel_filters[my - 1];592 filter = ff_hevc_qpel_filters[my];
593 593
594 ox0 = ox0 * (1 << (BIT_DEPTH - 8));594 ox0 = ox0 * (1 << (BIT_DEPTH - 8));
595 ox1 = ox1 * (1 << (BIT_DEPTH - 8));595 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
621 ptrdiff_t srcstride = _srcstride / sizeof(pixel);621 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
622 pixel *dst = (pixel *)_dst;622 pixel *dst = (pixel *)_dst;
623 ptrdiff_t dststride = _dststride / sizeof(pixel);623 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];
625 int shift = 14 + 1 - BIT_DEPTH;625 int shift = 14 + 1 - BIT_DEPTH;
626#if BIT_DEPTH < 14626#if BIT_DEPTH < 14
627 int offset = 1 << (shift - 1);627 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
646 int x, y;646 int x, y;
647 const pixel *src = (const pixel *)_src;647 const pixel *src = (const pixel *)_src;
648 ptrdiff_t srcstride = _srcstride / sizeof(pixel);648 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];
650 pixel *dst = (pixel *)_dst;650 pixel *dst = (pixel *)_dst;
651 ptrdiff_t dststride = _dststride / sizeof(pixel);651 ptrdiff_t dststride = _dststride / sizeof(pixel);
652 int shift = 14 + 1 - BIT_DEPTH;652 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
674 ptrdiff_t srcstride = _srcstride / sizeof(pixel);674 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
675 pixel *dst = (pixel *)_dst;675 pixel *dst = (pixel *)_dst;
676 ptrdiff_t dststride = _dststride / sizeof(pixel);676 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];
678 int16_t tmp_array[(MAX_PB_SIZE + EPEL_EXTRA) * MAX_PB_SIZE];678 int16_t tmp_array[(MAX_PB_SIZE + EPEL_EXTRA) * MAX_PB_SIZE];
679 int16_t *tmp = tmp_array;679 int16_t *tmp = tmp_array;
680 int shift = 14 + 1 - BIT_DEPTH;680 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
694 }694 }
695 695
696 tmp = tmp_array + EPEL_EXTRA_BEFORE * MAX_PB_SIZE;696 tmp = tmp_array + EPEL_EXTRA_BEFORE * MAX_PB_SIZE;
697 filter = ff_hevc_epel_filters[my - 1];697 filter = ff_hevc_epel_filters[my];
698 698
699 for (y = 0; y < height; y++) {699 for (y = 0; y < height; y++) {
700 for (x = 0; x < width; x++)700 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
715 ptrdiff_t srcstride = _srcstride / sizeof(pixel);715 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
716 pixel *dst = (pixel *)_dst;716 pixel *dst = (pixel *)_dst;
717 ptrdiff_t dststride = _dststride / sizeof(pixel);717 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];
719 int shift = 14 + 1 - BIT_DEPTH;719 int shift = 14 + 1 - BIT_DEPTH;
720 int log2Wd = denom + shift - 1;720 int log2Wd = denom + shift - 1;
721 721
@@ -739,7 +739,7 @@ static void FUNC(put_hevc_epel_bi_w_v)(uint8_t *_dst, ptrdiff_t _dststride, · 17 unmodified lines
739 int x, y;739 int x, y;
740 const pixel *src = (const pixel *)_src;740 const pixel *src = (const pixel *)_src;
741 ptrdiff_t srcstride = _srcstride / sizeof(pixel);741 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];
743 pixel *dst = (pixel *)_dst;743 pixel *dst = (pixel *)_dst;
744 ptrdiff_t dststride = _dststride / sizeof(pixel);744 ptrdiff_t dststride = _dststride / sizeof(pixel);
745 int shift = 14 + 1 - BIT_DEPTH;745 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
767 ptrdiff_t srcstride = _srcstride / sizeof(pixel);767 ptrdiff_t srcstride = _srcstride / sizeof(pixel);
768 pixel *dst = (pixel *)_dst;768 pixel *dst = (pixel *)_dst;
769 ptrdiff_t dststride = _dststride / sizeof(pixel);769 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];
771 int16_t tmp_array[(MAX_PB_SIZE + EPEL_EXTRA) * MAX_PB_SIZE];771 int16_t tmp_array[(MAX_PB_SIZE + EPEL_EXTRA) * MAX_PB_SIZE];
772 int16_t *tmp = tmp_array;772 int16_t *tmp = tmp_array;
773 int shift = 14 + 1 - BIT_DEPTH;773 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
783 }783 }
784 784
785 tmp = tmp_array + EPEL_EXTRA_BEFORE * MAX_PB_SIZE;785 tmp = tmp_array + EPEL_EXTRA_BEFORE * MAX_PB_SIZE;
786 filter = ff_hevc_epel_filters[my - 1];786 filter = ff_hevc_epel_filters[my];
787 787
788 ox0 = ox0 * (1 << (BIT_DEPTH - 8));788 ox0 = ox0 * (1 << (BIT_DEPTH - 8));
789 ox1 = ox1 * (1 << (BIT_DEPTH - 8));789 ox1 = ox1 * (1 << (BIT_DEPTH - 8));
libavcodec/loongarch/hevc_mc.S+48−176
@@ -498,7 +498,6 @@ endfunc · 497 unmodified lines
498function ff_hevc_put_hevc_qpel_uni_w_v4_8_lsx498function ff_hevc_put_hevc_qpel_uni_w_v4_8_lsx
499 LOAD_VAR 128499 LOAD_VAR 128
500 ld.d t0, sp, 8 //my500 ld.d t0, sp, 8 //my
501 addi.d t0, t0, -1
502 slli.w t0, t0, 4501 slli.w t0, t0, 4
503 la.local t1, ff_hevc_qpel_filters502 la.local t1, ff_hevc_qpel_filters
504 vldx vr5, t1, t0 //filter503 vldx vr5, t1, t0 //filter
@@ -570,7 +569,6 @@ endfunc · 65 unmodified lines
570function ff_hevc_put_hevc_qpel_uni_w_v6_8_lsx569function ff_hevc_put_hevc_qpel_uni_w_v6_8_lsx
571 LOAD_VAR 128570 LOAD_VAR 128
572 ld.d t0, sp, 8 //my571 ld.d t0, sp, 8 //my
573 addi.d t0, t0, -1
574 slli.w t0, t0, 4572 slli.w t0, t0, 4
575 la.local t1, ff_hevc_qpel_filters573 la.local t1, ff_hevc_qpel_filters
576 vldx vr5, t1, t0 //filter574 vldx vr5, t1, t0 //filter
@@ -699,7 +697,6 @@ endfunc · 122 unmodified lines
699function ff_hevc_put_hevc_qpel_uni_w_v8_8_lsx697function ff_hevc_put_hevc_qpel_uni_w_v8_8_lsx
700 LOAD_VAR 128698 LOAD_VAR 128
701 ld.d t0, sp, 8 //my699 ld.d t0, sp, 8 //my
702 addi.d t0, t0, -1
703 slli.w t0, t0, 4700 slli.w t0, t0, 4
704 la.local t1, ff_hevc_qpel_filters701 la.local t1, ff_hevc_qpel_filters
705 vldx vr5, t1, t0 //filter702 vldx vr5, t1, t0 //filter
@@ -778,7 +775,6 @@ endfunc · 72 unmodified lines
778function ff_hevc_put_hevc_qpel_uni_w_v8_8_lasx775function ff_hevc_put_hevc_qpel_uni_w_v8_8_lasx
779 LOAD_VAR 256776 LOAD_VAR 256
780 ld.d t0, sp, 8 //my777 ld.d t0, sp, 8 //my
781 addi.d t0, t0, -1
782 slli.w t0, t0, 4778 slli.w t0, t0, 4
783 la.local t1, ff_hevc_qpel_filters779 la.local t1, ff_hevc_qpel_filters
784 vldx vr5, t1, t0 //filter780 vldx vr5, t1, t0 //filter
@@ -845,7 +841,6 @@ endfunc · 60 unmodified lines
845function ff_hevc_put_hevc_qpel_uni_w_v16_8_lsx841function ff_hevc_put_hevc_qpel_uni_w_v16_8_lsx
846 LOAD_VAR 128842 LOAD_VAR 128
847 ld.d t0, sp, 8 //my843 ld.d t0, sp, 8 //my
848 addi.d t0, t0, -1
849 slli.w t0, t0, 4844 slli.w t0, t0, 4
850 la.local t1, ff_hevc_qpel_filters845 la.local t1, ff_hevc_qpel_filters
851 vldx vr5, t1, t0 //filter846 vldx vr5, t1, t0 //filter
@@ -940,7 +935,6 @@ endfunc · 88 unmodified lines
940function ff_hevc_put_hevc_qpel_uni_w_v16_8_lasx935function ff_hevc_put_hevc_qpel_uni_w_v16_8_lasx
941 LOAD_VAR 256936 LOAD_VAR 256
942 ld.d t0, sp, 8 //my937 ld.d t0, sp, 8 //my
943 addi.d t0, t0, -1
944 slli.w t0, t0, 4938 slli.w t0, t0, 4
945 la.local t1, ff_hevc_qpel_filters939 la.local t1, ff_hevc_qpel_filters
946 vldx vr5, t1, t0 //filter940 vldx vr5, t1, t0 //filter
@@ -955,7 +949,6 @@ endfunc · 8 unmodified lines
955function ff_hevc_put_hevc_qpel_uni_w_v12_8_lsx949function ff_hevc_put_hevc_qpel_uni_w_v12_8_lsx
956 LOAD_VAR 128950 LOAD_VAR 128
957 ld.d t0, sp, 8 //my951 ld.d t0, sp, 8 //my
958 addi.d t0, t0, -1
959 slli.w t0, t0, 4952 slli.w t0, t0, 4
960 la.local t1, ff_hevc_qpel_filters953 la.local t1, ff_hevc_qpel_filters
961 vldx vr5, t1, t0 //filter954 vldx vr5, t1, t0 //filter
@@ -969,7 +962,6 @@ endfunc · 7 unmodified lines
969function ff_hevc_put_hevc_qpel_uni_w_v12_8_lasx962function ff_hevc_put_hevc_qpel_uni_w_v12_8_lasx
970 LOAD_VAR 256963 LOAD_VAR 256
971 ld.d t0, sp, 8 //my964 ld.d t0, sp, 8 //my
972 addi.d t0, t0, -1
973 slli.w t0, t0, 4965 slli.w t0, t0, 4
974 la.local t1, ff_hevc_qpel_filters966 la.local t1, ff_hevc_qpel_filters
975 vldx vr5, t1, t0 //filter967 vldx vr5, t1, t0 //filter
@@ -984,7 +976,6 @@ endfunc · 8 unmodified lines
984function ff_hevc_put_hevc_qpel_uni_w_v24_8_lsx976function ff_hevc_put_hevc_qpel_uni_w_v24_8_lsx
985 LOAD_VAR 128977 LOAD_VAR 128
986 ld.d t0, sp, 8 //my978 ld.d t0, sp, 8 //my
987 addi.d t0, t0, -1
988 slli.w t0, t0, 4979 slli.w t0, t0, 4
989 la.local t1, ff_hevc_qpel_filters980 la.local t1, ff_hevc_qpel_filters
990 vldx vr5, t1, t0 //filter981 vldx vr5, t1, t0 //filter
@@ -1005,7 +996,6 @@ endfunc · 14 unmodified lines
1005function ff_hevc_put_hevc_qpel_uni_w_v24_8_lasx996function ff_hevc_put_hevc_qpel_uni_w_v24_8_lasx
1006 LOAD_VAR 256997 LOAD_VAR 256
1007 ld.d t0, sp, 8 //my998 ld.d t0, sp, 8 //my
1008 addi.d t0, t0, -1
1009 slli.w t0, t0, 4999 slli.w t0, t0, 4
1010 la.local t1, ff_hevc_qpel_filters1000 la.local t1, ff_hevc_qpel_filters
1011 vldx vr5, t1, t0 //filter1001 vldx vr5, t1, t0 //filter
@@ -1027,7 +1017,6 @@ endfunc · 15 unmodified lines
1027function ff_hevc_put_hevc_qpel_uni_w_v32_8_lsx1017function ff_hevc_put_hevc_qpel_uni_w_v32_8_lsx
1028 LOAD_VAR 1281018 LOAD_VAR 128
1029 ld.d t0, sp, 8 //my1019 ld.d t0, sp, 8 //my
1030 addi.d t0, t0, -1
1031 slli.w t0, t0, 41020 slli.w t0, t0, 4
1032 la.local t1, ff_hevc_qpel_filters1021 la.local t1, ff_hevc_qpel_filters
1033 vldx vr5, t1, t0 //filter1022 vldx vr5, t1, t0 //filter
@@ -1051,7 +1040,6 @@ endfunc · 17 unmodified lines
1051function ff_hevc_put_hevc_qpel_uni_w_v32_8_lasx1040function ff_hevc_put_hevc_qpel_uni_w_v32_8_lasx
1052 LOAD_VAR 2561041 LOAD_VAR 256
1053 ld.d t0, sp, 8 //my1042 ld.d t0, sp, 8 //my
1054 addi.d t0, t0, -1
1055 slli.w t0, t0, 41043 slli.w t0, t0, 4
1056 la.local t1, ff_hevc_qpel_filters1044 la.local t1, ff_hevc_qpel_filters
1057 vldx vr5, t1, t0 //filter1045 vldx vr5, t1, t0 //filter
@@ -1076,7 +1064,6 @@ endfunc · 18 unmodified lines
1076function ff_hevc_put_hevc_qpel_uni_w_v48_8_lsx1064function ff_hevc_put_hevc_qpel_uni_w_v48_8_lsx
1077 LOAD_VAR 1281065 LOAD_VAR 128
1078 ld.d t0, sp, 8 //my1066 ld.d t0, sp, 8 //my
1079 addi.d t0, t0, -1
1080 slli.w t0, t0, 41067 slli.w t0, t0, 4
1081 la.local t1, ff_hevc_qpel_filters1068 la.local t1, ff_hevc_qpel_filters
1082 vldx vr5, t1, t0 //filter1069 vldx vr5, t1, t0 //filter
@@ -1102,7 +1089,6 @@ endfunc · 19 unmodified lines
1102function ff_hevc_put_hevc_qpel_uni_w_v48_8_lasx1089function ff_hevc_put_hevc_qpel_uni_w_v48_8_lasx
1103 LOAD_VAR 2561090 LOAD_VAR 256
1104 ld.d t0, sp, 8 //my1091 ld.d t0, sp, 8 //my
1105 addi.d t0, t0, -1
1106 slli.w t0, t0, 41092 slli.w t0, t0, 4
1107 la.local t1, ff_hevc_qpel_filters1093 la.local t1, ff_hevc_qpel_filters
1108 vldx vr5, t1, t0 //filter1094 vldx vr5, t1, t0 //filter
@@ -1129,7 +1115,6 @@ endfunc · 20 unmodified lines
1129function ff_hevc_put_hevc_qpel_uni_w_v64_8_lsx1115function ff_hevc_put_hevc_qpel_uni_w_v64_8_lsx
1130 LOAD_VAR 1281116 LOAD_VAR 128
1131 ld.d t0, sp, 8 //my1117 ld.d t0, sp, 8 //my
1132 addi.d t0, t0, -1
1133 slli.w t0, t0, 41118 slli.w t0, t0, 4
1134 la.local t1, ff_hevc_qpel_filters1119 la.local t1, ff_hevc_qpel_filters
1135 vldx vr5, t1, t0 //filter1120 vldx vr5, t1, t0 //filter
@@ -1155,7 +1140,6 @@ endfunc · 19 unmodified lines
1155function ff_hevc_put_hevc_qpel_uni_w_v64_8_lasx1140function ff_hevc_put_hevc_qpel_uni_w_v64_8_lasx
1156 LOAD_VAR 2561141 LOAD_VAR 256
1157 ld.d t0, sp, 8 //my1142 ld.d t0, sp, 8 //my
1158 addi.d t0, t0, -1
1159 slli.w t0, t0, 41143 slli.w t0, t0, 4
1160 la.local t1, ff_hevc_qpel_filters1144 la.local t1, ff_hevc_qpel_filters
1161 vldx vr5, t1, t0 //filter1145 vldx vr5, t1, t0 //filter
@@ -1275,7 +1259,6 @@ endfunc · 113 unmodified lines
1275function ff_hevc_put_hevc_qpel_uni_w_h4_8_lsx1259function ff_hevc_put_hevc_qpel_uni_w_h4_8_lsx
1276 LOAD_VAR 1281260 LOAD_VAR 128
1277 ld.d t0, sp, 0 //mx1261 ld.d t0, sp, 0 //mx
1278 addi.d t0, t0, -1
1279 slli.w t0, t0, 41262 slli.w t0, t0, 4
1280 la.local t1, ff_hevc_qpel_filters1263 la.local t1, ff_hevc_qpel_filters
1281 vldx vr5, t1, t0 //filter1264 vldx vr5, t1, t0 //filter
@@ -1325,7 +1308,6 @@ endfunc · 43 unmodified lines
1325function ff_hevc_put_hevc_qpel_uni_w_h4_8_lasx1308function ff_hevc_put_hevc_qpel_uni_w_h4_8_lasx
1326 LOAD_VAR 2561309 LOAD_VAR 256
1327 ld.d t0, sp, 0 //mx1310 ld.d t0, sp, 0 //mx
1328 addi.d t0, t0, -1
1329 slli.w t0, t0, 41311 slli.w t0, t0, 4
1330 la.local t1, ff_hevc_qpel_filters1312 la.local t1, ff_hevc_qpel_filters
1331 vldx vr5, t1, t0 //filter1313 vldx vr5, t1, t0 //filter
@@ -1364,7 +1346,6 @@ endfunc · 32 unmodified lines
1364function ff_hevc_put_hevc_qpel_uni_w_h6_8_lsx1346function ff_hevc_put_hevc_qpel_uni_w_h6_8_lsx
1365 LOAD_VAR 1281347 LOAD_VAR 128
1366 ld.d t0, sp, 0 //mx1348 ld.d t0, sp, 0 //mx
1367 addi.d t0, t0, -1
1368 slli.w t0, t0, 41349 slli.w t0, t0, 4
1369 la.local t1, ff_hevc_qpel_filters1350 la.local t1, ff_hevc_qpel_filters
1370 vldx vr5, t1, t0 //filter1351 vldx vr5, t1, t0 //filter
@@ -1385,7 +1366,6 @@ endfunc · 14 unmodified lines
1385function ff_hevc_put_hevc_qpel_uni_w_h6_8_lasx1366function ff_hevc_put_hevc_qpel_uni_w_h6_8_lasx
1386 LOAD_VAR 2561367 LOAD_VAR 256
1387 ld.d t0, sp, 0 //mx1368 ld.d t0, sp, 0 //mx
1388 addi.d t0, t0, -1
1389 slli.w t0, t0, 41369 slli.w t0, t0, 4
1390 la.local t1, ff_hevc_qpel_filters1370 la.local t1, ff_hevc_qpel_filters
1391 vldx vr5, t1, t0 //filter1371 vldx vr5, t1, t0 //filter
@@ -1408,7 +1388,6 @@ endfunc · 16 unmodified lines
1408function ff_hevc_put_hevc_qpel_uni_w_h8_8_lsx1388function ff_hevc_put_hevc_qpel_uni_w_h8_8_lsx
1409 LOAD_VAR 1281389 LOAD_VAR 128
1410 ld.d t0, sp, 0 //mx1390 ld.d t0, sp, 0 //mx
1411 addi.d t0, t0, -1
1412 slli.w t0, t0, 41391 slli.w t0, t0, 4
1413 la.local t1, ff_hevc_qpel_filters1392 la.local t1, ff_hevc_qpel_filters
1414 vldx vr5, t1, t0 //filter1393 vldx vr5, t1, t0 //filter
@@ -1428,7 +1407,6 @@ endfunc · 13 unmodified lines
1428function ff_hevc_put_hevc_qpel_uni_w_h8_8_lasx1407function ff_hevc_put_hevc_qpel_uni_w_h8_8_lasx
1429 LOAD_VAR 2561408 LOAD_VAR 256
1430 ld.d t0, sp, 0 //mx1409 ld.d t0, sp, 0 //mx
1431 addi.d t0, t0, -1
1432 slli.w t0, t0, 41410 slli.w t0, t0, 4
1433 la.local t1, ff_hevc_qpel_filters1411 la.local t1, ff_hevc_qpel_filters
1434 vldx vr5, t1, t0 //filter1412 vldx vr5, t1, t0 //filter
@@ -1450,7 +1428,6 @@ endfunc · 15 unmodified lines
1450function ff_hevc_put_hevc_qpel_uni_w_h12_8_lsx1428function ff_hevc_put_hevc_qpel_uni_w_h12_8_lsx
1451 LOAD_VAR 1281429 LOAD_VAR 128
1452 ld.d t0, sp, 0 //mx1430 ld.d t0, sp, 0 //mx
1453 addi.d t0, t0, -1
1454 slli.w t0, t0, 41431 slli.w t0, t0, 4
1455 la.local t1, ff_hevc_qpel_filters1432 la.local t1, ff_hevc_qpel_filters
1456 vldx vr5, t1, t0 //filter1433 vldx vr5, t1, t0 //filter
@@ -1475,7 +1452,6 @@ endfunc · 18 unmodified lines
1475function ff_hevc_put_hevc_qpel_uni_w_h12_8_lasx1452function ff_hevc_put_hevc_qpel_uni_w_h12_8_lasx
1476 LOAD_VAR 2561453 LOAD_VAR 256
1477 ld.d t0, sp, 0 //mx1454 ld.d t0, sp, 0 //mx
1478 addi.d t0, t0, -1
1479 slli.w t0, t0, 41455 slli.w t0, t0, 4
1480 la.local t1, ff_hevc_qpel_filters1456 la.local t1, ff_hevc_qpel_filters
1481 vldx vr5, t1, t0 //filter1457 vldx vr5, t1, t0 //filter
@@ -1495,7 +1471,6 @@ endfunc · 13 unmodified lines
1495function ff_hevc_put_hevc_qpel_uni_w_h16_8_lsx1471function ff_hevc_put_hevc_qpel_uni_w_h16_8_lsx
1496 LOAD_VAR 1281472 LOAD_VAR 128
1497 ld.d t0, sp, 0 //mx1473 ld.d t0, sp, 0 //mx
1498 addi.d t0, t0, -1
1499 slli.w t0, t0, 41474 slli.w t0, t0, 4
1500 la.local t1, ff_hevc_qpel_filters1475 la.local t1, ff_hevc_qpel_filters
1501 vldx vr5, t1, t0 //filter1476 vldx vr5, t1, t0 //filter
@@ -1518,7 +1493,6 @@ endfunc · 16 unmodified lines
1518function ff_hevc_put_hevc_qpel_uni_w_h16_8_lasx1493function ff_hevc_put_hevc_qpel_uni_w_h16_8_lasx
1519 LOAD_VAR 2561494 LOAD_VAR 256
1520 ld.d t0, sp, 0 //mx1495 ld.d t0, sp, 0 //mx
1521 addi.d t0, t0, -1
1522 slli.w t0, t0, 41496 slli.w t0, t0, 4
1523 la.local t1, ff_hevc_qpel_filters1497 la.local t1, ff_hevc_qpel_filters
1524 vldx vr5, t1, t0 //filter1498 vldx vr5, t1, t0 //filter
@@ -1537,7 +1511,6 @@ endfunc · 12 unmodified lines
1537function ff_hevc_put_hevc_qpel_uni_w_h24_8_lsx1511function ff_hevc_put_hevc_qpel_uni_w_h24_8_lsx
1538 LOAD_VAR 1281512 LOAD_VAR 128
1539 ld.d t0, sp, 0 //mx1513 ld.d t0, sp, 0 //mx
1540 addi.d t0, t0, -1
1541 slli.w t0, t0, 41514 slli.w t0, t0, 4
1542 la.local t1, ff_hevc_qpel_filters1515 la.local t1, ff_hevc_qpel_filters
1543 vldx vr5, t1, t0 //filter1516 vldx vr5, t1, t0 //filter
@@ -1565,7 +1538,6 @@ endfunc · 21 unmodified lines
1565function ff_hevc_put_hevc_qpel_uni_w_h24_8_lasx1538function ff_hevc_put_hevc_qpel_uni_w_h24_8_lasx
1566 LOAD_VAR 2561539 LOAD_VAR 256
1567 ld.d t0, sp, 0 //mx1540 ld.d t0, sp, 0 //mx
1568 addi.d t0, t0, -1
1569 slli.w t0, t0, 41541 slli.w t0, t0, 4
1570 la.local t1, ff_hevc_qpel_filters1542 la.local t1, ff_hevc_qpel_filters
1571 vldx vr5, t1, t0 //filter1543 vldx vr5, t1, t0 //filter
@@ -1590,7 +1562,6 @@ endfunc · 18 unmodified lines
1590function ff_hevc_put_hevc_qpel_uni_w_h32_8_lsx1562function ff_hevc_put_hevc_qpel_uni_w_h32_8_lsx
1591 LOAD_VAR 1281563 LOAD_VAR 128
1592 ld.d t0, sp, 0 //mx1564 ld.d t0, sp, 0 //mx
1593 addi.d t0, t0, -1
1594 slli.w t0, t0, 41565 slli.w t0, t0, 4
1595 la.local t1, ff_hevc_qpel_filters1566 la.local t1, ff_hevc_qpel_filters
1596 vldx vr5, t1, t0 //filter1567 vldx vr5, t1, t0 //filter
@@ -1622,7 +1593,6 @@ endfunc · 25 unmodified lines
1622function ff_hevc_put_hevc_qpel_uni_w_h32_8_lasx1593function ff_hevc_put_hevc_qpel_uni_w_h32_8_lasx
1623 LOAD_VAR 2561594 LOAD_VAR 256
1624 ld.d t0, sp, 0 //mx1595 ld.d t0, sp, 0 //mx
1625 addi.d t0, t0, -1
1626 slli.w t0, t0, 41596 slli.w t0, t0, 4
1627 la.local t1, ff_hevc_qpel_filters1597 la.local t1, ff_hevc_qpel_filters
1628 vldx vr5, t1, t0 //filter1598 vldx vr5, t1, t0 //filter
@@ -1644,7 +1614,6 @@ endfunc · 15 unmodified lines
1644function ff_hevc_put_hevc_qpel_uni_w_h48_8_lsx1614function ff_hevc_put_hevc_qpel_uni_w_h48_8_lsx
1645 LOAD_VAR 1281615 LOAD_VAR 128
1646 ld.d t0, sp, 0 //mx1616 ld.d t0, sp, 0 //mx
1647 addi.d t0, t0, -1
1648 slli.w t0, t0, 41617 slli.w t0, t0, 4
1649 la.local t1, ff_hevc_qpel_filters1618 la.local t1, ff_hevc_qpel_filters
1650 vldx vr5, t1, t0 //filter1619 vldx vr5, t1, t0 //filter
@@ -1684,7 +1653,6 @@ endfunc · 33 unmodified lines
1684function ff_hevc_put_hevc_qpel_uni_w_h48_8_lasx1653function ff_hevc_put_hevc_qpel_uni_w_h48_8_lasx
1685 LOAD_VAR 2561654 LOAD_VAR 256
1686 ld.d t0, sp, 0 //mx1655 ld.d t0, sp, 0 //mx
1687 addi.d t0, t0, -1
1688 slli.w t0, t0, 41656 slli.w t0, t0, 4
1689 la.local t1, ff_hevc_qpel_filters1657 la.local t1, ff_hevc_qpel_filters
1690 vldx vr5, t1, t0 //filter1658 vldx vr5, t1, t0 //filter
@@ -1709,7 +1677,6 @@ endfunc · 18 unmodified lines
1709function ff_hevc_put_hevc_qpel_uni_w_h64_8_lsx1677function ff_hevc_put_hevc_qpel_uni_w_h64_8_lsx
1710 LOAD_VAR 1281678 LOAD_VAR 128
1711 ld.d t0, sp, 0 //mx1679 ld.d t0, sp, 0 //mx
1712 addi.d t0, t0, -1
1713 slli.w t0, t0, 41680 slli.w t0, t0, 4
1714 la.local t1, ff_hevc_qpel_filters1681 la.local t1, ff_hevc_qpel_filters
1715 vldx vr5, t1, t0 //filter1682 vldx vr5, t1, t0 //filter
@@ -1757,7 +1724,6 @@ endfunc · 41 unmodified lines
1757function ff_hevc_put_hevc_qpel_uni_w_h64_8_lasx1724function ff_hevc_put_hevc_qpel_uni_w_h64_8_lasx
1758 LOAD_VAR 2561725 LOAD_VAR 256
1759 ld.d t0, sp, 0 //mx1726 ld.d t0, sp, 0 //mx
1760 addi.d t0, t0, -1
1761 slli.w t0, t0, 41727 slli.w t0, t0, 4
1762 la.local t1, ff_hevc_qpel_filters1728 la.local t1, ff_hevc_qpel_filters
1763 vldx vr5, t1, t0 //filter1729 vldx vr5, t1, t0 //filter
@@ -1841,15 +1807,13 @@ endconst · 77 unmodified lines
1841function ff_hevc_put_hevc_epel_uni_w_hv4_8_lsx1807function ff_hevc_put_hevc_epel_uni_w_hv4_8_lsx
1842 LOAD_VAR 1281808 LOAD_VAR 128
1843 ld.d t0, sp, 0 // mx1809 ld.d t0, sp, 0 // mx
1844 addi.d t0, t0, -1
1845 slli.w t0, t0, 21810 slli.w t0, t0, 2
1846 la.local t1, ff_hevc_epel_filters1811 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];
1848 vreplvei.w vr5, vr5, 01813 vreplvei.w vr5, vr5, 0
1849 ld.d t0, sp, 8 // my1814 ld.d t0, sp, 8 // my
1850 addi.d t0, t0, -1
1851 slli.w t0, t0, 21815 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];
1853 vsllwil.h.b vr6, vr6, 01817 vsllwil.h.b vr6, vr6, 0
1854 vsllwil.w.h vr6, vr6, 01818 vsllwil.w.h vr6, vr6, 0
1855 vreplvei.w vr16, vr6, 01819 vreplvei.w vr16, vr6, 0
@@ -2068,15 +2032,13 @@ endfunc · 212 unmodified lines
2068function ff_hevc_put_hevc_epel_uni_w_hv6_8_lsx2032function ff_hevc_put_hevc_epel_uni_w_hv6_8_lsx
2069 LOAD_VAR 1282033 LOAD_VAR 128
2070 ld.d t0, sp, 0 // mx2034 ld.d t0, sp, 0 // mx
2071 addi.d t0, t0, -1
2072 slli.w t0, t0, 22035 slli.w t0, t0, 2
2073 la.local t1, ff_hevc_epel_filters2036 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];
2075 vreplvei.w vr5, vr5, 02038 vreplvei.w vr5, vr5, 0
2076 ld.d t0, sp, 8 // my2039 ld.d t0, sp, 8 // my
2077 addi.d t0, t0, -1
2078 slli.w t0, t0, 22040 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];
2080 vsllwil.h.b vr6, vr6, 02042 vsllwil.h.b vr6, vr6, 0
2081 vsllwil.w.h vr6, vr6, 02043 vsllwil.w.h vr6, vr6, 0
2082 vreplvei.w vr16, vr6, 02044 vreplvei.w vr16, vr6, 0
@@ -2094,15 +2056,13 @@ endfunc · 11 unmodified lines
2094function ff_hevc_put_hevc_epel_uni_w_hv6_8_lasx2056function ff_hevc_put_hevc_epel_uni_w_hv6_8_lasx
2095 LOAD_VAR 2562057 LOAD_VAR 256
2096 ld.d t0, sp, 0 // mx2058 ld.d t0, sp, 0 // mx
2097 addi.d t0, t0, -1
2098 slli.w t0, t0, 22059 slli.w t0, t0, 2
2099 la.local t1, ff_hevc_epel_filters2060 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];
2101 xvreplve0.w xr5, xr52062 xvreplve0.w xr5, xr5
2102 ld.d t0, sp, 8 // my2063 ld.d t0, sp, 8 // my
2103 addi.d t0, t0, -1
2104 slli.w t0, t0, 22064 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];
2106 vsllwil.h.b vr6, vr6, 02066 vsllwil.h.b vr6, vr6, 0
2107 vsllwil.w.h vr6, vr6, 02067 vsllwil.w.h vr6, vr6, 0
2108 xvreplve0.q xr6, xr62068 xvreplve0.q xr6, xr6
@@ -2120,15 +2080,13 @@ endfunc · 11 unmodified lines
2120function ff_hevc_put_hevc_epel_uni_w_hv8_8_lsx2080function ff_hevc_put_hevc_epel_uni_w_hv8_8_lsx
2121 LOAD_VAR 1282081 LOAD_VAR 128
2122 ld.d t0, sp, 0 // mx2082 ld.d t0, sp, 0 // mx
2123 addi.d t0, t0, -1
2124 slli.w t0, t0, 22083 slli.w t0, t0, 2
2125 la.local t1, ff_hevc_epel_filters2084 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];
2127 vreplvei.w vr5, vr5, 02086 vreplvei.w vr5, vr5, 0
2128 ld.d t0, sp, 8 // my2087 ld.d t0, sp, 8 // my
2129 addi.d t0, t0, -1
2130 slli.w t0, t0, 22088 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];
2132 vsllwil.h.b vr6, vr6, 02090 vsllwil.h.b vr6, vr6, 0
2133 vsllwil.w.h vr6, vr6, 02091 vsllwil.w.h vr6, vr6, 0
2134 vreplvei.w vr16, vr6, 02092 vreplvei.w vr16, vr6, 0
@@ -2146,15 +2104,13 @@ endfunc · 11 unmodified lines
2146function ff_hevc_put_hevc_epel_uni_w_hv8_8_lasx2104function ff_hevc_put_hevc_epel_uni_w_hv8_8_lasx
2147 LOAD_VAR 2562105 LOAD_VAR 256
2148 ld.d t0, sp, 0 // mx2106 ld.d t0, sp, 0 // mx
2149 addi.d t0, t0, -1
2150 slli.w t0, t0, 22107 slli.w t0, t0, 2
2151 la.local t1, ff_hevc_epel_filters2108 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];
2153 xvreplve0.w xr5, xr52110 xvreplve0.w xr5, xr5
2154 ld.d t0, sp, 8 // my2111 ld.d t0, sp, 8 // my
2155 addi.d t0, t0, -1
2156 slli.w t0, t0, 22112 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];
2158 vsllwil.h.b vr6, vr6, 02114 vsllwil.h.b vr6, vr6, 0
2159 vsllwil.w.h vr6, vr6, 02115 vsllwil.w.h vr6, vr6, 0
2160 xvreplve0.q xr6, xr62116 xvreplve0.q xr6, xr6
@@ -2172,15 +2128,13 @@ endfunc · 11 unmodified lines
2172function ff_hevc_put_hevc_epel_uni_w_hv12_8_lsx2128function ff_hevc_put_hevc_epel_uni_w_hv12_8_lsx
2173 LOAD_VAR 1282129 LOAD_VAR 128
2174 ld.d t0, sp, 0 // mx2130 ld.d t0, sp, 0 // mx
2175 addi.d t0, t0, -1
2176 slli.w t0, t0, 22131 slli.w t0, t0, 2
2177 la.local t1, ff_hevc_epel_filters2132 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];
2179 vreplvei.w vr5, vr5, 02134 vreplvei.w vr5, vr5, 0
2180 ld.d t0, sp, 8 // my2135 ld.d t0, sp, 8 // my
2181 addi.d t0, t0, -1
2182 slli.w t0, t0, 22136 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];
2184 vsllwil.h.b vr6, vr6, 02138 vsllwil.h.b vr6, vr6, 0
2185 vsllwil.w.h vr6, vr6, 02139 vsllwil.w.h vr6, vr6, 0
2186 vreplvei.w vr16, vr6, 02140 vreplvei.w vr16, vr6, 0
@@ -2205,15 +2159,13 @@ endfunc · 18 unmodified lines
2205function ff_hevc_put_hevc_epel_uni_w_hv12_8_lasx2159function ff_hevc_put_hevc_epel_uni_w_hv12_8_lasx
2206 LOAD_VAR 2562160 LOAD_VAR 256
2207 ld.d t0, sp, 0 // mx2161 ld.d t0, sp, 0 // mx
2208 addi.d t0, t0, -1
2209 slli.w t0, t0, 22162 slli.w t0, t0, 2
2210 la.local t1, ff_hevc_epel_filters2163 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];
2212 xvreplve0.w xr5, xr52165 xvreplve0.w xr5, xr5
2213 ld.d t0, sp, 8 // my2166 ld.d t0, sp, 8 // my
2214 addi.d t0, t0, -1
2215 slli.w t0, t0, 22167 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];
2217 vsllwil.h.b vr6, vr6, 02169 vsllwil.h.b vr6, vr6, 0
2218 vsllwil.w.h vr6, vr6, 02170 vsllwil.w.h vr6, vr6, 0
2219 xvreplve0.q xr6, xr62171 xvreplve0.q xr6, xr6
@@ -2231,15 +2183,13 @@ endfunc · 11 unmodified lines
2231function ff_hevc_put_hevc_epel_uni_w_hv16_8_lsx2183function ff_hevc_put_hevc_epel_uni_w_hv16_8_lsx
2232 LOAD_VAR 1282184 LOAD_VAR 128
2233 ld.d t0, sp, 0 // mx2185 ld.d t0, sp, 0 // mx
2234 addi.d t0, t0, -1
2235 slli.w t0, t0, 22186 slli.w t0, t0, 2
2236 la.local t1, ff_hevc_epel_filters2187 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];
2238 vreplvei.w vr5, vr5, 02189 vreplvei.w vr5, vr5, 0
2239 ld.d t0, sp, 8 // my2190 ld.d t0, sp, 8 // my
2240 addi.d t0, t0, -1
2241 slli.w t0, t0, 22191 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];
2243 vsllwil.h.b vr6, vr6, 02193 vsllwil.h.b vr6, vr6, 0
2244 vsllwil.w.h vr6, vr6, 02194 vsllwil.w.h vr6, vr6, 0
2245 vreplvei.w vr16, vr6, 02195 vreplvei.w vr16, vr6, 0
@@ -2267,15 +2217,13 @@ endfunc · 21 unmodified lines
2267function ff_hevc_put_hevc_epel_uni_w_hv16_8_lasx2217function ff_hevc_put_hevc_epel_uni_w_hv16_8_lasx
2268 LOAD_VAR 2562218 LOAD_VAR 256
2269 ld.d t0, sp, 0 // mx2219 ld.d t0, sp, 0 // mx
2270 addi.d t0, t0, -1
2271 slli.w t0, t0, 22220 slli.w t0, t0, 2
2272 la.local t1, ff_hevc_epel_filters2221 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];
2274 xvreplve0.w xr5, xr52223 xvreplve0.w xr5, xr5
2275 ld.d t0, sp, 8 // my2224 ld.d t0, sp, 8 // my
2276 addi.d t0, t0, -1
2277 slli.w t0, t0, 22225 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];
2279 vsllwil.h.b vr6, vr6, 02227 vsllwil.h.b vr6, vr6, 0
2280 vsllwil.w.h vr6, vr6, 02228 vsllwil.w.h vr6, vr6, 0
2281 xvreplve0.q xr6, xr62229 xvreplve0.q xr6, xr6
@@ -2293,15 +2241,13 @@ endfunc · 11 unmodified lines
2293function ff_hevc_put_hevc_epel_uni_w_hv24_8_lsx2241function ff_hevc_put_hevc_epel_uni_w_hv24_8_lsx
2294 LOAD_VAR 1282242 LOAD_VAR 128
2295 ld.d t0, sp, 0 // mx2243 ld.d t0, sp, 0 // mx
2296 addi.d t0, t0, -1
2297 slli.w t0, t0, 22244 slli.w t0, t0, 2
2298 la.local t1, ff_hevc_epel_filters2245 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];
2300 vreplvei.w vr5, vr5, 02247 vreplvei.w vr5, vr5, 0
2301 ld.d t0, sp, 8 // my2248 ld.d t0, sp, 8 // my
2302 addi.d t0, t0, -1
2303 slli.w t0, t0, 22249 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];
2305 vsllwil.h.b vr6, vr6, 02251 vsllwil.h.b vr6, vr6, 0
2306 vsllwil.w.h vr6, vr6, 02252 vsllwil.w.h vr6, vr6, 0
2307 vreplvei.w vr16, vr6, 02253 vreplvei.w vr16, vr6, 0
@@ -2331,15 +2277,13 @@ endfunc · 23 unmodified lines
2331function ff_hevc_put_hevc_epel_uni_w_hv24_8_lasx2277function ff_hevc_put_hevc_epel_uni_w_hv24_8_lasx
2332 LOAD_VAR 2562278 LOAD_VAR 256
2333 ld.d t0, sp, 0 // mx2279 ld.d t0, sp, 0 // mx
2334 addi.d t0, t0, -1
2335 slli.w t0, t0, 22280 slli.w t0, t0, 2
2336 la.local t1, ff_hevc_epel_filters2281 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];
2338 xvreplve0.w xr5, xr52283 xvreplve0.w xr5, xr5
2339 ld.d t0, sp, 8 // my2284 ld.d t0, sp, 8 // my
2340 addi.d t0, t0, -1
2341 slli.w t0, t0, 22285 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];
2343 vsllwil.h.b vr6, vr6, 02287 vsllwil.h.b vr6, vr6, 0
2344 vsllwil.w.h vr6, vr6, 02288 vsllwil.w.h vr6, vr6, 0
2345 xvreplve0.q xr6, xr62289 xvreplve0.q xr6, xr6
@@ -2364,15 +2308,13 @@ endfunc · 18 unmodified lines
2364function ff_hevc_put_hevc_epel_uni_w_hv32_8_lsx2308function ff_hevc_put_hevc_epel_uni_w_hv32_8_lsx
2365 LOAD_VAR 1282309 LOAD_VAR 128
2366 ld.d t0, sp, 0 // mx2310 ld.d t0, sp, 0 // mx
2367 addi.d t0, t0, -1
2368 slli.w t0, t0, 22311 slli.w t0, t0, 2
2369 la.local t1, ff_hevc_epel_filters2312 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];
2371 vreplvei.w vr5, vr5, 02314 vreplvei.w vr5, vr5, 0
2372 ld.d t0, sp, 8 // my2315 ld.d t0, sp, 8 // my
2373 addi.d t0, t0, -1
2374 slli.w t0, t0, 22316 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];
2376 vsllwil.h.b vr6, vr6, 02318 vsllwil.h.b vr6, vr6, 0
2377 vsllwil.w.h vr6, vr6, 02319 vsllwil.w.h vr6, vr6, 0
2378 vreplvei.w vr16, vr6, 02320 vreplvei.w vr16, vr6, 0
@@ -2402,15 +2344,13 @@ endfunc · 23 unmodified lines
2402function ff_hevc_put_hevc_epel_uni_w_hv32_8_lasx2344function ff_hevc_put_hevc_epel_uni_w_hv32_8_lasx
2403 LOAD_VAR 2562345 LOAD_VAR 256
2404 ld.d t0, sp, 0 // mx2346 ld.d t0, sp, 0 // mx
2405 addi.d t0, t0, -1
2406 slli.w t0, t0, 22347 slli.w t0, t0, 2
2407 la.local t1, ff_hevc_epel_filters2348 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];
2409 xvreplve0.w xr5, xr52350 xvreplve0.w xr5, xr5
2410 ld.d t0, sp, 8 // my2351 ld.d t0, sp, 8 // my
2411 addi.d t0, t0, -1
2412 slli.w t0, t0, 22352 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];
2414 vsllwil.h.b vr6, vr6, 02354 vsllwil.h.b vr6, vr6, 0
2415 vsllwil.w.h vr6, vr6, 02355 vsllwil.w.h vr6, vr6, 0
2416 xvreplve0.q xr6, xr62356 xvreplve0.q xr6, xr6
@@ -2440,15 +2380,13 @@ endfunc · 23 unmodified lines
2440function ff_hevc_put_hevc_epel_uni_w_hv48_8_lsx2380function ff_hevc_put_hevc_epel_uni_w_hv48_8_lsx
2441 LOAD_VAR 1282381 LOAD_VAR 128
2442 ld.d t0, sp, 0 // mx2382 ld.d t0, sp, 0 // mx
2443 addi.d t0, t0, -1
2444 slli.w t0, t0, 22383 slli.w t0, t0, 2
2445 la.local t1, ff_hevc_epel_filters2384 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];
2447 vreplvei.w vr5, vr5, 02386 vreplvei.w vr5, vr5, 0
2448 ld.d t0, sp, 8 // my2387 ld.d t0, sp, 8 // my
2449 addi.d t0, t0, -1
2450 slli.w t0, t0, 22388 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];
2452 vsllwil.h.b vr6, vr6, 02390 vsllwil.h.b vr6, vr6, 0
2453 vsllwil.w.h vr6, vr6, 02391 vsllwil.w.h vr6, vr6, 0
2454 vreplvei.w vr16, vr6, 02392 vreplvei.w vr16, vr6, 0
@@ -2478,15 +2416,13 @@ endfunc · 23 unmodified lines
2478function ff_hevc_put_hevc_epel_uni_w_hv48_8_lasx2416function ff_hevc_put_hevc_epel_uni_w_hv48_8_lasx
2479 LOAD_VAR 2562417 LOAD_VAR 256
2480 ld.d t0, sp, 0 // mx2418 ld.d t0, sp, 0 // mx
2481 addi.d t0, t0, -1
2482 slli.w t0, t0, 22419 slli.w t0, t0, 2
2483 la.local t1, ff_hevc_epel_filters2420 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];
2485 xvreplve0.w xr5, xr52422 xvreplve0.w xr5, xr5
2486 ld.d t0, sp, 8 // my2423 ld.d t0, sp, 8 // my
2487 addi.d t0, t0, -1
2488 slli.w t0, t0, 22424 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];
2490 vsllwil.h.b vr6, vr6, 02426 vsllwil.h.b vr6, vr6, 0
2491 vsllwil.w.h vr6, vr6, 02427 vsllwil.w.h vr6, vr6, 0
2492 xvreplve0.q xr6, xr62428 xvreplve0.q xr6, xr6
@@ -2516,15 +2452,13 @@ endfunc · 23 unmodified lines
2516function ff_hevc_put_hevc_epel_uni_w_hv64_8_lsx2452function ff_hevc_put_hevc_epel_uni_w_hv64_8_lsx
2517 LOAD_VAR 1282453 LOAD_VAR 128
2518 ld.d t0, sp, 0 // mx2454 ld.d t0, sp, 0 // mx
2519 addi.d t0, t0, -1
2520 slli.w t0, t0, 22455 slli.w t0, t0, 2
2521 la.local t1, ff_hevc_epel_filters2456 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];
2523 vreplvei.w vr5, vr5, 02458 vreplvei.w vr5, vr5, 0
2524 ld.d t0, sp, 8 // my2459 ld.d t0, sp, 8 // my
2525 addi.d t0, t0, -1
2526 slli.w t0, t0, 22460 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];
2528 vsllwil.h.b vr6, vr6, 02462 vsllwil.h.b vr6, vr6, 0
2529 vsllwil.w.h vr6, vr6, 02463 vsllwil.w.h vr6, vr6, 0
2530 vreplvei.w vr16, vr6, 02464 vreplvei.w vr16, vr6, 0
@@ -2554,15 +2488,13 @@ endfunc · 23 unmodified lines
2554function ff_hevc_put_hevc_epel_uni_w_hv64_8_lasx2488function ff_hevc_put_hevc_epel_uni_w_hv64_8_lasx
2555 LOAD_VAR 2562489 LOAD_VAR 256
2556 ld.d t0, sp, 0 // mx2490 ld.d t0, sp, 0 // mx
2557 addi.d t0, t0, -1
2558 slli.w t0, t0, 22491 slli.w t0, t0, 2
2559 la.local t1, ff_hevc_epel_filters2492 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];
2561 xvreplve0.w xr5, xr52494 xvreplve0.w xr5, xr5
2562 ld.d t0, sp, 8 // my2495 ld.d t0, sp, 8 // my
2563 addi.d t0, t0, -1
2564 slli.w t0, t0, 22496 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];
2566 vsllwil.h.b vr6, vr6, 02498 vsllwil.h.b vr6, vr6, 0
2567 vsllwil.w.h vr6, vr6, 02499 vsllwil.w.h vr6, vr6, 0
2568 xvreplve0.q xr6, xr62500 xvreplve0.q xr6, xr6
@@ -2596,8 +2528,7 @@ endfunc · 27 unmodified lines
2596 * int width)2528 * int width)
2597 */2529 */
2598function ff_hevc_put_hevc_uni_qpel_h4_8_lsx2530function ff_hevc_put_hevc_uni_qpel_h4_8_lsx
2599 addi.d t0, a5, -12531 slli.w t0, a5, 4
2600 slli.w t0, t0, 4
2601 la.local t1, ff_hevc_qpel_filters2532 la.local t1, ff_hevc_qpel_filters
2602 vldx vr5, t1, t0 //filter2533 vldx vr5, t1, t0 //filter
2603 addi.d a2, a2, -3 //src -= 32534 addi.d a2, a2, -3 //src -= 3
@@ -2663,8 +2594,7 @@ endfunc · 59 unmodified lines
2663.endm2594.endm
2664 2595
2665function ff_hevc_put_hevc_uni_qpel_h6_8_lsx2596function ff_hevc_put_hevc_uni_qpel_h6_8_lsx
2666 addi.d t0, a5, -12597 slli.w t0, a5, 4
2667 slli.w t0, t0, 4
2668 la.local t1, ff_hevc_qpel_filters2598 la.local t1, ff_hevc_qpel_filters
2669 vldx vr0, t1, t0 //filter abcdefgh2599 vldx vr0, t1, t0 //filter abcdefgh
2670 vreplvei.h vr1, vr0, 1 //cd...2600 vreplvei.h vr1, vr0, 1 //cd...
@@ -2692,8 +2622,7 @@ function ff_hevc_put_hevc_uni_qpel_h6_8_lsx · 21 unmodified lines
2692endfunc2622endfunc
2693 2623
2694function ff_hevc_put_hevc_uni_qpel_h8_8_lsx2624function ff_hevc_put_hevc_uni_qpel_h8_8_lsx
2695 addi.d t0, a5, -12625 slli.w t0, a5, 4
2696 slli.w t0, t0, 4
2697 la.local t1, ff_hevc_qpel_filters2626 la.local t1, ff_hevc_qpel_filters
2698 vldx vr0, t1, t0 //filter abcdefgh2627 vldx vr0, t1, t0 //filter abcdefgh
2699 vreplvei.h vr1, vr0, 1 //cd...2628 vreplvei.h vr1, vr0, 1 //cd...
@@ -2720,8 +2649,7 @@ function ff_hevc_put_hevc_uni_qpel_h8_8_lsx · 20 unmodified lines
2720endfunc2649endfunc
2721 2650
2722function ff_hevc_put_hevc_uni_qpel_h12_8_lsx2651function ff_hevc_put_hevc_uni_qpel_h12_8_lsx
2723 addi.d t0, a5, -12652 slli.w t0, a5, 4
2724 slli.w t0, t0, 4
2725 la.local t1, ff_hevc_qpel_filters2653 la.local t1, ff_hevc_qpel_filters
2726 vldx vr0, t1, t0 //filter abcdefgh2654 vldx vr0, t1, t0 //filter abcdefgh
2727 vreplvei.h vr1, vr0, 1 //cd...2655 vreplvei.h vr1, vr0, 1 //cd...
@@ -2751,8 +2679,7 @@ function ff_hevc_put_hevc_uni_qpel_h12_8_lsx · 23 unmodified lines
2751endfunc2679endfunc
2752 2680
2753function ff_hevc_put_hevc_uni_qpel_h12_8_lasx2681function ff_hevc_put_hevc_uni_qpel_h12_8_lasx
2754 addi.d t0, a5, -12682 slli.w t0, a5, 4
2755 slli.w t0, t0, 4
2756 la.local t1, ff_hevc_qpel_filters2683 la.local t1, ff_hevc_qpel_filters
2757 vldx vr0, t1, t0 //filter abcdefgh2684 vldx vr0, t1, t0 //filter abcdefgh
2758 xvreplve0.q xr0, xr02685 xvreplve0.q xr0, xr0
@@ -2784,8 +2711,7 @@ function ff_hevc_put_hevc_uni_qpel_h12_8_lasx · 25 unmodified lines
2784endfunc2711endfunc
2785 2712
2786function ff_hevc_put_hevc_uni_qpel_h16_8_lsx2713function ff_hevc_put_hevc_uni_qpel_h16_8_lsx
2787 addi.d t0, a5, -12714 slli.w t0, a5, 4
2788 slli.w t0, t0, 4
2789 la.local t1, ff_hevc_qpel_filters2715 la.local t1, ff_hevc_qpel_filters
2790 vldx vr0, t1, t0 //filter abcdefgh2716 vldx vr0, t1, t0 //filter abcdefgh
2791 vreplvei.h vr1, vr0, 1 //cd...2717 vreplvei.h vr1, vr0, 1 //cd...
@@ -2814,8 +2740,7 @@ function ff_hevc_put_hevc_uni_qpel_h16_8_lsx · 22 unmodified lines
2814endfunc2740endfunc
2815 2741
2816function ff_hevc_put_hevc_uni_qpel_h16_8_lasx2742function ff_hevc_put_hevc_uni_qpel_h16_8_lasx
2817 addi.d t0, a5, -12743 slli.w t0, a5, 4
2818 slli.w t0, t0, 4
2819 la.local t1, ff_hevc_qpel_filters2744 la.local t1, ff_hevc_qpel_filters
2820 vldx vr0, t1, t0 //filter abcdefgh2745 vldx vr0, t1, t0 //filter abcdefgh
2821 xvreplve0.q xr0, xr02746 xvreplve0.q xr0, xr0
@@ -2846,8 +2771,7 @@ function ff_hevc_put_hevc_uni_qpel_h16_8_lasx · 24 unmodified lines
2846endfunc2771endfunc
2847 2772
2848function ff_hevc_put_hevc_uni_qpel_h24_8_lsx2773function ff_hevc_put_hevc_uni_qpel_h24_8_lsx
2849 addi.d t0, a5, -12774 slli.w t0, a5, 4
2850 slli.w t0, t0, 4
2851 la.local t1, ff_hevc_qpel_filters2775 la.local t1, ff_hevc_qpel_filters
2852 vldx vr0, t1, t0 //filter abcdefgh2776 vldx vr0, t1, t0 //filter abcdefgh
2853 vreplvei.h vr1, vr0, 1 //cd...2777 vreplvei.h vr1, vr0, 1 //cd...
@@ -2880,8 +2804,7 @@ function ff_hevc_put_hevc_uni_qpel_h24_8_lsx · 26 unmodified lines
2880endfunc2804endfunc
2881 2805
2882function ff_hevc_put_hevc_uni_qpel_h24_8_lasx2806function ff_hevc_put_hevc_uni_qpel_h24_8_lasx
2883 addi.d t0, a5, -12807 slli.w t0, a5, 4
2884 slli.w t0, t0, 4
2885 la.local t1, ff_hevc_qpel_filters2808 la.local t1, ff_hevc_qpel_filters
2886 vldx vr0, t1, t0 //filter abcdefgh2809 vldx vr0, t1, t0 //filter abcdefgh
2887 xvreplve0.q xr0, xr02810 xvreplve0.q xr0, xr0
@@ -2916,8 +2839,7 @@ function ff_hevc_put_hevc_uni_qpel_h24_8_lasx · 28 unmodified lines
2916endfunc2839endfunc
2917 2840
2918function ff_hevc_put_hevc_uni_qpel_h32_8_lsx2841function ff_hevc_put_hevc_uni_qpel_h32_8_lsx
2919 addi.d t0, a5, -12842 slli.w t0, a5, 4
2920 slli.w t0, t0, 4
2921 la.local t1, ff_hevc_qpel_filters2843 la.local t1, ff_hevc_qpel_filters
2922 vldx vr0, t1, t0 //filter abcdefgh2844 vldx vr0, t1, t0 //filter abcdefgh
2923 vreplvei.h vr1, vr0, 1 //cd...2845 vreplvei.h vr1, vr0, 1 //cd...
@@ -2952,8 +2874,7 @@ function ff_hevc_put_hevc_uni_qpel_h32_8_lsx · 28 unmodified lines
2952endfunc2874endfunc
2953 2875
2954function ff_hevc_put_hevc_uni_qpel_h32_8_lasx2876function ff_hevc_put_hevc_uni_qpel_h32_8_lasx
2955 addi.d t0, a5, -12877 slli.w t0, a5, 4
2956 slli.w t0, t0, 4
2957 la.local t1, ff_hevc_qpel_filters2878 la.local t1, ff_hevc_qpel_filters
2958 vldx vr0, t1, t0 //filter abcdefgh2879 vldx vr0, t1, t0 //filter abcdefgh
2959 xvreplve0.q xr0, xr02880 xvreplve0.q xr0, xr0
@@ -2987,8 +2908,7 @@ function ff_hevc_put_hevc_uni_qpel_h32_8_lasx · 27 unmodified lines
2987endfunc2908endfunc
2988 2909
2989function ff_hevc_put_hevc_uni_qpel_h48_8_lsx2910function ff_hevc_put_hevc_uni_qpel_h48_8_lsx
2990 addi.d t0, a5, -12911 slli.w t0, a5, 4
2991 slli.w t0, t0, 4
2992 la.local t1, ff_hevc_qpel_filters2912 la.local t1, ff_hevc_qpel_filters
2993 vldx vr0, t1, t0 //filter abcdefgh2913 vldx vr0, t1, t0 //filter abcdefgh
2994 vreplvei.h vr1, vr0, 1 //cd...2914 vreplvei.h vr1, vr0, 1 //cd...
@@ -3029,8 +2949,7 @@ function ff_hevc_put_hevc_uni_qpel_h48_8_lsx · 34 unmodified lines
3029endfunc2949endfunc
3030 2950
3031function ff_hevc_put_hevc_uni_qpel_h48_8_lasx2951function ff_hevc_put_hevc_uni_qpel_h48_8_lasx
3032 addi.d t0, a5, -12952 slli.w t0, a5, 4
3033 slli.w t0, t0, 4
3034 la.local t1, ff_hevc_qpel_filters2953 la.local t1, ff_hevc_qpel_filters
3035 vldx vr0, t1, t0 //filter abcdefgh2954 vldx vr0, t1, t0 //filter abcdefgh
3036 xvreplve0.q xr0, xr02955 xvreplve0.q xr0, xr0
@@ -3070,8 +2989,7 @@ function ff_hevc_put_hevc_uni_qpel_h48_8_lasx · 33 unmodified lines
3070endfunc2989endfunc
3071 2990
3072function ff_hevc_put_hevc_uni_qpel_h64_8_lasx2991function ff_hevc_put_hevc_uni_qpel_h64_8_lasx
3073 addi.d t0, a5, -12992 slli.w t0, a5, 4
3074 slli.w t0, t0, 4
3075 la.local t1, ff_hevc_qpel_filters2993 la.local t1, ff_hevc_qpel_filters
3076 vldx vr0, t1, t0 //filter abcdefgh2994 vldx vr0, t1, t0 //filter abcdefgh
3077 xvreplve0.q xr0, xr02995 xvreplve0.q xr0, xr0
@@ -3122,7 +3040,6 @@ endfunc · 44 unmodified lines
3122function ff_hevc_put_hevc_epel_uni_w_v4_8_lsx3040function ff_hevc_put_hevc_epel_uni_w_v4_8_lsx
3123 LOAD_VAR 1283041 LOAD_VAR 128
3124 ld.d t0, sp, 8 //my3042 ld.d t0, sp, 8 //my
3125 addi.d t0, t0, -1
3126 slli.w t0, t0, 23043 slli.w t0, t0, 2
3127 la.local t1, ff_hevc_epel_filters3044 la.local t1, ff_hevc_epel_filters
3128 vldx vr0, t1, t0 //filter3045 vldx vr0, t1, t0 //filter
@@ -3260,7 +3177,6 @@ endfunc · 131 unmodified lines
3260function ff_hevc_put_hevc_epel_uni_w_v6_8_lsx3177function ff_hevc_put_hevc_epel_uni_w_v6_8_lsx
3261 LOAD_VAR 1283178 LOAD_VAR 128
3262 ld.d t0, sp, 8 //my3179 ld.d t0, sp, 8 //my
3263 addi.d t0, t0, -1
3264 slli.w t0, t0, 23180 slli.w t0, t0, 2
3265 la.local t1, ff_hevc_epel_filters3181 la.local t1, ff_hevc_epel_filters
3266 vldx vr0, t1, t0 //filter3182 vldx vr0, t1, t0 //filter
@@ -3275,7 +3191,6 @@ endfunc · 8 unmodified lines
3275function ff_hevc_put_hevc_epel_uni_w_v6_8_lasx3191function ff_hevc_put_hevc_epel_uni_w_v6_8_lasx
3276 LOAD_VAR 2563192 LOAD_VAR 256
3277 ld.d t0, sp, 8 //my3193 ld.d t0, sp, 8 //my
3278 addi.d t0, t0, -1
3279 slli.w t0, t0, 23194 slli.w t0, t0, 2
3280 la.local t1, ff_hevc_epel_filters3195 la.local t1, ff_hevc_epel_filters
3281 vldx vr0, t1, t0 //filter3196 vldx vr0, t1, t0 //filter
@@ -3289,7 +3204,6 @@ endfunc · 7 unmodified lines
3289function ff_hevc_put_hevc_epel_uni_w_v8_8_lsx3204function ff_hevc_put_hevc_epel_uni_w_v8_8_lsx
3290 LOAD_VAR 1283205 LOAD_VAR 128
3291 ld.d t0, sp, 8 //my3206 ld.d t0, sp, 8 //my
3292 addi.d t0, t0, -1
3293 slli.w t0, t0, 23207 slli.w t0, t0, 2
3294 la.local t1, ff_hevc_epel_filters3208 la.local t1, ff_hevc_epel_filters
3295 vldx vr0, t1, t0 //filter3209 vldx vr0, t1, t0 //filter
@@ -3304,7 +3218,6 @@ endfunc · 8 unmodified lines
3304function ff_hevc_put_hevc_epel_uni_w_v8_8_lasx3218function ff_hevc_put_hevc_epel_uni_w_v8_8_lasx
3305 LOAD_VAR 2563219 LOAD_VAR 256
3306 ld.d t0, sp, 8 //my3220 ld.d t0, sp, 8 //my
3307 addi.d t0, t0, -1
3308 slli.w t0, t0, 23221 slli.w t0, t0, 2
3309 la.local t1, ff_hevc_epel_filters3222 la.local t1, ff_hevc_epel_filters
3310 vldx vr0, t1, t0 //filter3223 vldx vr0, t1, t0 //filter
@@ -3394,7 +3307,6 @@ endfunc · 83 unmodified lines
3394function ff_hevc_put_hevc_epel_uni_w_v12_8_lsx3307function ff_hevc_put_hevc_epel_uni_w_v12_8_lsx
3395 LOAD_VAR 1283308 LOAD_VAR 128
3396 ld.d t0, sp, 8 //my3309 ld.d t0, sp, 8 //my
3397 addi.d t0, t0, -1
3398 slli.w t0, t0, 23310 slli.w t0, t0, 2
3399 la.local t1, ff_hevc_epel_filters3311 la.local t1, ff_hevc_epel_filters
3400 vldx vr0, t1, t0 //filter3312 vldx vr0, t1, t0 //filter
@@ -3409,7 +3321,6 @@ endfunc · 8 unmodified lines
3409function ff_hevc_put_hevc_epel_uni_w_v12_8_lasx3321function ff_hevc_put_hevc_epel_uni_w_v12_8_lasx
3410 LOAD_VAR 2563322 LOAD_VAR 256
3411 ld.d t0, sp, 8 //my3323 ld.d t0, sp, 8 //my
3412 addi.d t0, t0, -1
3413 slli.w t0, t0, 23324 slli.w t0, t0, 2
3414 la.local t1, ff_hevc_epel_filters3325 la.local t1, ff_hevc_epel_filters
3415 vldx vr0, t1, t0 //filter3326 vldx vr0, t1, t0 //filter
@@ -3425,7 +3336,6 @@ endfunc · 9 unmodified lines
3425function ff_hevc_put_hevc_epel_uni_w_v16_8_lsx3336function ff_hevc_put_hevc_epel_uni_w_v16_8_lsx
3426 LOAD_VAR 1283337 LOAD_VAR 128
3427 ld.d t0, sp, 8 //my3338 ld.d t0, sp, 8 //my
3428 addi.d t0, t0, -1
3429 slli.w t0, t0, 23339 slli.w t0, t0, 2
3430 la.local t1, ff_hevc_epel_filters3340 la.local t1, ff_hevc_epel_filters
3431 vldx vr0, t1, t0 //filter3341 vldx vr0, t1, t0 //filter
@@ -3440,7 +3350,6 @@ endfunc · 8 unmodified lines
3440function ff_hevc_put_hevc_epel_uni_w_v16_8_lasx3350function ff_hevc_put_hevc_epel_uni_w_v16_8_lasx
3441 LOAD_VAR 2563351 LOAD_VAR 256
3442 ld.d t0, sp, 8 //my3352 ld.d t0, sp, 8 //my
3443 addi.d t0, t0, -1
3444 slli.w t0, t0, 23353 slli.w t0, t0, 2
3445 la.local t1, ff_hevc_epel_filters3354 la.local t1, ff_hevc_epel_filters
3446 vldx vr0, t1, t0 //filter3355 vldx vr0, t1, t0 //filter
@@ -3456,7 +3365,6 @@ endfunc · 9 unmodified lines
3456function ff_hevc_put_hevc_epel_uni_w_v24_8_lsx3365function ff_hevc_put_hevc_epel_uni_w_v24_8_lsx
3457 LOAD_VAR 1283366 LOAD_VAR 128
3458 ld.d t0, sp, 8 //my3367 ld.d t0, sp, 8 //my
3459 addi.d t0, t0, -1
3460 slli.w t0, t0, 23368 slli.w t0, t0, 2
3461 la.local t1, ff_hevc_epel_filters3369 la.local t1, ff_hevc_epel_filters
3462 vldx vr0, t1, t0 //filter3370 vldx vr0, t1, t0 //filter
@@ -3478,7 +3386,6 @@ endfunc · 15 unmodified lines
3478function ff_hevc_put_hevc_epel_uni_w_v24_8_lasx3386function ff_hevc_put_hevc_epel_uni_w_v24_8_lasx
3479 LOAD_VAR 2563387 LOAD_VAR 256
3480 ld.d t0, sp, 8 //my3388 ld.d t0, sp, 8 //my
3481 addi.d t0, t0, -1
3482 slli.w t0, t0, 23389 slli.w t0, t0, 2
3483 la.local t1, ff_hevc_epel_filters3390 la.local t1, ff_hevc_epel_filters
3484 vldx vr0, t1, t0 //filter3391 vldx vr0, t1, t0 //filter
@@ -3503,7 +3410,6 @@ endfunc · 18 unmodified lines
3503function ff_hevc_put_hevc_epel_uni_w_v32_8_lsx3410function ff_hevc_put_hevc_epel_uni_w_v32_8_lsx
3504 LOAD_VAR 1283411 LOAD_VAR 128
3505 ld.d t0, sp, 8 //my3412 ld.d t0, sp, 8 //my
3506 addi.d t0, t0, -1
3507 slli.w t0, t0, 23413 slli.w t0, t0, 2
3508 la.local t1, ff_hevc_epel_filters3414 la.local t1, ff_hevc_epel_filters
3509 vldx vr0, t1, t0 //filter3415 vldx vr0, t1, t0 //filter
@@ -3525,7 +3431,6 @@ endfunc · 15 unmodified lines
3525function ff_hevc_put_hevc_epel_uni_w_v32_8_lasx3431function ff_hevc_put_hevc_epel_uni_w_v32_8_lasx
3526 LOAD_VAR 2563432 LOAD_VAR 256
3527 ld.d t0, sp, 8 //my3433 ld.d t0, sp, 8 //my
3528 addi.d t0, t0, -1
3529 slli.w t0, t0, 23434 slli.w t0, t0, 2
3530 la.local t1, ff_hevc_epel_filters3435 la.local t1, ff_hevc_epel_filters
3531 vldx vr0, t1, t0 //filter3436 vldx vr0, t1, t0 //filter
@@ -3548,7 +3453,6 @@ endfunc · 16 unmodified lines
3548function ff_hevc_put_hevc_epel_uni_w_v48_8_lsx3453function ff_hevc_put_hevc_epel_uni_w_v48_8_lsx
3549 LOAD_VAR 1283454 LOAD_VAR 128
3550 ld.d t0, sp, 8 //my3455 ld.d t0, sp, 8 //my
3551 addi.d t0, t0, -1
3552 slli.w t0, t0, 23456 slli.w t0, t0, 2
3553 la.local t1, ff_hevc_epel_filters3457 la.local t1, ff_hevc_epel_filters
3554 vldx vr0, t1, t0 //filter3458 vldx vr0, t1, t0 //filter
@@ -3574,7 +3478,6 @@ endfunc · 19 unmodified lines
3574function ff_hevc_put_hevc_epel_uni_w_v48_8_lasx3478function ff_hevc_put_hevc_epel_uni_w_v48_8_lasx
3575 LOAD_VAR 2563479 LOAD_VAR 256
3576 ld.d t0, sp, 8 //my3480 ld.d t0, sp, 8 //my
3577 addi.d t0, t0, -1
3578 slli.w t0, t0, 23481 slli.w t0, t0, 2
3579 la.local t1, ff_hevc_epel_filters3482 la.local t1, ff_hevc_epel_filters
3580 vldx vr0, t1, t0 //filter3483 vldx vr0, t1, t0 //filter
@@ -3601,7 +3504,6 @@ endfunc · 20 unmodified lines
3601function ff_hevc_put_hevc_epel_uni_w_v64_8_lsx3504function ff_hevc_put_hevc_epel_uni_w_v64_8_lsx
3602 LOAD_VAR 1283505 LOAD_VAR 128
3603 ld.d t0, sp, 8 //my3506 ld.d t0, sp, 8 //my
3604 addi.d t0, t0, -1
3605 slli.w t0, t0, 23507 slli.w t0, t0, 2
3606 la.local t1, ff_hevc_epel_filters3508 la.local t1, ff_hevc_epel_filters
3607 vldx vr0, t1, t0 //filter3509 vldx vr0, t1, t0 //filter
@@ -3631,7 +3533,6 @@ endfunc · 23 unmodified lines
3631function ff_hevc_put_hevc_epel_uni_w_v64_8_lasx3533function ff_hevc_put_hevc_epel_uni_w_v64_8_lasx
3632 LOAD_VAR 2563534 LOAD_VAR 256
3633 ld.d t0, sp, 8 //my3535 ld.d t0, sp, 8 //my
3634 addi.d t0, t0, -1
3635 slli.w t0, t0, 23536 slli.w t0, t0, 2
3636 la.local t1, ff_hevc_epel_filters3537 la.local t1, ff_hevc_epel_filters
3637 vldx vr0, t1, t0 //filter3538 vldx vr0, t1, t0 //filter
@@ -3668,7 +3569,6 @@ endfunc · 30 unmodified lines
3668function ff_hevc_put_hevc_epel_uni_w_h4_8_lsx3569function ff_hevc_put_hevc_epel_uni_w_h4_8_lsx
3669 LOAD_VAR 1283570 LOAD_VAR 128
3670 ld.d t0, sp, 0 //mx3571 ld.d t0, sp, 0 //mx
3671 addi.d t0, t0, -1
3672 slli.w t0, t0, 23572 slli.w t0, t0, 2
3673 la.local t1, ff_hevc_epel_filters3573 la.local t1, ff_hevc_epel_filters
3674 vldx vr0, t1, t0 //filter3574 vldx vr0, t1, t0 //filter
@@ -3699,7 +3599,6 @@ endfunc · 24 unmodified lines
3699function ff_hevc_put_hevc_epel_uni_w_h6_8_lsx3599function ff_hevc_put_hevc_epel_uni_w_h6_8_lsx
3700 LOAD_VAR 1283600 LOAD_VAR 128
3701 ld.d t0, sp, 0 //mx3601 ld.d t0, sp, 0 //mx
3702 addi.d t0, t0, -1
3703 slli.w t0, t0, 23602 slli.w t0, t0, 2
3704 la.local t1, ff_hevc_epel_filters3603 la.local t1, ff_hevc_epel_filters
3705 vldx vr0, t1, t0 //filter3604 vldx vr0, t1, t0 //filter
@@ -3730,7 +3629,6 @@ endfunc · 24 unmodified lines
3730function ff_hevc_put_hevc_epel_uni_w_h6_8_lasx3629function ff_hevc_put_hevc_epel_uni_w_h6_8_lasx
3731 LOAD_VAR 2563630 LOAD_VAR 256
3732 ld.d t0, sp, 0 //mx3631 ld.d t0, sp, 0 //mx
3733 addi.d t0, t0, -1
3734 slli.w t0, t0, 23632 slli.w t0, t0, 2
3735 la.local t1, ff_hevc_epel_filters3633 la.local t1, ff_hevc_epel_filters
3736 vldx vr0, t1, t0 //filter3634 vldx vr0, t1, t0 //filter
@@ -3759,7 +3657,6 @@ endfunc · 22 unmodified lines
3759function ff_hevc_put_hevc_epel_uni_w_h8_8_lsx3657function ff_hevc_put_hevc_epel_uni_w_h8_8_lsx
3760 LOAD_VAR 1283658 LOAD_VAR 128
3761 ld.d t0, sp, 0 //mx3659 ld.d t0, sp, 0 //mx
3762 addi.d t0, t0, -1
3763 slli.w t0, t0, 23660 slli.w t0, t0, 2
3764 la.local t1, ff_hevc_epel_filters3661 la.local t1, ff_hevc_epel_filters
3765 vldx vr0, t1, t0 //filter3662 vldx vr0, t1, t0 //filter
@@ -3789,7 +3686,6 @@ endfunc · 23 unmodified lines
3789function ff_hevc_put_hevc_epel_uni_w_h8_8_lasx3686function ff_hevc_put_hevc_epel_uni_w_h8_8_lasx
3790 LOAD_VAR 2563687 LOAD_VAR 256
3791 ld.d t0, sp, 0 //mx3688 ld.d t0, sp, 0 //mx
3792 addi.d t0, t0, -1
3793 slli.w t0, t0, 23689 slli.w t0, t0, 2
3794 la.local t1, ff_hevc_epel_filters3690 la.local t1, ff_hevc_epel_filters
3795 vldx vr0, t1, t0 //filter3691 vldx vr0, t1, t0 //filter
@@ -3853,7 +3749,6 @@ endfunc · 57 unmodified lines
3853function ff_hevc_put_hevc_epel_uni_w_h12_8_lsx3749function ff_hevc_put_hevc_epel_uni_w_h12_8_lsx
3854 LOAD_VAR 1283750 LOAD_VAR 128
3855 ld.d t0, sp, 0 //mx3751 ld.d t0, sp, 0 //mx
3856 addi.d t0, t0, -1
3857 slli.w t0, t0, 23752 slli.w t0, t0, 2
3858 la.local t1, ff_hevc_epel_filters3753 la.local t1, ff_hevc_epel_filters
3859 vldx vr0, t1, t0 //filter3754 vldx vr0, t1, t0 //filter
@@ -3889,7 +3784,6 @@ endfunc · 29 unmodified lines
3889function ff_hevc_put_hevc_epel_uni_w_h12_8_lasx3784function ff_hevc_put_hevc_epel_uni_w_h12_8_lasx
3890 LOAD_VAR 2563785 LOAD_VAR 256
3891 ld.d t0, sp, 0 //mx3786 ld.d t0, sp, 0 //mx
3892 addi.d t0, t0, -1
3893 slli.w t0, t0, 23787 slli.w t0, t0, 2
3894 la.local t1, ff_hevc_epel_filters3788 la.local t1, ff_hevc_epel_filters
3895 vldx vr0, t1, t0 //filter3789 vldx vr0, t1, t0 //filter
@@ -3910,7 +3804,6 @@ endfunc · 14 unmodified lines
3910function ff_hevc_put_hevc_epel_uni_w_h16_8_lsx3804function ff_hevc_put_hevc_epel_uni_w_h16_8_lsx
3911 LOAD_VAR 1283805 LOAD_VAR 128
3912 ld.d t0, sp, 0 //mx3806 ld.d t0, sp, 0 //mx
3913 addi.d t0, t0, -1
3914 slli.w t0, t0, 23807 slli.w t0, t0, 2
3915 la.local t1, ff_hevc_epel_filters3808 la.local t1, ff_hevc_epel_filters
3916 vldx vr0, t1, t0 //filter3809 vldx vr0, t1, t0 //filter
@@ -3934,7 +3827,6 @@ endfunc · 17 unmodified lines
3934function ff_hevc_put_hevc_epel_uni_w_h16_8_lasx3827function ff_hevc_put_hevc_epel_uni_w_h16_8_lasx
3935 LOAD_VAR 2563828 LOAD_VAR 256
3936 ld.d t0, sp, 0 //mx3829 ld.d t0, sp, 0 //mx
3937 addi.d t0, t0, -1
3938 slli.w t0, t0, 23830 slli.w t0, t0, 2
3939 la.local t1, ff_hevc_epel_filters3831 la.local t1, ff_hevc_epel_filters
3940 vldx vr0, t1, t0 //filter3832 vldx vr0, t1, t0 //filter
@@ -3955,7 +3847,6 @@ endfunc · 14 unmodified lines
3955function ff_hevc_put_hevc_epel_uni_w_h24_8_lsx3847function ff_hevc_put_hevc_epel_uni_w_h24_8_lsx
3956 LOAD_VAR 1283848 LOAD_VAR 128
3957 ld.d t0, sp, 0 //mx3849 ld.d t0, sp, 0 //mx
3958 addi.d t0, t0, -1
3959 slli.w t0, t0, 23850 slli.w t0, t0, 2
3960 la.local t1, ff_hevc_epel_filters3851 la.local t1, ff_hevc_epel_filters
3961 vldx vr0, t1, t0 //filter3852 vldx vr0, t1, t0 //filter
@@ -3986,7 +3877,6 @@ endfunc · 24 unmodified lines
3986function ff_hevc_put_hevc_epel_uni_w_h24_8_lasx3877function ff_hevc_put_hevc_epel_uni_w_h24_8_lasx
3987 LOAD_VAR 2563878 LOAD_VAR 256
3988 ld.d t0, sp, 0 //mx3879 ld.d t0, sp, 0 //mx
3989 addi.d t0, t0, -1
3990 slli.w t0, t0, 23880 slli.w t0, t0, 2
3991 la.local t1, ff_hevc_epel_filters3881 la.local t1, ff_hevc_epel_filters
3992 vldx vr0, t1, t0 //filter3882 vldx vr0, t1, t0 //filter
@@ -4015,7 +3905,6 @@ endfunc · 22 unmodified lines
4015function ff_hevc_put_hevc_epel_uni_w_h32_8_lsx3905function ff_hevc_put_hevc_epel_uni_w_h32_8_lsx
4016 LOAD_VAR 1283906 LOAD_VAR 128
4017 ld.d t0, sp, 0 //mx3907 ld.d t0, sp, 0 //mx
4018 addi.d t0, t0, -1
4019 slli.w t0, t0, 23908 slli.w t0, t0, 2
4020 la.local t1, ff_hevc_epel_filters3909 la.local t1, ff_hevc_epel_filters
4021 vldx vr0, t1, t0 //filter3910 vldx vr0, t1, t0 //filter
@@ -4040,7 +3929,6 @@ endfunc · 18 unmodified lines
4040function ff_hevc_put_hevc_epel_uni_w_h32_8_lasx3929function ff_hevc_put_hevc_epel_uni_w_h32_8_lasx
4041 LOAD_VAR 2563930 LOAD_VAR 256
4042 ld.d t0, sp, 0 //mx3931 ld.d t0, sp, 0 //mx
4043 addi.d t0, t0, -1
4044 slli.w t0, t0, 23932 slli.w t0, t0, 2
4045 la.local t1, ff_hevc_epel_filters3933 la.local t1, ff_hevc_epel_filters
4046 vldx vr0, t1, t0 //filter3934 vldx vr0, t1, t0 //filter
@@ -4062,7 +3950,6 @@ endfunc · 15 unmodified lines
4062function ff_hevc_put_hevc_epel_uni_w_h48_8_lsx3950function ff_hevc_put_hevc_epel_uni_w_h48_8_lsx
4063 LOAD_VAR 1283951 LOAD_VAR 128
4064 ld.d t0, sp, 0 //mx3952 ld.d t0, sp, 0 //mx
4065 addi.d t0, t0, -1
4066 slli.w t0, t0, 23953 slli.w t0, t0, 2
4067 la.local t1, ff_hevc_epel_filters3954 la.local t1, ff_hevc_epel_filters
4068 vldx vr0, t1, t0 //filter3955 vldx vr0, t1, t0 //filter
@@ -4088,7 +3975,6 @@ endfunc · 19 unmodified lines
4088function ff_hevc_put_hevc_epel_uni_w_h48_8_lasx3975function ff_hevc_put_hevc_epel_uni_w_h48_8_lasx
4089 LOAD_VAR 2563976 LOAD_VAR 256
4090 ld.d t0, sp, 0 //mx3977 ld.d t0, sp, 0 //mx
4091 addi.d t0, t0, -1
4092 slli.w t0, t0, 23978 slli.w t0, t0, 2
4093 la.local t1, ff_hevc_epel_filters3979 la.local t1, ff_hevc_epel_filters
4094 vldx vr0, t1, t0 //filter3980 vldx vr0, t1, t0 //filter
@@ -4111,7 +3997,6 @@ endfunc · 16 unmodified lines
4111function ff_hevc_put_hevc_epel_uni_w_h64_8_lsx3997function ff_hevc_put_hevc_epel_uni_w_h64_8_lsx
4112 LOAD_VAR 1283998 LOAD_VAR 128
4113 ld.d t0, sp, 0 //mx3999 ld.d t0, sp, 0 //mx
4114 addi.d t0, t0, -1
4115 slli.w t0, t0, 24000 slli.w t0, t0, 2
4116 la.local t1, ff_hevc_epel_filters4001 la.local t1, ff_hevc_epel_filters
4117 vldx vr0, t1, t0 //filter4002 vldx vr0, t1, t0 //filter
@@ -4138,7 +4023,6 @@ endfunc · 20 unmodified lines
4138function ff_hevc_put_hevc_epel_uni_w_h64_8_lasx4023function ff_hevc_put_hevc_epel_uni_w_h64_8_lasx
4139 LOAD_VAR 2564024 LOAD_VAR 256
4140 ld.d t0, sp, 0 //mx4025 ld.d t0, sp, 0 //mx
4141 addi.d t0, t0, -1
4142 slli.w t0, t0, 24026 slli.w t0, t0, 2
4143 la.local t1, ff_hevc_epel_filters4027 la.local t1, ff_hevc_epel_filters
4144 vldx vr0, t1, t0 //filter4028 vldx vr0, t1, t0 //filter
@@ -4166,7 +4050,6 @@ endfunc · 21 unmodified lines
4166 * intptr_t my, int width)4050 * intptr_t my, int width)
4167 */4051 */
4168function ff_hevc_put_hevc_bi_epel_h4_8_lsx4052function ff_hevc_put_hevc_bi_epel_h4_8_lsx
4169 addi.d a6, a6, -1
4170 slli.w a6, a6, 24053 slli.w a6, a6, 2
4171 la.local t0, ff_hevc_epel_filters4054 la.local t0, ff_hevc_epel_filters
4172 vldx vr0, t0, a6 // filter4055 vldx vr0, t0, a6 // filter
@@ -4209,7 +4092,6 @@ endfunc · 36 unmodified lines
4209.endm4092.endm
4210 4093
4211function ff_hevc_put_hevc_bi_epel_h6_8_lsx4094function ff_hevc_put_hevc_bi_epel_h6_8_lsx
4212 addi.d a6, a6, -1
4213 slli.w a6, a6, 24095 slli.w a6, a6, 2
4214 la.local t0, ff_hevc_epel_filters4096 la.local t0, ff_hevc_epel_filters
4215 vldx vr0, t0, a6 // filter4097 vldx vr0, t0, a6 // filter
@@ -4234,7 +4116,6 @@ function ff_hevc_put_hevc_bi_epel_h6_8_lsx · 18 unmodified lines
4234endfunc4116endfunc
4235 4117
4236function ff_hevc_put_hevc_bi_epel_h8_8_lsx4118function ff_hevc_put_hevc_bi_epel_h8_8_lsx
4237 addi.d a6, a6, -1
4238 slli.w a6, a6, 24119 slli.w a6, a6, 2
4239 la.local t0, ff_hevc_epel_filters4120 la.local t0, ff_hevc_epel_filters
4240 vldx vr0, t0, a6 // filter4121 vldx vr0, t0, a6 // filter
@@ -4258,7 +4139,6 @@ function ff_hevc_put_hevc_bi_epel_h8_8_lsx · 17 unmodified lines
4258endfunc4139endfunc
4259 4140
4260function ff_hevc_put_hevc_bi_epel_h12_8_lsx4141function ff_hevc_put_hevc_bi_epel_h12_8_lsx
4261 addi.d a6, a6, -1
4262 slli.w a6, a6, 24142 slli.w a6, a6, 2
4263 la.local t0, ff_hevc_epel_filters4143 la.local t0, ff_hevc_epel_filters
4264 vldx vr0, t0, a6 // filter4144 vldx vr0, t0, a6 // filter
@@ -4286,7 +4166,6 @@ function ff_hevc_put_hevc_bi_epel_h12_8_lsx · 21 unmodified lines
4286endfunc4166endfunc
4287 4167
4288function ff_hevc_put_hevc_bi_epel_h12_8_lasx4168function ff_hevc_put_hevc_bi_epel_h12_8_lasx
4289 addi.d a6, a6, -1
4290 slli.w a6, a6, 24169 slli.w a6, a6, 2
4291 la.local t0, ff_hevc_epel_filters4170 la.local t0, ff_hevc_epel_filters
4292 vldx vr0, t0, a6 // filter4171 vldx vr0, t0, a6 // filter
@@ -4314,7 +4193,6 @@ function ff_hevc_put_hevc_bi_epel_h12_8_lasx · 21 unmodified lines
4314endfunc4193endfunc
4315 4194
4316function ff_hevc_put_hevc_bi_epel_h16_8_lsx4195function ff_hevc_put_hevc_bi_epel_h16_8_lsx
4317 addi.d a6, a6, -1
4318 slli.w a6, a6, 24196 slli.w a6, a6, 2
4319 la.local t0, ff_hevc_epel_filters4197 la.local t0, ff_hevc_epel_filters
4320 vldx vr0, t0, a6 // filter4198 vldx vr0, t0, a6 // filter
@@ -4341,7 +4219,6 @@ function ff_hevc_put_hevc_bi_epel_h16_8_lsx · 20 unmodified lines
4341endfunc4219endfunc
4342 4220
4343function ff_hevc_put_hevc_bi_epel_h16_8_lasx4221function ff_hevc_put_hevc_bi_epel_h16_8_lasx
4344 addi.d a6, a6, -1
4345 slli.w a6, a6, 24222 slli.w a6, a6, 2
4346 la.local t0, ff_hevc_epel_filters4223 la.local t0, ff_hevc_epel_filters
4347 vldx vr0, t0, a6 // filter4224 vldx vr0, t0, a6 // filter
@@ -4368,7 +4245,6 @@ function ff_hevc_put_hevc_bi_epel_h16_8_lasx · 20 unmodified lines
4368endfunc4245endfunc
4369 4246
4370function ff_hevc_put_hevc_bi_epel_h32_8_lasx4247function ff_hevc_put_hevc_bi_epel_h32_8_lasx
4371 addi.d a6, a6, -1
4372 slli.w a6, a6, 24248 slli.w a6, a6, 2
4373 la.local t0, ff_hevc_epel_filters4249 la.local t0, ff_hevc_epel_filters
4374 vldx vr0, t0, a6 // filter4250 vldx vr0, t0, a6 // filter
@@ -4400,7 +4276,6 @@ function ff_hevc_put_hevc_bi_epel_h32_8_lasx · 25 unmodified lines
4400endfunc4276endfunc
4401 4277
4402function ff_hevc_put_hevc_bi_epel_h48_8_lsx4278function ff_hevc_put_hevc_bi_epel_h48_8_lsx
4403 addi.d a6, a6, -1
4404 slli.w a6, a6, 24279 slli.w a6, a6, 2
4405 la.local t0, ff_hevc_epel_filters4280 la.local t0, ff_hevc_epel_filters
4406 vldx vr0, t0, a6// filter4281 vldx vr0, t0, a6// filter
@@ -4443,7 +4318,6 @@ function ff_hevc_put_hevc_bi_epel_h48_8_lsx · 36 unmodified lines
4443endfunc4318endfunc
4444 4319
4445function ff_hevc_put_hevc_bi_epel_h48_8_lasx4320function ff_hevc_put_hevc_bi_epel_h48_8_lasx
4446 addi.d a6, a6, -1
4447 slli.w a6, a6, 24321 slli.w a6, a6, 2
4448 la.local t0, ff_hevc_epel_filters4322 la.local t0, ff_hevc_epel_filters
4449 vldx vr0, t0, a6 // filter4323 vldx vr0, t0, a6 // filter
@@ -4481,7 +4355,6 @@ function ff_hevc_put_hevc_bi_epel_h48_8_lasx · 31 unmodified lines
4481endfunc4355endfunc
4482 4356
4483function ff_hevc_put_hevc_bi_epel_h64_8_lsx4357function ff_hevc_put_hevc_bi_epel_h64_8_lsx
4484 addi.d a6, a6, -1
4485 slli.w a6, a6, 24358 slli.w a6, a6, 2
4486 la.local t0, ff_hevc_epel_filters4359 la.local t0, ff_hevc_epel_filters
4487 vldx vr0, t0, a6// filter4360 vldx vr0, t0, a6// filter
@@ -4531,7 +4404,6 @@ function ff_hevc_put_hevc_bi_epel_h64_8_lsx · 43 unmodified lines
4531endfunc4404endfunc
4532 4405
4533function ff_hevc_put_hevc_bi_epel_h64_8_lasx4406function ff_hevc_put_hevc_bi_epel_h64_8_lasx
4534 addi.d a6, a6, -1
4535 slli.w a6, a6, 24407 slli.w a6, a6, 2
4536 la.local t0, ff_hevc_epel_filters4408 la.local t0, ff_hevc_epel_filters
4537 vldx vr0, t0, a6 // filter4409 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
2224 intptr_t my, \2224 intptr_t my, \
2225 int width) \2225 int width) \
2226{ \2226{ \
2227 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \2227 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
2228 \2228 \
2229 hevc_##DIR1##_##TAP##t_##WIDTH##w_lsx(src, src_stride, src_16bit, \2229 hevc_##DIR1##_##TAP##t_##WIDTH##w_lsx(src, src_stride, src_16bit, \
2230 MAX_PB_SIZE, dst, dst_stride, \2230 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
2265 intptr_t my, \2265 intptr_t my, \
2266 int width) \2266 int width) \
2267{ \2267{ \
2268 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \2268 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
2269 const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \2269 const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
2270 \2270 \
2271 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, src_16bit, \2271 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, src_16bit, \
2272 MAX_PB_SIZE, dst, dst_stride, \2272 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
1373 intptr_t my, \1373 intptr_t my, \
1374 int width) \1374 int width) \
1375{ \1375{ \
1376 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \1376 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
1377 \1377 \
1378 common_##DIR1##_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, dst_stride, \1378 common_##DIR1##_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, dst_stride, \
1379 filter, height); \1379 filter, height); \
@@ -1401,8 +1401,8 @@ void ff_hevc_put_hevc_uni_##PEL##_hv##WIDTH##_8_lsx(uint8_t *dst, \ · 21 unmodified lines
1401 intptr_t my, \1401 intptr_t my, \
1402 int width) \1402 int width) \
1403{ \1403{ \
1404 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \1404 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
1405 const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \1405 const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
1406 \1406 \
1407 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, dst_stride, \1407 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, dst_stride, \
1408 filter_x, filter_y, height); \1408 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
280 intptr_t my, \280 intptr_t my, \
281 int width) \281 int width) \
282{ \282{ \
283 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \283 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
284 const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \284 const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
285 int shift = denom + 14 - 8; \285 int shift = denom + 14 - 8; \
286 \286 \
287 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, dst_stride, filter_x,\287 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
3233 intptr_t my, \3233 intptr_t my, \
3234 int width) \3234 int width) \
3235{ \3235{ \
3236 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \3236 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
3237 \3237 \
3238 hevc_##DIR1##_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, \3238 hevc_##DIR1##_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, \
3239 MAX_PB_SIZE, filter, height); \3239 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
3274 intptr_t my, \3274 intptr_t my, \
3275 int width) \3275 int width) \
3276{ \3276{ \
3277 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \3277 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
3278 const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \3278 const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
3279 \3279 \
3280 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, MAX_PB_SIZE, \3280 hevc_hv_##TAP##t_##WIDTH##w_lsx(src, src_stride, dst, MAX_PB_SIZE, \
3281 filter_x, filter_y, height); \3281 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
5096 intptr_t my, \5096 intptr_t my, \
5097 int width) \5097 int width) \
5098{ \5098{ \
5099 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \5099 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
5100 \5100 \
5101 hevc_##DIR1##_bi_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \5101 hevc_##DIR1##_bi_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \
5102 MAX_PB_SIZE, dst, dst_stride, \5102 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
5150 intptr_t my, \5150 intptr_t my, \
5151 int width) \5151 int width) \
5152{ \5152{ \
5153 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \5153 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
5154 const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \5154 const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
5155 \5155 \
5156 hevc_hv_bi_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \5156 hevc_hv_bi_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \
5157 MAX_PB_SIZE, dst, dst_stride, \5157 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
6060 intptr_t my, \6060 intptr_t my, \
6061 int width) \6061 int width) \
6062{ \6062{ \
6063 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \6063 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
6064 int log2Wd = denom + 14 - 8; \6064 int log2Wd = denom + 14 - 8; \
6065 \6065 \
6066 hevc_##DIR1##_biwgt_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \6066 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
6122 intptr_t my, \6122 intptr_t my, \
6123 int width) \6123 int width) \
6124{ \6124{ \
6125 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \6125 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
6126 const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \6126 const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
6127 int log2Wd = denom + 14 - 8; \6127 int log2Wd = denom + 14 - 8; \
6128 \6128 \
6129 hevc_hv_biwgt_##TAP##t_##WIDTH##w_msa(src, src_stride, src_16bit, \6129 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
4155 intptr_t my, \4155 intptr_t my, \
4156 int width) \4156 int width) \
4157{ \4157{ \
4158 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \4158 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
4159 \4159 \
4160 common_##DIR1##_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, dst_stride, \4160 common_##DIR1##_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, dst_stride, \
4161 filter, height); \4161 filter, height); \
@@ -4207,8 +4207,8 @@ void ff_hevc_put_hevc_uni_##PEL##_hv##WIDTH##_8_msa(uint8_t *dst, \ · 45 unmodified lines
4207 intptr_t my, \4207 intptr_t my, \
4208 int width) \4208 int width) \
4209{ \4209{ \
4210 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \4210 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
4211 const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \4211 const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
4212 \4212 \
4213 hevc_hv_uni_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, dst_stride, \4213 hevc_hv_uni_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, dst_stride, \
4214 filter_x, filter_y, height); \4214 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
6263 intptr_t my, \6263 intptr_t my, \
6264 int width) \6264 int width) \
6265{ \6265{ \
6266 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \6266 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
6267 int shift = denom + 14 - 8; \6267 int shift = denom + 14 - 8; \
6268 \6268 \
6269 hevc_##DIR1##_uniwgt_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, \6269 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
6320 intptr_t my, \6320 intptr_t my, \
6321 int width) \6321 int width) \
6322{ \6322{ \
6323 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \6323 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
6324 const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \6324 const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
6325 int shift = denom + 14 - 8; \6325 int shift = denom + 14 - 8; \
6326 \6326 \
6327 hevc_hv_uniwgt_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, dst_stride, \6327 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
34 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \34 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \
35 double ftmp[15]; \35 double ftmp[15]; \
36 uint64_t rtmp[1]; \36 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]; \
38 DECLARE_VAR_ALL64; \38 DECLARE_VAR_ALL64; \
39 \39 \
40 x = x_step; \40 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
134 DECLARE_VAR_ALL64; \134 DECLARE_VAR_ALL64; \
135 \135 \
136 src -= (QPEL_EXTRA_BEFORE * srcstride + 3); \136 src -= (QPEL_EXTRA_BEFORE * srcstride + 3); \
137 filter = ff_hevc_qpel_filters[mx - 1]; \137 filter = ff_hevc_qpel_filters[mx]; \
138 x = x_step; \138 x = x_step; \
139 y = height + QPEL_EXTRA; \139 y = height + QPEL_EXTRA; \
140 __asm__ volatile( \140 __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
206 ); \206 ); \
207 \207 \
208 tmp = tmp_array + QPEL_EXTRA_BEFORE * 4 -12; \208 tmp = tmp_array + QPEL_EXTRA_BEFORE * 4 -12; \
209 filter = ff_hevc_qpel_filters[my - 1]; \209 filter = ff_hevc_qpel_filters[my]; \
210 x = x_step; \210 x = x_step; \
211 y = height; \211 y = height; \
212 __asm__ volatile( \212 __asm__ volatile( \
@@ -314,7 +314,7 @@ void ff_hevc_put_hevc_qpel_bi_h##w##_8_mmi(uint8_t *_dst, \ · 101 unmodified lines
314 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \314 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \
315 pixel *dst = (pixel *)_dst; \315 pixel *dst = (pixel *)_dst; \
316 ptrdiff_t dststride = _dststride / sizeof(pixel); \316 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]; \
318 double ftmp[20]; \318 double ftmp[20]; \
319 uint64_t rtmp[1]; \319 uint64_t rtmp[1]; \
320 union av_intfloat64 shift; \320 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
458 offset.i = 64; \458 offset.i = 64; \
459 \459 \
460 src -= (QPEL_EXTRA_BEFORE * srcstride + 3); \460 src -= (QPEL_EXTRA_BEFORE * srcstride + 3); \
461 filter = ff_hevc_qpel_filters[mx - 1]; \461 filter = ff_hevc_qpel_filters[mx]; \
462 x = width >> 2; \462 x = width >> 2; \
463 y = height + QPEL_EXTRA; \463 y = height + QPEL_EXTRA; \
464 __asm__ volatile( \464 __asm__ volatile( \
@@ -530,7 +530,7 @@ void ff_hevc_put_hevc_qpel_bi_hv##w##_8_mmi(uint8_t *_dst, \ · 65 unmodified lines
530 ); \530 ); \
531 \531 \
532 tmp = tmp_array; \532 tmp = tmp_array; \
533 filter = ff_hevc_qpel_filters[my - 1]; \533 filter = ff_hevc_qpel_filters[my]; \
534 x = width >> 2; \534 x = width >> 2; \
535 y = height; \535 y = height; \
536 __asm__ volatile( \536 __asm__ volatile( \
@@ -665,7 +665,7 @@ void ff_hevc_put_hevc_epel_bi_hv##w##_8_mmi(uint8_t *_dst, \ · 128 unmodified lines
665 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \665 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \
666 pixel *dst = (pixel *)_dst; \666 pixel *dst = (pixel *)_dst; \
667 ptrdiff_t dststride = _dststride / sizeof(pixel); \667 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]; \
669 int16_t tmp_array[(MAX_PB_SIZE + EPEL_EXTRA) * MAX_PB_SIZE]; \669 int16_t tmp_array[(MAX_PB_SIZE + EPEL_EXTRA) * MAX_PB_SIZE]; \
670 int16_t *tmp = tmp_array; \670 int16_t *tmp = tmp_array; \
671 double ftmp[12]; \671 double ftmp[12]; \
@@ -735,7 +735,7 @@ void ff_hevc_put_hevc_epel_bi_hv##w##_8_mmi(uint8_t *_dst, \ · 63 unmodified lines
735 ); \735 ); \
736 \736 \
737 tmp = tmp_array; \737 tmp = tmp_array; \
738 filter = ff_hevc_epel_filters[my - 1]; \738 filter = ff_hevc_epel_filters[my]; \
739 x = width >> 2; \739 x = width >> 2; \
740 y = height; \740 y = height; \
741 __asm__ volatile( \741 __asm__ volatile( \
@@ -969,7 +969,7 @@ void ff_hevc_put_hevc_qpel_uni_hv##w##_8_mmi(uint8_t *_dst, \ · 227 unmodified lines
969 offset.i = 32; \969 offset.i = 32; \
970 \970 \
971 src -= (QPEL_EXTRA_BEFORE * srcstride + 3); \971 src -= (QPEL_EXTRA_BEFORE * srcstride + 3); \
972 filter = ff_hevc_qpel_filters[mx - 1]; \972 filter = ff_hevc_qpel_filters[mx]; \
973 x = width >> 2; \973 x = width >> 2; \
974 y = height + QPEL_EXTRA; \974 y = height + QPEL_EXTRA; \
975 __asm__ volatile( \975 __asm__ volatile( \
@@ -1041,7 +1041,7 @@ void ff_hevc_put_hevc_qpel_uni_hv##w##_8_mmi(uint8_t *_dst, \ · 65 unmodified lines
1041 ); \1041 ); \
1042 \1042 \
1043 tmp = tmp_array; \1043 tmp = tmp_array; \
1044 filter = ff_hevc_qpel_filters[my - 1]; \1044 filter = ff_hevc_qpel_filters[my]; \
1045 x = width >> 2; \1045 x = width >> 2; \
1046 y = height; \1046 y = height; \
1047 __asm__ volatile( \1047 __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
4322 intptr_t my, \4322 intptr_t my, \
4323 int width) \4323 int width) \
4324{ \4324{ \
4325 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR - 1]; \4325 const int8_t *filter = ff_hevc_##PEL##_filters[FILT_DIR]; \
4326 \4326 \
4327 hevc_##DIR1##_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, \4327 hevc_##DIR1##_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, \
4328 MAX_PB_SIZE, filter, height); \4328 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
4373 intptr_t my, \4373 intptr_t my, \
4374 int width) \4374 int width) \
4375{ \4375{ \
4376 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx - 1]; \4376 const int8_t *filter_x = ff_hevc_##PEL##_filters[mx]; \
4377 const int8_t *filter_y = ff_hevc_##PEL##_filters[my - 1]; \4377 const int8_t *filter_y = ff_hevc_##PEL##_filters[my]; \
4378 \4378 \
4379 hevc_hv_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, MAX_PB_SIZE, \4379 hevc_hv_##TAP##t_##WIDTH##w_msa(src, src_stride, dst, MAX_PB_SIZE, \
4380 filter_x, filter_y, height); \4380 filter_x, filter_y, height); \
libavcodec/x86/hevcdsp_init.c+2−2
@@ -88,8 +88,8 @@ IDCT_FUNCS(avx) · 87 unmodified lines
88 88
89#define ff_hevc_pel_filters ff_hevc_qpel_filters89#define ff_hevc_pel_filters ff_hevc_qpel_filters
90#define DECL_HV_FILTER(f) \90#define DECL_HV_FILTER(f) \
91 const uint8_t *hf = ff_hevc_ ## f ## _filters[mx - 1]; \91 const uint8_t *hf = ff_hevc_ ## f ## _filters[mx]; \
92 const uint8_t *vf = ff_hevc_ ## f ## _filters[my - 1];92 const uint8_t *vf = ff_hevc_ ## f ## _filters[my];
93 93
94#define FW_PUT(p, a, b, depth, opt) \94#define FW_PUT(p, a, b, depth, opt) \
95void ff_hevc_put_hevc_ ## a ## _ ## depth ## _##opt(int16_t *dst, const uint8_t *src, ptrdiff_t srcstride, \95void 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