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
7171 DMVR_PROTOTYPES(10, avx2)
7272 DMVR_PROTOTYPES(12, avx2)
7373
74−#define OF_PROTOTYPES(bd, opt) \
75−void 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−
78−OF_PROTOTYPES( 8, avx2)
79−OF_PROTOTYPES(10, avx2)
80−OF_PROTOTYPES(12, avx2)
81−
8274 #if ARCH_X86_64 && HAVE_AVX2_EXTERNAL
83−void 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); \
75+void ff_vvc_apply_bdof_avx2(uint8_t *dst, ptrdiff_t dst_stride,
76+ const int16_t *src0, const int16_t *src1,
77+ int w, int h, int pixel_max);
8578
8679 #define OF_FUNC(bd, opt) \
87−void ff_vvc_apply_bdof_##bd##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
80+static void vvc_apply_bdof_##bd##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
8881 const int16_t *src0, const int16_t *src1, int w, int h) \
8982 { \
9083 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
9386 OF_FUNC( 8, avx2)
9487 OF_FUNC(10, avx2)
9588 OF_FUNC(12, avx2)
89+
90+#define OF_INIT(bd) c->inter.apply_bdof = vvc_apply_bdof_##bd##_avx2
9691 #endif
9792
9893 #define ALF_BPC_PROTOTYPES(bpc, opt) \
@@ -321,10 +316,6 @@ ALF_FUNCS(16, 12, avx2) · 222 unmodified lines
321316 c->inter.dmvr[1][1] = ff_vvc_dmvr_hv_##bd##_avx2; \
322317 } while (0)
323318
324−#define OF_INIT(bd) do { \
325− c->inter.apply_bdof = ff_vvc_apply_bdof_##bd##_avx2; \
326−} while (0)
327−
328319 #define ALF_INIT(bd) do { \
329320 c->alf.filter[LUMA] = ff_vvc_alf_filter_luma_##bd##_avx2; \
330321 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