diff options
author | John Bowler <jbowler@acm.org> | 2012-12-15 07:55:54 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2012-12-15 07:55:54 -0600 |
commit | 6cf32b460f649a7d8731321872de887491570226 (patch) | |
tree | df83dcdc9835549e8a1beff5f3f7afb477d7dd84 /arm/arm_init.c | |
parent | f758d6c8137fa3fda76620982feee04eb3773fe0 (diff) | |
download | libpng-6cf32b460f649a7d8731321872de887491570226.tar.gz |
[libpng16] Rearranged the ARM-NEON optimizations: Isolated the machine specific
code to the hardware subdirectory and added comments to pngrutil.c so that
implementors of other optimizations know what to do.
Diffstat (limited to 'arm/arm_init.c')
-rw-r--r-- | arm/arm_init.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arm/arm_init.c b/arm/arm_init.c index 6b0a925f2..8925f352f 100644 --- a/arm/arm_init.c +++ b/arm/arm_init.c @@ -1,8 +1,9 @@ -/* filter_neon.S - NEON optimised filter functions +/* arm_init.c - NEON optimised filter functions * - * Copyright (c) 2011 Glenn Randers-Pehrson + * Copyright (c) 2012 Glenn Randers-Pehrson * Written by Mans Rullgard, 2011. + * Last changed in libpng 1.5.14 [(PENDING RELEASE)] * * This code is released under the libpng license. * For conditions of distribution and use, see the disclaimer @@ -50,6 +51,17 @@ png_init_filter_functions_neon(png_structp pp, unsigned int bpp) return; #endif + /* IMPORTANT: any new external functions used here must be declared using + * PNG_INTERNAL_FUNCTION in ../pngpriv.h. This is required so that the + * 'prefix' option to configure works: + * + * ./configure --with-libpng-prefix=foobar_ + * + * Verify you have got this right by running the above command, doing a build + * and examining pngprefix.h; it must contain a #define for every external + * function you add. (Notice that this happens automatically for the + * initialization function.) + */ pp->read_filter[PNG_FILTER_VALUE_UP-1] = png_read_filter_row_up_neon; if (bpp == 3) |