Go to the documentation of this file.
38 int alpha,
int beta, int8_t *tc0);
40 int alpha,
int beta, int8_t *tc0);
42 int alpha,
int beta, int8_t *tc0);
50 int alpha,
int beta, int8_t *tc0);
52 int alpha,
int beta, int8_t *tc0);
64 #define IDCT_DEPTH(depth) \
65 void ff_h264_idct_add_##depth##_rvv(uint8_t *d, int16_t *s, int stride); \
66 void ff_h264_idct8_add_##depth##_rvv(uint8_t *d, int16_t *s, int stride); \
67 void ff_h264_idct4_dc_add_##depth##_rvv(uint8_t *, int16_t *, int); \
68 void ff_h264_idct8_dc_add_##depth##_rvv(uint8_t *, int16_t *, int); \
69 void ff_h264_idct_add16_##depth##_rvv(uint8_t *d, const int *soffset, \
70 int16_t *s, int stride, \
71 const uint8_t nnzc[5 * 8]); \
72 void ff_h264_idct_add16intra_##depth##_rvv(uint8_t *d, const int *soffset, \
73 int16_t *s, int stride, \
74 const uint8_t nnzc[5 * 8]); \
75 void ff_h264_idct8_add4_##depth##_rvv(uint8_t *d, const int *soffset, \
76 int16_t *s, int stride, \
77 const uint8_t nnzc[5 * 8]); \
78 void ff_h264_idct4_add8_##depth##_rvv(uint8_t **d, const int *soffset, \
79 int16_t *s, int stride, \
80 const uint8_t nnzc[5 * 8]); \
81 void ff_h264_idct4_add8_422_##depth##_rvv(uint8_t **d, const int *soffset, \
82 int16_t *s, int stride, \
83 const uint8_t nnzc[5 * 8]);
101 const int chroma_format_idc)
110 const bool zvl128b = ff_rv_vlen_least(128);
152 if (chroma_format_idc <= 1) {
169 # if __riscv_xlen == 64
171 if (chroma_format_idc <= 1)
185 #define IDCT_DEPTH(depth) \
186 if (bit_depth == depth) { \
188 dsp->h264_idct_add = ff_h264_idct_add_##depth##_rvv; \
189 if (flags & AV_CPU_FLAG_RVB) \
190 dsp->h264_idct8_add = ff_h264_idct8_add_##depth##_rvv; \
191 if (zvl128b && (flags & AV_CPU_FLAG_RVB)) { \
192 dsp->h264_idct_dc_add = ff_h264_idct4_dc_add_##depth##_rvv; \
193 dsp->h264_idct8_dc_add = ff_h264_idct8_dc_add_##depth##_rvv; \
194 dsp->h264_idct_add16 = ff_h264_idct_add16_##depth##_rvv; \
195 dsp->h264_idct_add16intra = \
196 ff_h264_idct_add16intra_##depth##_rvv; \
197 if (__riscv_xlen == 64) { \
198 if (chroma_format_idc <= 1) \
199 dsp->h264_idct_add8 = \
200 ff_h264_idct4_add8_##depth##_rvv; \
202 dsp->h264_idct_add8 = \
203 ff_h264_idct4_add8_422_##depth##_rvv; \
206 if (__riscv_xlen == 64 && (flags & AV_CPU_FLAG_RVB)) \
207 dsp->h264_idct8_add4 = ff_h264_idct8_add4_##depth##_rvv; \
void ff_h264_v_loop_filter_luma_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
const struct @214 ff_h264_weight_funcs_8_rvv[]
#define AV_CPU_FLAG_RVB_BASIC
Basic bit-manipulations.
void(* h264_idct_add8)(uint8_t **dst, const int *blockoffset, int16_t *block, int stride, const uint8_t nnzc[15 *8])
void ff_h264_add_pixels4_8_rvv(uint8_t *dst, int16_t *block, int stride)
void(* h264_biweight_func)(uint8_t *dst, uint8_t *src, ptrdiff_t stride, int height, int log2_denom, int weightd, int weights, int offset)
av_cold void ff_h264dsp_init_riscv(H264DSPContext *dsp, const int bit_depth, const int chroma_format_idc)
void ff_h264_h_loop_filter_luma_mbaff_intra_8_rvv(uint8_t *pix, ptrdiff_t s, int a, int b)
void ff_h264_v_loop_filter_chroma_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
void(* h264_add_pixels8_clear)(uint8_t *dst, int16_t *block, int stride)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
static void bit_depth(AudioStatsContext *s, const uint64_t *const mask, uint8_t *depth)
#define AV_CPU_FLAG_RVB
B (bit manipulations)
void(* h264_idct_add16)(uint8_t *dst, const int *blockoffset, int16_t *block, int stride, const uint8_t nnzc[5 *8])
void(* h264_v_loop_filter_chroma)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
const h264_weight_func weight
h264_biweight_func biweight_h264_pixels_tab[4]
int ff_startcode_find_candidate_rvv(const uint8_t *, int)
void ff_h264_h_loop_filter_luma_mbaff_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
void ff_h264_h_loop_filter_chroma_intra_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
void ff_h264_add_pixels4_16_rvv(uint8_t *dst, int16_t *block, int stride)
void(* h264_h_loop_filter_chroma_mbaff)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
void ff_h264_h_loop_filter_chroma_mbaff_intra_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
int(* startcode_find_candidate)(const uint8_t *buf, int size)
Search buf from the start for up to size bytes.
void(* h264_v_loop_filter_chroma_intra)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
void(* h264_idct8_dc_add)(uint8_t *dst, int16_t *block, int stride)
void(* h264_h_loop_filter_luma)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
void ff_h264_v_loop_filter_luma_intra_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
void(* h264_h_loop_filter_chroma_mbaff_intra)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
void ff_h264_add_pixels8_16_rvv(uint8_t *dst, int16_t *block, int stride)
void(* h264_h_loop_filter_luma_intra)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
Context for storing H.264 DSP functions.
void(* h264_h_loop_filter_luma_mbaff)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
void(* h264_weight_func)(uint8_t *block, ptrdiff_t stride, int height, int log2_denom, int weight, int offset)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
h264_weight_func weight_h264_pixels_tab[4]
void(* h264_h_loop_filter_chroma_intra)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
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_h264_h_loop_filter_luma_intra_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
#define AV_CPU_FLAG_RVV_I32
Vectors of 8/16/32-bit int's */.
void(* h264_idct8_add)(uint8_t *dst, int16_t *block, int stride)
void ff_h264_h_loop_filter_chroma_mbaff_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
const h264_biweight_func biweight
void(* h264_v_loop_filter_luma_intra)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
void(* h264_h_loop_filter_chroma)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
void(* h264_idct8_add4)(uint8_t *dst, const int *blockoffset, int16_t *block, int stride, const uint8_t nnzc[5 *8])
void(* h264_idct_dc_add)(uint8_t *dst, int16_t *block, int stride)
void(* h264_add_pixels4_clear)(uint8_t *dst, int16_t *block, int stride)
void ff_h264_h_loop_filter_luma_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
void(* h264_h_loop_filter_luma_mbaff_intra)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
void ff_h264_h_loop_filter_chroma_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
void(* h264_idct_add16intra)(uint8_t *dst, const int *blockoffset, int16_t *block, int stride, const uint8_t nnzc[5 *8])
void(* h264_v_loop_filter_luma)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
static const int16_t alpha[]
void ff_h264_add_pixels8_8_rvv(uint8_t *dst, int16_t *block, int stride)
int ff_startcode_find_candidate_rvb(const uint8_t *, int)
#define IDCT_DEPTH(depth)
#define flags(name, subs,...)
The exact code depends on how similar the blocks are and how related they are to the block
#define AV_CPU_FLAG_RVV_I64
Vectors of 64-bit int's */.
void ff_h264_v_loop_filter_chroma_intra_8_rvv(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)
void(* h264_idct_add)(uint8_t *dst, int16_t *block, int stride)