2018-06-11 22:41:11 +02:00
|
|
|
package ar.com.hjg.pngj.chunks;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* What to do with ancillary (non-critical) chunks when reading.
|
|
|
|
* <p>
|
2018-09-22 11:17:30 +02:00
|
|
|
*
|
2018-06-11 22:41:11 +02:00
|
|
|
*/
|
|
|
|
public enum ChunkLoadBehaviour {
|
2018-09-22 11:17:30 +02:00
|
|
|
/**
|
|
|
|
* All non-critical chunks are skipped
|
|
|
|
*/
|
|
|
|
LOAD_CHUNK_NEVER,
|
|
|
|
/**
|
|
|
|
* Load chunk if "safe to copy"
|
|
|
|
*/
|
|
|
|
LOAD_CHUNK_IF_SAFE,
|
|
|
|
/**
|
|
|
|
* Load only most important chunk: TRNS
|
|
|
|
*/
|
|
|
|
LOAD_CHUNK_MOST_IMPORTANT,
|
|
|
|
/**
|
|
|
|
* Load all chunks. <br>
|
|
|
|
* Notice that other restrictions might apply, see
|
|
|
|
* PngReader.skipChunkMaxSize PngReader.skipChunkIds
|
|
|
|
*/
|
|
|
|
LOAD_CHUNK_ALWAYS;
|
2018-06-11 22:41:11 +02:00
|
|
|
}
|