forked from archlinuxarm/PKGBUILDs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
disable_neon_in_convert.diff
38 lines (38 loc) · 1.26 KB
/
disable_neon_in_convert.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- b/gfx/ycbcr/ycbcr_to_rgb565.cpp 2011-11-04 21:33:59.000000000 +0000
+++ a/gfx/ycbcr/ycbcr_to_rgb565.cpp 2012-01-18 10:28:15.216874884 +0000
@@ -508,7 +508,7 @@
source_uv_yoffs_q16 += 1<<(15+y_shift);
if (yuv_type != YV24) {
scale_row =
-# if defined(MOZILLA_MAY_SUPPORT_NEON)
+# if !defined(MOZILLA_MAY_SUPPORT_NEON)
supports_neon() ? ScaleYCbCr42xToRGB565_BilinearY_Row_NEON :
# endif
ScaleYCbCr42xToRGB565_BilinearY_Row_C;
@@ -580,7 +580,7 @@
// Very fast.
if (width <= 0 || height <= 0)
return true;
-# if defined(MOZILLA_MAY_SUPPORT_NEON)
+# if !defined(MOZILLA_MAY_SUPPORT_NEON)
if (filter != FILTER_NONE) {
int source_dx_q16;
int source_dy_q16;
@@ -647,7 +647,7 @@
int y_shift;
x_shift = yuv_type != YV24;
y_shift = yuv_type == YV12;
-# ifdef MOZILLA_MAY_SUPPORT_NEON
+# ifndef MOZILLA_MAY_SUPPORT_NEON
if (yuv_type != YV24 && supports_neon())
{
for (int i = 0; i < pic_height; i++) {
@@ -688,7 +688,7 @@
int pic_height,
YUVType yuv_type)
{
-# if defined(MOZILLA_MAY_SUPPORT_NEON)
+# if !defined(MOZILLA_MAY_SUPPORT_NEON)
return (yuv_type != YV24 && supports_neon());
# else
return false;