Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
90a3d227
Commit
90a3d227
authored
Aug 28, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable libpng NEON optimization in Android build for armeabi-v7a with NEON target
parent
c6d1421f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
CMakeLists.txt
3rdparty/libpng/CMakeLists.txt
+11
-1
pngrutil.c
3rdparty/libpng/pngrutil.c
+2
-2
No files found.
3rdparty/libpng/CMakeLists.txt
View file @
90a3d227
...
...
@@ -2,13 +2,23 @@
# CMake file for libpng. See root CMakeLists.txt
#
# ----------------------------------------------------------------------------
project
(
${
PNG_LIBRARY
}
)
if
(
NEON
)
project
(
${
PNG_LIBRARY
}
ASM
)
else
()
project
(
${
PNG_LIBRARY
}
)
endif
()
ocv_include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
${
ZLIB_INCLUDE_DIR
}
)
file
(
GLOB lib_srcs *.c
)
file
(
GLOB lib_hdrs *.h
)
if
(
NEON
)
list
(
APPEND lib_srcs arm/filter_neon.S
)
add_definitions
(
-DPNG_ARM_NEON
)
endif
()
# ----------------------------------------------------------------------------------
# Define the library target:
# ----------------------------------------------------------------------------------
...
...
3rdparty/libpng/pngrutil.c
View file @
90a3d227
...
...
@@ -3662,7 +3662,7 @@ png_read_filter_row_paeth_multibyte_pixel(png_row_infop row_info, png_bytep row,
#ifdef PNG_ARM_NEON
#if
def __linux
__
#if
defined __linux__ && !defined __ANDROID
__
#include <stdio.h>
#include <elf.h>
#include <asm/hwcap.h>
...
...
@@ -3695,7 +3695,7 @@ static int png_have_hwcap(unsigned cap)
static
void
png_init_filter_functions_neon
(
png_structp
pp
,
unsigned
int
bpp
)
{
#if
def __linux
__
#if
defined __linux__ && !defined __ANDROID
__
if
(
!
png_have_hwcap
(
HWCAP_NEON
))
return
;
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment