Go to the documentation of this file.
21 #ifndef AVCODEC_RISCV_VP9DSP_H
22 #define AVCODEC_RISCV_VP9DSP_H
78 #define VP9_8TAP_RISCV_RVV_FUNC(SIZE, type, type_idx) \
79 void ff_put_8tap_##type##_##SIZE##h_rvv(uint8_t *dst, ptrdiff_t dststride, \
81 ptrdiff_t srcstride, \
82 int h, int mx, int my); \
84 void ff_put_8tap_##type##_##SIZE##v_rvv(uint8_t *dst, ptrdiff_t dststride, \
86 ptrdiff_t srcstride, \
87 int h, int mx, int my); \
89 void ff_put_8tap_##type##_##SIZE##hv_rvv(uint8_t *dst, ptrdiff_t dststride, \
91 ptrdiff_t srcstride, \
92 int h, int mx, int my); \
94 void ff_avg_8tap_##type##_##SIZE##h_rvv(uint8_t *dst, ptrdiff_t dststride, \
96 ptrdiff_t srcstride, \
97 int h, int mx, int my); \
99 void ff_avg_8tap_##type##_##SIZE##v_rvv(uint8_t *dst, ptrdiff_t dststride, \
100 const uint8_t *src, \
101 ptrdiff_t srcstride, \
102 int h, int mx, int my); \
104 void ff_avg_8tap_##type##_##SIZE##hv_rvv(uint8_t *dst, ptrdiff_t dststride, \
105 const uint8_t *src, \
106 ptrdiff_t srcstride, \
107 int h, int mx, int my);
109 #define VP9_BILINEAR_RISCV_RVV_FUNC(SIZE) \
110 void ff_put_vp9_bilin_##SIZE##h_rvv(uint8_t *dst, ptrdiff_t dststride, \
111 const uint8_t *src, ptrdiff_t srcstride, \
112 int h, int mx, int my); \
114 void ff_put_vp9_bilin_##SIZE##v_rvv(uint8_t *dst, ptrdiff_t dststride, \
115 const uint8_t *src, ptrdiff_t srcstride, \
116 int h, int mx, int my); \
118 void ff_put_vp9_bilin_##SIZE##hv_rvv(uint8_t *dst, ptrdiff_t dststride, \
119 const uint8_t *src, ptrdiff_t srcstride, \
120 int h, int mx, int my); \
122 void ff_avg_vp9_bilin_##SIZE##h_rvv(uint8_t *dst, ptrdiff_t dststride, \
123 const uint8_t *src, ptrdiff_t srcstride, \
124 int h, int mx, int my); \
126 void ff_avg_vp9_bilin_##SIZE##v_rvv(uint8_t *dst, ptrdiff_t dststride, \
127 const uint8_t *src, ptrdiff_t srcstride, \
128 int h, int mx, int my); \
130 void ff_avg_vp9_bilin_##SIZE##hv_rvv(uint8_t *dst, ptrdiff_t dststride, \
131 const uint8_t *src, ptrdiff_t srcstride, \
132 int h, int mx, int my);
134 #define VP9_COPY_AVG_RISCV_RVV_FUNC(SIZE) \
135 void ff_vp9_copy##SIZE##_rvv(uint8_t *dst, ptrdiff_t dststride, \
136 const uint8_t *src, ptrdiff_t srcstride, \
137 int h, int mx, int my); \
139 void ff_vp9_avg##SIZE##_rvv(uint8_t *dst, ptrdiff_t dststride, \
140 const uint8_t *src, ptrdiff_t srcstride, \
141 int h, int mx, int my);
173 #define VP9_COPY_RISCV_RVI_FUNC(SIZE) \
174 void ff_copy##SIZE##_rvi(uint8_t *dst, ptrdiff_t dststride, \
175 const uint8_t *src, ptrdiff_t srcstride, \
176 int h, int mx, int my);
184 #undef VP9_8TAP_RISCV_RVV_FUNC
185 #undef VP9_BILINEAR_RISCV_RVV_FUNC
186 #undef VP9_COPY_AVG_RISCV_RVV_FUNC
188 #endif // #ifndef AVCODEC_RISCV_VP9DSP_H
void ff_dc_127_32x32_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_h_32x32_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_8x8_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
#define VP9_8TAP_RISCV_RVV_FUNC(SIZE, type, type_idx)
void ff_dc_left_16x16_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_tm_32x32_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_129_16x16_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_top_32x32_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
#define VP9_COPY_AVG_RISCV_RVV_FUNC(SIZE)
void ff_dc_16x16_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_tm_16x16_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
#define VP9_COPY_RISCV_RVI_FUNC(SIZE)
void ff_h_8x8_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_127_8x8_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_129_32x32_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_32x32_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_128_16x16_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_top_8x8_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_128_8x8_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_h_16x16_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
void ff_dc_129_8x8_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_left_32x32_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
void ff_dc_127_16x16_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_top_16x16_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_tm_8x8_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_dc_left_8x8_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
#define VP9_BILINEAR_RISCV_RVV_FUNC(SIZE)
static float smooth(DeshakeOpenCLContext *deshake_ctx, float *gauss_kernel, int length, float max_val, AVFifo *values)
void ff_dc_128_32x32_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)
void ff_tm_4x4_rvv(uint8_t *dst, ptrdiff_t stride, const uint8_t *l, const uint8_t *a)