libscaler: properly guard M2M1SHOT
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos.git] / libscaler / libscaler.cpp
index a542b5841feb79265cce12c62fbe1b5a75ffd027..67d1a138e18d1894575557e2f8ff1ccddf3577a7 100644 (file)
@@ -40,6 +40,8 @@
 #include "libscaler-common.h"
 #include "libscalerblend-v4l2.h"
 #include "libscaler-v4l2.h"
+
+#ifdef SCALER_USE_M2M1SHOT
 #include "libscaler-m2m1shot.h"
 
 static bool find_pixel(unsigned int sc_pxfmt, unsigned int __out *v4l2_pxfmt)
@@ -117,7 +119,6 @@ bool exynos_sc_copy_pixels(exynos_sc_pxinfo *pxinfo, int dev_num)
     return sc.Run();
 }
 
-#ifdef SCALER_USE_M2M1SHOT
 typedef CScalerM2M1SHOT CScalerNonStream;
 #else
 typedef CScalerV4L2 CScalerNonStream;