Class WebPChunkVp8x
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.webp.chunks.AbstractWebPChunk
org.apache.commons.imaging.formats.webp.chunks.WebPChunkVp8x
VP8X (descriptions of features used) chunk.
 
  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                                                               |
 |                   WebP file header (12 bytes)                 |
 |                                                               |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                      ChunkHeader('VP8X')                      |
 |                                                               |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |Rsv|I|L|E|X|A|R|                   Reserved                    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |          Canvas Width Minus One               |             ...
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 ...  Canvas Height Minus One    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 - Since:
- 1.0.0-alpha4
- See Also:
- 
Field SummaryFields inherited from class org.apache.commons.imaging.formats.webp.chunks.AbstractWebPChunkbytes
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.commons.imaging.formats.webp.chunks.AbstractWebPChunkgetBytes, getChunkSize, getPayloadSize, getType, getTypeDescriptionMethods inherited from class org.apache.commons.imaging.common.BinaryFileParserdebugNumber, debugNumber, getByteOrder, setByteOrder
- 
Constructor Details- 
WebPChunkVp8xCreate a VP8x chunk.- Parameters:
- type- VP8X chunk type
- size- VP8X chunk size
- bytes- VP8X chunk data
- Throws:
- ImagingException- if the chunk data and the size provided do not match, or if the other parameters provided are invalid.
 
 
- 
- 
Method Details- 
dumpDescription copied from class:AbstractWebPChunkPrint the chunk to the given stream.- Overrides:
- dumpin class- AbstractWebPChunk
- Parameters:
- pw- a stream to write to.
- offset- chunk offset.
- Throws:
- ImagingException- if the image is invalid.
- IOException- if it fails to write to the given stream.
 
- 
getCanvasHeight- Returns:
- the canvas height.
 
- 
getCanvasWidth- Returns:
- the canvas width.
 
- 
hasAlpha- Returns:
- whether the chunk has alpha enabled.
 
- 
hasAnimation- Returns:
- if the chunk contains an animation.
 
- 
hasExif- Returns:
- whether the chunk has EXIF data.
 
- 
hasIcc- Returns:
- whether the chunk has ICC enabled.
 
- 
hasXmp- Returns:
- whether the chunk has XMP.
 
 
-