Fix SSE instricts ifdef
This commit is contained in:
@@ -8,8 +8,10 @@ int THUMB_SIZE_BORDER = 138;
|
|||||||
int THUMB_SIZE_BORDER_Y = 158;
|
int THUMB_SIZE_BORDER_Y = 158;
|
||||||
double SATURATION = 0.95;
|
double SATURATION = 0.95;
|
||||||
|
|
||||||
|
#ifdef __SSE2__
|
||||||
template<typename T, int ch>
|
template<typename T, int ch>
|
||||||
void fromPlanarSSE(const void *in, void *out, size_t count);
|
void fromPlanarSSE(const void *in, void *out, size_t count);
|
||||||
|
#endif
|
||||||
|
|
||||||
size_t RawImage::typeSize(RawImage::DataType type)
|
size_t RawImage::typeSize(RawImage::DataType type)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#include "rawimage.h"
|
#include "rawimage.h"
|
||||||
|
|
||||||
|
#ifdef __SSE2__
|
||||||
#include <x86intrin.h>
|
#include <x86intrin.h>
|
||||||
|
|
||||||
template<typename T, int ch>
|
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<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, 3>(const void *in, void *out, size_t count);
|
||||||
template void fromPlanarSSE<float, 4>(const void *in, void *out, size_t count);
|
template void fromPlanarSSE<float, 4>(const void *in, void *out, size_t count);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user