◆ decodeFrame()
Decode the frame for the given data and return a pointer to a surface containing the decoded frame.
- Returns
- a pointer to the decoded frame
Implements Image::Codec.
◆ getPixelFormat()
Get the format that the surface returned from decodeImage() will be in.
Implements Image::Codec.
◆ setOutputPixelFormat()
Select the preferred format to use, for codecs where this is faster than converting the image afterwards. Returns true if supported, and false otherwise.
Reimplemented from Image::Codec.
◆ containsPalette()
bool Image::DitherCodec::containsPalette |
( |
| ) |
const |
|
overridevirtual |
Can this codec's frames contain a palette?
Reimplemented from Image::Codec.
◆ getPalette()
const byte* Image::DitherCodec::getPalette |
( |
| ) |
|
|
overridevirtual |
Get the palette last decoded from decodeImage
Reimplemented from Image::Codec.
◆ hasDirtyPalette()
bool Image::DitherCodec::hasDirtyPalette |
( |
| ) |
const |
|
overridevirtual |
Does the codec have a dirty palette?
Reimplemented from Image::Codec.
◆ canDither()
bool Image::DitherCodec::canDither |
( |
DitherType |
type | ) |
const |
|
overridevirtual |
Can the codec dither down to 8bpp?
Reimplemented from Image::Codec.
◆ setDither()
void Image::DitherCodec::setDither |
( |
DitherType |
type, |
|
|
const byte * |
palette |
|
) |
| |
|
overridevirtual |
Activate dithering mode with a palette
Reimplemented from Image::Codec.
◆ setCodecAccuracy()
void Image::DitherCodec::setCodecAccuracy |
( |
CodecAccuracy |
accuracy | ) |
|
|
overridevirtual |
Set the decoding accuracy of the codec, if supported
Reimplemented from Image::Codec.
◆ setPalette()
void Image::DitherCodec::setPalette |
( |
const byte * |
palette | ) |
|
|
inline |
Specify the source palette when dithering from CLUT8 to CLUT8.
◆ createQuickTimeDitherTable()
static byte* Image::DitherCodec::createQuickTimeDitherTable |
( |
const byte * |
palette, |
|
|
uint |
colorCount |
|
) |
| |
|
static |
Create a dither table, as used by QuickTime codecs.
The documentation for this class was generated from the following file: