Fix SSE instricts ifdef

This commit is contained in:
2024-01-09 15:40:27 +01:00
parent ed5fc9c1c2
commit dae10182d1
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -8,8 +8,10 @@ int THUMB_SIZE_BORDER = 138;
int THUMB_SIZE_BORDER_Y = 158;
double SATURATION = 0.95;
#ifdef __SSE2__
template<typename T, int ch>
void fromPlanarSSE(const void *in, void *out, size_t count);
#endif
size_t RawImage::typeSize(RawImage::DataType type)
{
+4
View File
@@ -1,4 +1,6 @@
#include "rawimage.h"
#ifdef __SSE2__
#include <x86intrin.h>
template<typename T, int ch>
@@ -109,3 +111,5 @@ template void fromPlanarSSE<uint32_t, 3>(const void *in, void *out, size_t count
template void fromPlanarSSE<uint32_t, 4>(const void *in, void *out, size_t count);
template void fromPlanarSSE<float, 3>(const void *in, void *out, size_t count);
template void fromPlanarSSE<float, 4>(const void *in, void *out, size_t count);
#endif