2018-06-11 22:41:11 +02:00
|
|
|
package ar.com.hjg.pngj;
|
|
|
|
|
|
|
|
import ar.com.hjg.pngj.chunks.ChunkRaw;
|
|
|
|
import ar.com.hjg.pngj.chunks.PngChunk;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Factory to create a {@link PngChunk} from a {@link ChunkRaw}.
|
|
|
|
* <p>
|
|
|
|
* Used by {@link PngReader}
|
|
|
|
*/
|
|
|
|
public interface IChunkFactory {
|
|
|
|
|
2018-09-22 11:17:30 +02:00
|
|
|
/**
|
|
|
|
* @param chunkRaw
|
|
|
|
* Chunk in raw form. Data can be null if it was skipped or
|
|
|
|
* processed directly (eg IDAT)
|
|
|
|
* @param imgInfo
|
|
|
|
* Not normally necessary, but some chunks want this info
|
|
|
|
* @return should never return null.
|
|
|
|
*/
|
|
|
|
PngChunk createChunk(ChunkRaw chunkRaw, ImageInfo imgInfo);
|
2018-06-11 22:41:11 +02:00
|
|
|
|
|
|
|
}
|