1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
16 'ycbcr_to_rgb565.cpp',
23 if CONFIG['INTEL_ARCHITECTURE']:
24 # These files use MMX and SSE2 intrinsics, so they need special compile flags
26 SOURCES += ['yuv_convert_sse2.cpp']
27 SOURCES['yuv_convert_sse2.cpp'].flags += CONFIG['SSE2_FLAGS']
29 # MSVC doesn't support MMX when targeting AMD64.
30 if CONFIG['_MSC_VER']:
31 if CONFIG['OS_TEST'] != 'x86_64':
33 'yuv_convert_mmx.cpp',
36 SOURCES += ['yuv_convert_mmx.cpp']
37 SOURCES['yuv_convert_mmx.cpp'].flags += CONFIG['MMX_FLAGS']
39 if CONFIG['_MSC_VER']:
40 if CONFIG['OS_TEST'] == 'x86_64':
41 if CONFIG['_MSC_VER'] == '1400':
42 # VC8 doesn't support some SSE2 built-in functions
54 elif CONFIG['OS_ARCH'] in ('Linux', 'SunOS', 'Darwin', 'DragonFly',
55 'FreeBSD', 'NetBSD', 'OpenBSD'):
64 if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
69 'yuv_convert_arm.cpp',