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) diff --git a/arm/filter_neon.S b/arm/filter_neon.S index 9ce04d3be..4aa500cd7 100644 --- a/arm/filter_neon.S +++ b/arm/filter_neon.S @@ -3,6 +3,7 @@ * * Copyright (c) 2011 Glenn Randers-Pehrson * Written by Mans Rullgard, 2011. + * Last changed in libpng 1.5.7 [December 15, 2011] * * This code is released under the libpng license. * For conditions of distribution and use, see the disclaimer