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);
44 int alpha,
int beta, int8_t *tc0);
46 int alpha,
int beta, int8_t *tc0);
51 #define IDCT_DEPTH(depth) \
52 void ff_h264_idct_add_##depth##_rvv(uint8_t *d, int16_t *s, int stride); \
53 void ff_h264_idct8_add_##depth##_rvv(uint8_t *d, int16_t *s, int stride); \
54 void ff_h264_idct4_dc_add_##depth##_rvv(uint8_t *, int16_t *, int); \
55 void ff_h264_idct8_dc_add_##depth##_rvv(uint8_t *, int16_t *, int); \
56 void ff_h264_idct_add16_##depth##_rvv(uint8_t *d, const int *soffset, \
57 int16_t *s, int stride, \
58 const uint8_t nnzc[5 * 8]); \
59 void ff_h264_idct_add16intra_##depth##_rvv(uint8_t *d, const int *soffset, \
60 int16_t *s, int stride, \
61 const uint8_t nnzc[5 * 8]); \
62 void ff_h264_idct8_add4_##depth##_rvv(uint8_t *d, const int *soffset, \
63 int16_t *s, int stride, \
64 const uint8_t nnzc[5 * 8]); \
65 void ff_h264_idct4_add8_##depth##_rvv(uint8_t **d, const int *soffset, \
66 int16_t *s, int stride, \
67 const uint8_t nnzc[5 * 8]); \
68 void ff_h264_idct4_add8_422_##depth##_rvv(uint8_t **d, const int *soffset, \
69 int16_t *s, int stride, \
70 const uint8_t nnzc[5 * 8]);
88 const int chroma_format_idc)
130 if (chroma_format_idc <= 1) {
143 # if __riscv_xlen == 64
145 if (chroma_format_idc <= 1)
159 #define IDCT_DEPTH(depth) \
160 if (bit_depth == depth) { \
162 dsp->h264_idct_add = ff_h264_idct_add_##depth##_rvv; \
163 if (flags & AV_CPU_FLAG_RVB) \
164 dsp->h264_idct8_add = ff_h264_idct8_add_##depth##_rvv; \
165 if (zvl128b && (flags & AV_CPU_FLAG_RVB)) { \
166 dsp->h264_idct_dc_add = ff_h264_idct4_dc_add_##depth##_rvv; \
167 dsp->h264_idct8_dc_add = ff_h264_idct8_dc_add_##depth##_rvv; \
168 dsp->h264_idct_add16 = ff_h264_idct_add16_##depth##_rvv; \
169 dsp->h264_idct_add16intra = \
170 ff_h264_idct_add16intra_##depth##_rvv; \
171 if (__riscv_xlen == 64) { \
172 if (chroma_format_idc <= 1) \
173 dsp->h264_idct_add8 = \
174 ff_h264_idct4_add8_##depth##_rvv; \
176 dsp->h264_idct_add8 = \
177 ff_h264_idct4_add8_422_##depth##_rvv; \
180 if (__riscv_xlen == 64 && (flags & AV_CPU_FLAG_RVB)) \
181 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)
#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_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
static bool ff_rv_vlen_least(unsigned int bits)
Checks that the vector bit-size is at least the given value.
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_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)
int(* startcode_find_candidate)(const uint8_t *buf, int size)
Search buf from the start for up to size bytes.
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_add_pixels8_16_rvv(uint8_t *dst, int16_t *block, int stride)
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]
#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_h_loop_filter_chroma)(uint8_t *pix, ptrdiff_t stride, int alpha, int beta, int8_t *tc0)
const struct @213 ff_h264_weight_funcs_8_rvv[]
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 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(* h264_idct_add)(uint8_t *dst, int16_t *block, int stride)