|
@@ -303,7 +303,7 @@ static int GetYUVPlanes(int width, int height, Uint32 format, const void *yuv, i
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
static SDL_bool SDL_TARGETING("sse2") yuv_rgb_sse(
|
|
|
Uint32 src_format, Uint32 dst_format,
|
|
|
Uint32 width, Uint32 height,
|
|
@@ -422,7 +422,7 @@ static SDL_bool yuv_rgb_sse(
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-#if HAVE_LSX_INTRINSICS
|
|
|
+#if SDL_LSX_INTRINSICS
|
|
|
static SDL_bool yuv_rgb_lsx(
|
|
|
Uint32 src_format, Uint32 dst_format,
|
|
|
Uint32 width, Uint32 height,
|
|
@@ -1122,7 +1122,7 @@ static int SDL_ConvertPixels_SwapUVPlanes(int width, int height, const void *src
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
static int SDL_TARGETING("sse2") SDL_ConvertPixels_PackUVPlanes_to_NV_SSE2(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch, SDL_bool reverseUV)
|
|
|
{
|
|
|
int x, y;
|
|
@@ -1192,7 +1192,7 @@ static int SDL_TARGETING("sse2") SDL_ConvertPixels_PackUVPlanes_to_NV_SSE2(int w
|
|
|
|
|
|
static int SDL_ConvertPixels_PackUVPlanes_to_NV(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch, SDL_bool reverseUV)
|
|
|
{
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
if (SDL_HasSSE2()) {
|
|
|
return SDL_ConvertPixels_PackUVPlanes_to_NV_SSE2(width, height, src, src_pitch, dst, dst_pitch, reverseUV);
|
|
|
} else
|
|
@@ -1251,7 +1251,7 @@ static int SDL_ConvertPixels_PackUVPlanes_to_NV(int width, int height, const voi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
static int SDL_TARGETING("sse2") SDL_ConvertPixels_SplitNV_to_UVPlanes_SSE2(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch, SDL_bool reverseUV)
|
|
|
{
|
|
|
int x, y;
|
|
@@ -1326,7 +1326,7 @@ static int SDL_TARGETING("sse2") SDL_ConvertPixels_SplitNV_to_UVPlanes_SSE2(int
|
|
|
|
|
|
static int SDL_ConvertPixels_SplitNV_to_UVPlanes(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch, SDL_bool reverseUV)
|
|
|
{
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
if (SDL_HasSSE2()) {
|
|
|
return SDL_ConvertPixels_SplitNV_to_UVPlanes_SSE2(width, height, src, src_pitch, dst, dst_pitch, reverseUV);
|
|
|
} else
|
|
@@ -1385,7 +1385,7 @@ static int SDL_ConvertPixels_SplitNV_to_UVPlanes(int width, int height, const vo
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
static int SDL_TARGETING("sse2") SDL_ConvertPixels_SwapNV_SSE2(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
|
|
|
{
|
|
|
int x, y;
|
|
@@ -1429,7 +1429,7 @@ static int SDL_TARGETING("sse2") SDL_ConvertPixels_SwapNV_SSE2(int width, int he
|
|
|
|
|
|
static int SDL_ConvertPixels_SwapNV(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
|
|
|
{
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
if (SDL_HasSSE2()) {
|
|
|
return SDL_ConvertPixels_SwapNV_SSE2(width, height, src, src_pitch, dst, dst_pitch);
|
|
|
} else
|
|
@@ -1536,7 +1536,7 @@ static int SDL_ConvertPixels_Planar2x2_to_Planar2x2(int width, int height,
|
|
|
SDL_GetPixelFormatName(dst_format));
|
|
|
}
|
|
|
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
#define PACKED4_TO_PACKED4_ROW_SSE2(shuffle) \
|
|
|
while (x >= 4) { \
|
|
|
__m128i yuv = _mm_loadu_si128((__m128i *)srcYUV); \
|
|
@@ -1766,7 +1766,7 @@ static int SDL_TARGETING("sse2") SDL_ConvertPixels_YVYU_to_UYVY_SSE2(int width,
|
|
|
|
|
|
static int SDL_ConvertPixels_YUY2_to_UYVY(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
|
|
|
{
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
if (SDL_HasSSE2()) {
|
|
|
return SDL_ConvertPixels_YUY2_to_UYVY_SSE2(width, height, src, src_pitch, dst, dst_pitch);
|
|
|
} else
|
|
@@ -1806,7 +1806,7 @@ static int SDL_ConvertPixels_YUY2_to_UYVY(int width, int height, const void *src
|
|
|
|
|
|
static int SDL_ConvertPixels_YUY2_to_YVYU(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
|
|
|
{
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
if (SDL_HasSSE2()) {
|
|
|
return SDL_ConvertPixels_YUY2_to_YVYU_SSE2(width, height, src, src_pitch, dst, dst_pitch);
|
|
|
} else
|
|
@@ -1846,7 +1846,7 @@ static int SDL_ConvertPixels_YUY2_to_YVYU(int width, int height, const void *src
|
|
|
|
|
|
static int SDL_ConvertPixels_UYVY_to_YUY2(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
|
|
|
{
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
if (SDL_HasSSE2()) {
|
|
|
return SDL_ConvertPixels_UYVY_to_YUY2_SSE2(width, height, src, src_pitch, dst, dst_pitch);
|
|
|
} else
|
|
@@ -1886,7 +1886,7 @@ static int SDL_ConvertPixels_UYVY_to_YUY2(int width, int height, const void *src
|
|
|
|
|
|
static int SDL_ConvertPixels_UYVY_to_YVYU(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
|
|
|
{
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
if (SDL_HasSSE2()) {
|
|
|
return SDL_ConvertPixels_UYVY_to_YVYU_SSE2(width, height, src, src_pitch, dst, dst_pitch);
|
|
|
} else
|
|
@@ -1926,7 +1926,7 @@ static int SDL_ConvertPixels_UYVY_to_YVYU(int width, int height, const void *src
|
|
|
|
|
|
static int SDL_ConvertPixels_YVYU_to_YUY2(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
|
|
|
{
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
if (SDL_HasSSE2()) {
|
|
|
return SDL_ConvertPixels_YVYU_to_YUY2_SSE2(width, height, src, src_pitch, dst, dst_pitch);
|
|
|
} else
|
|
@@ -1966,7 +1966,7 @@ static int SDL_ConvertPixels_YVYU_to_YUY2(int width, int height, const void *src
|
|
|
|
|
|
static int SDL_ConvertPixels_YVYU_to_UYVY(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
|
|
|
{
|
|
|
-#if HAVE_SSE2_INTRINSICS
|
|
|
+#if SDL_SSE2_INTRINSICS
|
|
|
if (SDL_HasSSE2()) {
|
|
|
return SDL_ConvertPixels_YVYU_to_UYVY_SSE2(width, height, src, src_pitch, dst, dst_pitch);
|
|
|
} else
|