OLD | NEW |
1 /* pngrtran.c - transforms the data in a row for PNG readers | 1 /* pngrtran.c - transforms the data in a row for PNG readers |
2 * | 2 * |
3 * Last changed in libpng 1.6.2 [April 25, 2013] | 3 * Last changed in libpng 1.6.2 [April 25, 2013] |
4 * Copyright (c) 1998-2013 Glenn Randers-Pehrson | 4 * Copyright (c) 1998-2013 Glenn Randers-Pehrson |
5 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | 5 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) |
6 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | 6 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) |
7 * | 7 * |
8 * This code is released under the libpng license. | 8 * This code is released under the libpng license. |
9 * For conditions of distribution and use, see the disclaimer | 9 * For conditions of distribution and use, see the disclaimer |
10 * and license in png.h | 10 * and license in png.h |
(...skipping 5082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5093 *(rp ) = (png_byte)((red >> 8) & 0xff); | 5093 *(rp ) = (png_byte)((red >> 8) & 0xff); |
5094 *(rp + 1) = (png_byte)(red & 0xff); | 5094 *(rp + 1) = (png_byte)(red & 0xff); |
5095 *(rp + 4) = (png_byte)((blue >> 8) & 0xff); | 5095 *(rp + 4) = (png_byte)((blue >> 8) & 0xff); |
5096 *(rp + 5) = (png_byte)(blue & 0xff); | 5096 *(rp + 5) = (png_byte)(blue & 0xff); |
5097 } | 5097 } |
5098 } | 5098 } |
5099 } | 5099 } |
5100 } | 5100 } |
5101 #endif /* PNG_MNG_FEATURES_SUPPORTED */ | 5101 #endif /* PNG_MNG_FEATURES_SUPPORTED */ |
5102 #endif /* PNG_READ_SUPPORTED */ | 5102 #endif /* PNG_READ_SUPPORTED */ |
OLD | NEW |