Skip to content

Commit a08b29d

Browse files
author
Phil.Wang
committed
Enable NEON optimized image rotate for ARM v7-A
NEON opimized image rotate was disabled by accident. This patch enables it again. Fix issue #115. Change-Id: I4aa977de8534557d98a707cc9504aac94805d571
1 parent 1d409d2 commit a08b29d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmake/FunctionSwitch.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@ if(${NE10_TARGET_ARCH} STREQUAL "armv7")
4343
add_definitions(-DENABLE_NE10_PHYSICS_RELATIVE_V_VEC2F_NEON)
4444
add_definitions(-DENABLE_NE10_PHYSICS_APPLY_IMPULSE_VEC2F_NEON)
4545
endif()
46+
if(NE10_ENABLE_IMGPROC)
47+
add_definitions(-DENABLE_NE10_IMG_ROTATE_RGBA_NEON)
48+
endif()
4649
endif()
4750
endif()

modules/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ if(NE10_ENABLE_IMGPROC)
276276
)
277277

278278
if(${NE10_TARGET_ARCH} STREQUAL "armv7")
279-
# Following definition is only available under armv7.
280-
add_definitions(-DENABLE_NE10_IMG_ROTATE_RGBA_NEON)
281279
# Add image processing NEON files.
282280
set(NE10_IMGPROC_NEON_SRCS
283281
${PROJECT_SOURCE_DIR}/modules/imgproc/NE10_rotate.neon.s

0 commit comments

Comments
 (0)