mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00

This implements a new chunk parse implementation that can be shared, it is currently shared by the progressive reader and the sequential one (not, yet, the writer). The patch also implements shared transform handling that is used throughout. Signed-off-by: John Bowler <jbowler@acm.org>
40 lines
2.3 KiB
C
40 lines
2.3 KiB
C
/* PNG CHUNK DESCRIPTIONS.
|
|
*
|
|
* If this list is changed in any way scripts/chunkhash.c must be rebuilt and
|
|
* run to regenerate the lookup functions for the tables described from this
|
|
* list.
|
|
*
|
|
* IDAT MUST be first in the list; it must have index '0'. The order of the
|
|
* remaining chunks comes from section 5.6 "Chunk ordering" in the ISO spec
|
|
* plus the ordering rules in the PNG extensions documnet.
|
|
*
|
|
* Keep PNG_CHUNK_BEGIN and PNG_CHUNK_END at the beginning and end.
|
|
*/
|
|
PNG_CHUNK_BEGIN(IDAT, 73, 68, 65, 84, within_IDAT, after_start)
|
|
PNG_CHUNK( IHDR, 73, 72, 68, 82, before_start, at_start)
|
|
PNG_CHUNK( cHRM, 99, 72, 82, 77, before_PLTE, after_start)
|
|
PNG_CHUNK( gAMA, 103, 65, 77, 65, before_PLTE, after_start)
|
|
PNG_CHUNK( iCCP, 105, 67, 67, 80, before_PLTE, after_start)
|
|
PNG_CHUNK( sBIT, 115, 66, 73, 84, before_PLTE, after_start)
|
|
PNG_CHUNK( sRGB, 115, 82, 71, 66, before_PLTE, after_start)
|
|
PNG_CHUNK( PLTE, 80, 76, 84, 69, before_PLTE, after_start)
|
|
PNG_CHUNK( bKGD, 98, 75, 71, 68, before_IDAT, after_PLTE)
|
|
PNG_CHUNK( hIST, 104, 73, 83, 84, before_IDAT, after_PLTE)
|
|
PNG_CHUNK( tRNS, 116, 82, 78, 83, before_IDAT, after_PLTE)
|
|
PNG_CHUNK( oFFs, 111, 70, 70, 115, before_IDAT, after_start)
|
|
PNG_CHUNK( pCAL, 112, 67, 65, 76, before_IDAT, after_start)
|
|
PNG_CHUNK( sCAL, 115, 67, 65, 76, before_IDAT, after_start)
|
|
PNG_CHUNK( sTER, 115, 84, 69, 82, before_IDAT, after_start)
|
|
PNG_CHUNK( pHYs, 112, 72, 89, 115, before_IDAT, after_start)
|
|
PNG_CHUNK( sPLT, 115, 80, 76, 84, before_IDAT, after_start)
|
|
PNG_CHUNK( tIME, 116, 73, 77, 69, before_end, after_start)
|
|
PNG_CHUNK( iTXt, 105, 84, 88, 116, before_end, after_start)
|
|
PNG_CHUNK( tEXt, 116, 69, 88, 116, before_end, after_start)
|
|
PNG_CHUNK( zTXt, 122, 84, 88, 116, before_end, after_start)
|
|
PNG_CHUNK( fRAc, 102, 82, 65, 99, before_end, after_start)
|
|
PNG_CHUNK( gIFg, 103, 73, 70, 103, before_end, after_start)
|
|
PNG_CHUNK( gIFt, 103, 73, 70, 116, before_end, after_start)
|
|
PNG_CHUNK( gIFx, 103, 73, 70, 120, before_end, after_start)
|
|
PNG_CHUNK( dSIG, 100, 83, 73, 71, before_end, after_start)
|
|
PNG_CHUNK_END( IEND, 73, 69, 78, 68, before_end, after_IDAT)
|