History

x86/vvc: Fix build error for arch x86_32

There were static functions which built for x86_32, but the simd functions they reference only available for x86_64.

Zhao Zhili committed 2 years ago

Commit 994368b1 parent c49001e1 file · +5 −0Browse files

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

Unified · Split

libavcodec/x86/vvc/vvcdsp_init.c+5−0
@@ -30,6 +30,8 @@ · 29 unmodified lines
3030 #include "libavcodec/vvc/dsp.h"
3131 #include "libavcodec/x86/h26x/h2656dsp.h"
3232
33+#if ARCH_X86_64
34+
3335 #define PUT_PROTOTYPE(name, depth, opt) \
3436 void ff_vvc_put_ ## name ## _ ## depth ## _##opt(int16_t *dst, const uint8_t *src, ptrdiff_t srcstride, int height, const int8_t *hf, const int8_t *vf, int width);
3537
@@ -356,6 +358,9 @@ int ff_vvc_sad_avx2(const int16_t *src0, const int16_t *src1, int dx, int dy, in · 320 unmodified lines
356358 #define SAD_INIT() c->inter.sad = ff_vvc_sad_avx2
357359 #endif
358360
361+
362+#endif // ARCH_X86_64
363+
359364 void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
360365 {
361366 #if ARCH_X86_64

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