INIT_XMM ssse3
RGB24_FUNCS 11, 13
+%if HAVE_AVX
INIT_XMM avx
RGB24_FUNCS 11, 13
+%endif
; %1 = nr. of XMM registers
; %2-5 = rgba, bgra, argb or abgr (in individual characters)
INIT_XMM sse2
RGB32_FUNCS 8, 12
+%if HAVE_AVX
INIT_XMM avx
RGB32_FUNCS 8, 12
+%endif
;-----------------------------------------------------------------------------
; YUYV/UYVY/NV12/NV21 packed pixel shuffling.
NVXX_TO_UV_FN 5, nv12
NVXX_TO_UV_FN 5, nv21
-%ifdef HAVE_AVX
+%if HAVE_AVX
INIT_XMM avx
; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but
; that's not faster in practice