public abstract class WCImageDecoder extends Object
Constructor and Description |
---|
WCImageDecoder() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addImageData(byte[] data)
Receives a portion of image data.
|
protected abstract void |
destroy() |
protected abstract String |
getFilenameExtension() |
protected abstract WCImageFrame |
getFrame(int index)
Returns image frame at the specified index.
|
protected abstract boolean |
getFrameCompleteStatus(int index)
Returns whether the frame is complete or partial
|
protected abstract int |
getFrameCount()
Returns a number of frames of the decoded image.
|
protected abstract int |
getFrameDuration(int index)
Returns frame duration in ms
|
protected abstract int[] |
getFrameSize(int index)
Returns frame size, array[0] represents width and array[1]
represents height.
|
protected abstract int[] |
getImageSize()
Returns image size.
|
protected abstract void |
loadFromResource(String name) |
protected abstract void addImageData(byte[] data)
data
- a portion of image data,
or null
if all data receivedprotected abstract int[] getImageSize()
protected abstract int getFrameCount()
protected abstract WCImageFrame getFrame(int index)
index
- frame indexprotected abstract int getFrameDuration(int index)
index
- frame indexprotected abstract int[] getFrameSize(int index)
index
- frame indexprotected abstract boolean getFrameCompleteStatus(int index)
index
- frame indexprotected abstract void loadFromResource(String name)
protected abstract void destroy()
protected abstract String getFilenameExtension()
Copyright © 2020. All rights reserved.