◆ ColorSpace
Enumerator |
---|
kColorSpaceRGB | Output RGB data in the pixel format specified using setOutputPixelFormat .
This is the default output.
|
kColorSpaceYUV | Output (interleaved) YUV data.
Be aware that some images cannot be output in YUV mode. These are (non-standard) JPEG images which are in RGB colorspace.
The resulting Surface will have a PixelFormat with 3 bytes per pixel and the remaining entries are completely zeroed. This works around the fact that PixelFormat can only describe RGB formats.
You should only use this when you are really aware of what you are doing!
|
◆ destroy()
void Image::JPEGDecoder::destroy |
( |
| ) |
|
|
overridevirtual |
Destroy this decoder's surface and palette.
This should be called by a loadStream() implementation as well as by the destructor.
Implements Image::ImageDecoder.
◆ loadStream()
◆ getSurface()
◆ 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.
◆ setCodecAccuracy()
void Image::JPEGDecoder::setCodecAccuracy |
( |
CodecAccuracy |
accuracy | ) |
|
|
overridevirtual |
Set the decoding accuracy of the codec, if supported
Reimplemented from 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.
◆ setOutputColorSpace()
void Image::JPEGDecoder::setOutputColorSpace |
( |
ColorSpace |
outSpace | ) |
|
|
inline |
Request the output color space. This can be used to obtain raw YUV data from the JPEG file. But this might not work for all files!
The decoder itself defaults to RGB.
- Parameters
-
outSpace | The color space to output. |
The documentation for this class was generated from the following file: