Go to the documentation of this file.
30 #define bf(fn, bd, opt) fn##_##bd##_##opt
32 #define AVG_PROTOTYPES(bd, opt) \
33 void bf(ff_vvc_avg, bd, opt)(uint8_t *dst, ptrdiff_t dst_stride, \
34 const int16_t *src0, const int16_t *src1, int width, int height); \
35 void bf(ff_vvc_w_avg, bd, opt)(uint8_t *dst, ptrdiff_t dst_stride, \
36 const int16_t *src0, const int16_t *src1, int width, int height, \
37 int denom, int w0, int w1, int o0, int o1);
42 #define DMVR_PROTOTYPES(bd, opt) \
43 void ff_vvc_dmvr_##bd##_##opt(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride, \
44 int height, intptr_t mx, intptr_t my, int width); \
45 void ff_vvc_dmvr_h_##bd##_##opt(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride, \
46 int height, intptr_t mx, intptr_t my, int width); \
47 void ff_vvc_dmvr_v_##bd##_##opt(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride, \
48 int height, intptr_t mx, intptr_t my, int width); \
49 void ff_vvc_dmvr_hv_##bd##_##opt(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride, \
50 int height, intptr_t mx, intptr_t my, int width); \
55 #define DMVR_INIT(bd, opt) do { \
56 c->inter.dmvr[0][0] = ff_vvc_dmvr_##bd##_##opt; \
57 c->inter.dmvr[0][1] = ff_vvc_dmvr_h_##bd##_##opt; \
58 c->inter.dmvr[1][0] = ff_vvc_dmvr_v_##bd##_##opt; \
59 c->inter.dmvr[1][1] = ff_vvc_dmvr_hv_##bd##_##opt; \
65 #define PUT_PIXELS_PROTOTYPES2(bd, opt) \
66 void bf(ff_vvc_put_pixels, bd, opt)(int16_t *dst, \
67 const uint8_t *_src, const ptrdiff_t _src_stride, \
68 const int height, const int8_t *hf, const int8_t *vf, const int width);
73 #define PEL_FUNC(dst, C, idx1, idx2, a) \
75 for (int w = 1; w < 7; w++) \
76 c->inter.dst[C][w][idx1][idx2] = a; \
79 #define FUNCS(C, opt) \
80 PEL_FUNC(put, C, 0, 0, ff_vvc_put_pixels_8_##opt); \
91 vlenb = ff_get_rv_vlenb();
95 c->inter.avg = ff_vvc_avg_8_rvv_256;
96 # if (__riscv_xlen == 64)
97 c->inter.w_avg = ff_vvc_w_avg_8_rvv_256;
108 }
else if (vlenb >= 16) {
111 c->inter.avg = ff_vvc_avg_8_rvv_128;
112 # if (__riscv_xlen == 64)
113 c->inter.w_avg = ff_vvc_w_avg_8_rvv_128;
#define AVG_PROTOTYPES(bd, opt)
#define PUT_PIXELS_PROTOTYPES2(bd, opt)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define DMVR_PROTOTYPES(bd, opt)
#define AV_CPU_FLAG_RVB
B (bit manipulations)
int ff_vvc_sad_rvv_256(const int16_t *src0, const int16_t *src1, int dx, int dy, int block_w, int block_h)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
#define DMVR_INIT(bd, opt)
#define AV_CPU_FLAG_RVV_I32
Vectors of 8/16/32-bit int's */.
int ff_vvc_sad_rvv_128(const int16_t *src0, const int16_t *src1, int dx, int dy, int block_w, int block_h)
void ff_vvc_dsp_init_riscv(VVCDSPContext *const c, const int bd)
#define flags(name, subs,...)