Go to the documentation of this file.
27 #define VVC_SIGN(v) (v < 0 ? -1 : !!v)
31 const int padded_width =
width + 2;
33 for (
int y = 0; y <
height; y++) {
34 dst = _dst + y * dst_stride;
35 for (
int x = 0; x <
width; x++) {
43 memcpy(_dst - dst_stride, _dst, padded_width *
sizeof(int16_t));
45 _dst += dst_stride *
height;
46 memcpy(_dst, _dst - dst_stride, padded_width *
sizeof(int16_t));
50 const int block_w,
const int block_h)
57 for (
int y = 0; y < block_h; y += 2) {
58 for (
int x = 0; x < block_w; x++) {
78 #define PROF_BORDER_EXT 1
79 #define PROF_BLOCK_SIZE (AFFINE_MIN_BLOCK_SIZE + PROF_BORDER_EXT * 2)
80 #define BDOF_BORDER_EXT 1
82 #define BDOF_PADDED_SIZE (16 + BDOF_BORDER_EXT * 2)
83 #define BDOF_BLOCK_SIZE 4
84 #define BDOF_GRADIENT_SIZE (BDOF_BLOCK_SIZE + BDOF_BORDER_EXT * 2)
101 #define FUNC(a, depth) a ## _ ## depth
103 #define VVC_DSP(depth) \
104 FUNC(ff_vvc_inter_dsp_init, depth)(&vvcdsp->inter); \
105 FUNC(ff_vvc_intra_dsp_init, depth)(&vvcdsp->intra); \
106 FUNC(ff_vvc_itx_dsp_init, depth)(&vvcdsp->itx); \
107 FUNC(ff_vvc_lmcs_dsp_init, depth)(&vvcdsp->lmcs); \
108 FUNC(ff_vvc_lf_dsp_init, depth)(&vvcdsp->lf); \
109 FUNC(ff_vvc_sao_dsp_init, depth)(&vvcdsp->sao); \
110 FUNC(ff_vvc_alf_dsp_init, depth)(&vvcdsp->alf); \
uint16_t top_array[6 *MAX_TB_SIZE+5]
static void bit_depth(AudioStatsContext *s, const uint64_t *const mask, uint8_t *depth)
static int vvc_sad(const int16_t *src0, const int16_t *src1, int dx, int dy, const int block_w, const int block_h)
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
void ff_vvc_dsp_init_x86(VVCDSPContext *hpc, const int bit_depth)
uint16_t filtered_top_array[6 *MAX_TB_SIZE+5]
uint16_t filtered_left_array[6 *MAX_TB_SIZE+5]
uint16_t left_array[6 *MAX_TB_SIZE+5]
void ff_vvc_dsp_init(VVCDSPContext *vvcdsp, int bit_depth)
static void av_always_inline pad_int16(int16_t *_dst, const ptrdiff_t dst_stride, const int width, const int height)