History

avcodec/x86/vvc: add prototypes for OF functions

And wrap the implemtation in preprocessor checks. Should fix ticket #11282.

James Almer committed 2 years ago

Commit 9ec042c1 parent 1e5f24d1 file · +15 −5Browse files

Unified · Split

libavcodec/x86/vvc/vvcdsp_init.c+15−5
@@ -104,19 +104,29 @@ DMVR_PROTOTYPES( 8, avx2) · 103 unmodified lines
104DMVR_PROTOTYPES(10, avx2)104DMVR_PROTOTYPES(10, avx2)
105DMVR_PROTOTYPES(12, avx2)105DMVR_PROTOTYPES(12, avx2)
106 106
107#define OF_PROTOTYPES(bd, opt) \
108void ff_vvc_apply_bdof_##bd##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
109 const int16_t *src0, const int16_t *src1, int w, int h); \
110
111OF_PROTOTYPES( 8, avx2)
112OF_PROTOTYPES(10, avx2)
113OF_PROTOTYPES(12, avx2)
114
115#if ARCH_X86_64 && HAVE_AVX2_EXTERNAL
107void ff_vvc_apply_bdof_avx2(uint8_t *dst, ptrdiff_t dst_stride, \116void ff_vvc_apply_bdof_avx2(uint8_t *dst, ptrdiff_t dst_stride, \
108 const int16_t *src0, const int16_t *src1, int w, int h, int pixel_max); \117 const int16_t *src0, const int16_t *src1, int w, int h, int pixel_max); \
109 118
110#define OF_PROTOTYPES(bd, opt) \119#define OF_FUNC(bd, opt) \
111static void ff_vvc_apply_bdof_##bd##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \120void ff_vvc_apply_bdof_##bd##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
112 const int16_t *src0, const int16_t *src1, int w, int h) \121 const int16_t *src0, const int16_t *src1, int w, int h) \
113{ \122{ \
114 ff_vvc_apply_bdof##_##opt(dst, dst_stride, src0, src1, w, h, (1 << bd) - 1); \123 ff_vvc_apply_bdof##_##opt(dst, dst_stride, src0, src1, w, h, (1 << bd) - 1); \
115} \124} \
116 125
117OF_PROTOTYPES( 8, avx2)126OF_FUNC( 8, avx2)
118OF_PROTOTYPES(10, avx2)127OF_FUNC(10, avx2)
119OF_PROTOTYPES(12, avx2)128OF_FUNC(12, avx2)
129#endif
120 130
121#define ALF_BPC_PROTOTYPES(bpc, opt) \131#define ALF_BPC_PROTOTYPES(bpc, opt) \
122void BF(ff_vvc_alf_filter_luma, bpc, opt)(uint8_t *dst, ptrdiff_t dst_stride, \132void BF(ff_vvc_alf_filter_luma, bpc, opt)(uint8_t *dst, ptrdiff_t dst_stride, \

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