#include <decompressed_image.h>
Public Types | |
| enum class | Format { kInvalid , kGrey , kGreyAlpha , kRGB , kRGBA } |
Public Member Functions | |
| DecompressedImage () | |
| DecompressedImage (ISize size, Format format, std::shared_ptr< const fml::Mapping > allocation) | |
| ~DecompressedImage () | |
| const ISize & | GetSize () const |
| bool | IsValid () const |
| Format | GetFormat () const |
| const std::shared_ptr< const fml::Mapping > & | GetAllocation () const |
| DecompressedImage | ConvertToRGBA () const |
Definition at line 15 of file decompressed_image.h.
|
strong |
| Enumerator | |
|---|---|
| kInvalid | |
| kGrey | |
| kGreyAlpha | |
| kRGB | |
| kRGBA | |
Definition at line 17 of file decompressed_image.h.
|
default |
| impeller::DecompressedImage::DecompressedImage | ( | ISize | size, |
| Format | format, | ||
| std::shared_ptr< const fml::Mapping > | allocation | ||
| ) |
Definition at line 16 of file decompressed_image.cc.
|
default |
| DecompressedImage impeller::DecompressedImage::ConvertToRGBA | ( | ) | const |
Definition at line 62 of file decompressed_image.cc.
References impeller::TSize< T >::Area(), impeller::GetBytesPerPixel(), kGrey, kGreyAlpha, kInvalid, kRGB, and kRGBA.
| const std::shared_ptr< const fml::Mapping > & impeller::DecompressedImage::GetAllocation | ( | ) | const |
Definition at line 41 of file decompressed_image.cc.
Referenced by impeller::CreateTextureForDecompressedImage().
| DecompressedImage::Format impeller::DecompressedImage::GetFormat | ( | ) | const |
Definition at line 37 of file decompressed_image.cc.
| const ISize & impeller::DecompressedImage::GetSize | ( | ) | const |
Definition at line 33 of file decompressed_image.cc.
Referenced by impeller::CreateTextureForDecompressedImage().
| bool impeller::DecompressedImage::IsValid | ( | ) | const |
Definition at line 29 of file decompressed_image.cc.