History

avcodec/x86/vvc/dsp_init: Make ff_vvc_apply_bdof_##bd##_avx2 static

These wrappers around ff_vvc_apply_bdof_avx2() are only used in dsp_init.c.

Andreas Rheinhardt committed 1 year ago

Commit ed37a8f1 parent 9ba6f991 file · +6 −15Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/x86/vvc/dsp_init.c+6−15
@@ -71,20 +71,13 @@ DMVR_PROTOTYPES( 8, avx2) · 70 unmodified lines
71DMVR_PROTOTYPES(10, avx2)71DMVR_PROTOTYPES(10, avx2)
72DMVR_PROTOTYPES(12, avx2)72DMVR_PROTOTYPES(12, avx2)
73 73
74#define OF_PROTOTYPES(bd, opt) \
75void ff_vvc_apply_bdof_##bd##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
76 const int16_t *src0, const int16_t *src1, int w, int h); \
77
78OF_PROTOTYPES( 8, avx2)
79OF_PROTOTYPES(10, avx2)
80OF_PROTOTYPES(12, avx2)
81
82#if ARCH_X86_64 && HAVE_AVX2_EXTERNAL74#if ARCH_X86_64 && HAVE_AVX2_EXTERNAL
83void ff_vvc_apply_bdof_avx2(uint8_t *dst, ptrdiff_t dst_stride, \75void ff_vvc_apply_bdof_avx2(uint8_t *dst, ptrdiff_t dst_stride,
84 const int16_t *src0, const int16_t *src1, int w, int h, int pixel_max); \76 const int16_t *src0, const int16_t *src1,
77 int w, int h, int pixel_max);
85 78
86#define OF_FUNC(bd, opt) \79#define OF_FUNC(bd, opt) \
87void ff_vvc_apply_bdof_##bd##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \80static void vvc_apply_bdof_##bd##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
88 const int16_t *src0, const int16_t *src1, int w, int h) \81 const int16_t *src0, const int16_t *src1, int w, int h) \
89{ \82{ \
90 ff_vvc_apply_bdof##_##opt(dst, dst_stride, src0, src1, w, h, (1 << bd) - 1); \83 ff_vvc_apply_bdof##_##opt(dst, dst_stride, src0, src1, w, h, (1 << bd) - 1); \
@@ -93,6 +86,8 @@ void ff_vvc_apply_bdof_##bd##_##opt(uint8_t *dst, ptrdiff_t dst_stride, · 2 unmodified lines
93OF_FUNC( 8, avx2)86OF_FUNC( 8, avx2)
94OF_FUNC(10, avx2)87OF_FUNC(10, avx2)
95OF_FUNC(12, avx2)88OF_FUNC(12, avx2)
89
90#define OF_INIT(bd) c->inter.apply_bdof = vvc_apply_bdof_##bd##_avx2
96#endif91#endif
97 92
98#define ALF_BPC_PROTOTYPES(bpc, opt) \93#define ALF_BPC_PROTOTYPES(bpc, opt) \
@@ -321,10 +316,6 @@ ALF_FUNCS(16, 12, avx2) · 222 unmodified lines
321 c->inter.dmvr[1][1] = ff_vvc_dmvr_hv_##bd##_avx2; \316 c->inter.dmvr[1][1] = ff_vvc_dmvr_hv_##bd##_avx2; \
322} while (0)317} while (0)
323 318
324#define OF_INIT(bd) do { \
325 c->inter.apply_bdof = ff_vvc_apply_bdof_##bd##_avx2; \
326} while (0)
327
328#define ALF_INIT(bd) do { \319#define ALF_INIT(bd) do { \
329 c->alf.filter[LUMA] = ff_vvc_alf_filter_luma_##bd##_avx2; \320 c->alf.filter[LUMA] = ff_vvc_alf_filter_luma_##bd##_avx2; \
330 c->alf.filter[CHROMA] = ff_vvc_alf_filter_chroma_##bd##_avx2; \321 c->alf.filter[CHROMA] = ff_vvc_alf_filter_chroma_##bd##_avx2; \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t