You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/x86/vvc/dsp_init: Make avg wrappers static
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -42,21 +42,9 @@ void BF(ff_vvc_w_avg, bpc, opt)(uint8_t *dst, ptrdiff_t dst_stride,
|
|||||||
const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, \
|
const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, \
|
||||||
intptr_t denom, intptr_t w0, intptr_t w1, intptr_t o0, intptr_t o1, intptr_t pixel_max);
|
intptr_t denom, intptr_t w0, intptr_t w1, intptr_t o0, intptr_t o1, intptr_t pixel_max);
|
||||||
|
|
||||||
#define AVG_PROTOTYPES(bd, opt) \
|
|
||||||
void bf(ff_vvc_avg, bd, opt)(uint8_t *dst, ptrdiff_t dst_stride, \
|
|
||||||
const int16_t *src0, const int16_t *src1, int width, int height); \
|
|
||||||
void bf(ff_vvc_w_avg, bd, opt)(uint8_t *dst, ptrdiff_t dst_stride, \
|
|
||||||
const int16_t *src0, const int16_t *src1, int width, int height, \
|
|
||||||
int denom, int w0, int w1, int o0, int o1);
|
|
||||||
|
|
||||||
AVG_BPC_PROTOTYPES( 8, avx2)
|
AVG_BPC_PROTOTYPES( 8, avx2)
|
||||||
AVG_BPC_PROTOTYPES(16, avx2)
|
AVG_BPC_PROTOTYPES(16, avx2)
|
||||||
|
|
||||||
AVG_PROTOTYPES( 8, avx2)
|
|
||||||
AVG_PROTOTYPES(10, avx2)
|
|
||||||
AVG_PROTOTYPES(12, avx2)
|
|
||||||
|
|
||||||
|
|
||||||
#define DMVR_PROTOTYPES(bd, opt) \
|
#define DMVR_PROTOTYPES(bd, opt) \
|
||||||
void ff_vvc_dmvr_##bd##_##opt(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride, \
|
void ff_vvc_dmvr_##bd##_##opt(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride, \
|
||||||
int height, intptr_t mx, intptr_t my, int width); \
|
int height, intptr_t mx, intptr_t my, int width); \
|
||||||
@@ -183,12 +171,12 @@ FW_PUT_16BPC_AVX2(10)
|
|||||||
FW_PUT_16BPC_AVX2(12)
|
FW_PUT_16BPC_AVX2(12)
|
||||||
|
|
||||||
#define AVG_FUNCS(bpc, bd, opt) \
|
#define AVG_FUNCS(bpc, bd, opt) \
|
||||||
void bf(ff_vvc_avg, bd, opt)(uint8_t *dst, ptrdiff_t dst_stride, \
|
static void bf(vvc_avg, bd, opt)(uint8_t *dst, ptrdiff_t dst_stride, \
|
||||||
const int16_t *src0, const int16_t *src1, int width, int height) \
|
const int16_t *src0, const int16_t *src1, int width, int height) \
|
||||||
{ \
|
{ \
|
||||||
BF(ff_vvc_avg, bpc, opt)(dst, dst_stride, src0, src1, width, height, (1 << bd) - 1); \
|
BF(ff_vvc_avg, bpc, opt)(dst, dst_stride, src0, src1, width, height, (1 << bd) - 1); \
|
||||||
} \
|
} \
|
||||||
void bf(ff_vvc_w_avg, bd, opt)(uint8_t *dst, ptrdiff_t dst_stride, \
|
static void bf(vvc_w_avg, bd, opt)(uint8_t *dst, ptrdiff_t dst_stride, \
|
||||||
const int16_t *src0, const int16_t *src1, int width, int height, \
|
const int16_t *src0, const int16_t *src1, int width, int height, \
|
||||||
int denom, int w0, int w1, int o0, int o1) \
|
int denom, int w0, int w1, int o0, int o1) \
|
||||||
{ \
|
{ \
|
||||||
@@ -293,8 +281,8 @@ ALF_FUNCS(16, 12, avx2)
|
|||||||
MC_TAP_LINKS_16BPC_AVX2(CHROMA, 4, bd);
|
MC_TAP_LINKS_16BPC_AVX2(CHROMA, 4, bd);
|
||||||
|
|
||||||
#define AVG_INIT(bd, opt) do { \
|
#define AVG_INIT(bd, opt) do { \
|
||||||
c->inter.avg = bf(ff_vvc_avg, bd, opt); \
|
c->inter.avg = bf(vvc_avg, bd, opt); \
|
||||||
c->inter.w_avg = bf(ff_vvc_w_avg, bd, opt); \
|
c->inter.w_avg = bf(vvc_w_avg, bd, opt); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define DMVR_INIT(bd) do { \
|
#define DMVR_INIT(bd) do { \
|
||||||
|
Reference in New Issue
Block a user