| 43 | namespace tgfx { |
| 44 | |
| 45 | static size_t GetPaddingAlignment16(size_t size) { |
| 46 | auto remainder = size & 0xF; |
| 47 | return (16 - remainder) & 0xF; |
| 48 | } |
| 49 | |
| 50 | std::shared_ptr<ImageCodec> ImageCodec::MakeFrom(const std::string& filePath) { |
| 51 | static WeakMap<std::string, ImageCodec> imageCodecMap = {}; |