|
| ~BuiltinSkiaCodecImageGenerator () |
|
| BuiltinSkiaCodecImageGenerator (std::unique_ptr< SkCodec > codec) |
|
| BuiltinSkiaCodecImageGenerator (sk_sp< SkData > buffer) |
|
const SkImageInfo & | GetInfo () override |
| Returns basic information about the contents of the encoded image. This information can almost always be collected by just interpreting the header of a decoded image. More...
|
|
unsigned int | GetFrameCount () const override |
| Get the number of frames that the encoded image stores. This method is always expected to be called before GetFrameInfo , as the underlying image decoder may interpret frame information that is then used when calling GetFrameInfo . More...
|
|
unsigned int | GetPlayCount () const override |
| The number of times an animated image should play through before playback stops. More...
|
|
const ImageGenerator::FrameInfo | GetFrameInfo (unsigned int frame_index) override |
| Get information about a single frame in the context of a multi-frame image, useful for animation and frame blending. This method should only ever be called after GetFrameCount has been called. This information is nonsensical for single-frame images. More...
|
|
SkISize | GetScaledDimensions (float desired_scale) override |
| Given a scale value, find the closest image size that can be used for efficiently decoding the image. If subpixel image decoding is not supported by the decoder, this method should just return the original image size. More...
|
|
bool | GetPixels (const SkImageInfo &info, void *pixels, size_t row_bytes, unsigned int frame_index=0, std::optional< unsigned int > prior_frame=std::nullopt) override |
| Decode the image into a given buffer. This method is currently always used for sub-pixel image decoding. For full-sized still images, GetImage is always attempted first. More...
|
|
virtual | ~ImageGenerator () |
|
virtual const SkImageInfo & | GetInfo ()=0 |
| Returns basic information about the contents of the encoded image. This information can almost always be collected by just interpreting the header of a decoded image. More...
|
|
virtual unsigned int | GetFrameCount () const =0 |
| Get the number of frames that the encoded image stores. This method is always expected to be called before GetFrameInfo , as the underlying image decoder may interpret frame information that is then used when calling GetFrameInfo . More...
|
|
virtual unsigned int | GetPlayCount () const =0 |
| The number of times an animated image should play through before playback stops. More...
|
|
virtual const FrameInfo | GetFrameInfo (unsigned int frame_index)=0 |
| Get information about a single frame in the context of a multi-frame image, useful for animation and frame blending. This method should only ever be called after GetFrameCount has been called. This information is nonsensical for single-frame images. More...
|
|
virtual SkISize | GetScaledDimensions (float scale)=0 |
| Given a scale value, find the closest image size that can be used for efficiently decoding the image. If subpixel image decoding is not supported by the decoder, this method should just return the original image size. More...
|
|
virtual bool | GetPixels (const SkImageInfo &info, void *pixels, size_t row_bytes, unsigned int frame_index=0, std::optional< unsigned int > prior_frame=std::nullopt)=0 |
| Decode the image into a given buffer. This method is currently always used for sub-pixel image decoding. For full-sized still images, GetImage is always attempted first. More...
|
|
sk_sp< SkImage > | GetImage () |
| Creates an SkImage based on the current ImageInfo of this ImageGenerator . More...
|
|
Definition at line 183 of file image_generator.h.