| 54 | } |
| 55 | |
| 56 | void WICFileIO::SaveToJPEG(std::string const& filename, |
| 57 | std::shared_ptr<Texture2> const& texture, float imageQuality) |
| 58 | { |
| 59 | uint32_t format = DFTypeToFormat(texture->GetFormat()); |
| 60 | WICFileIONative::SaveToJPEG(filename, format, texture->GetWidth(), |
| 61 | texture->GetHeight(), texture->Get<uint8_t>(), imageQuality); |
| 62 | } |
| 63 | |
| 64 | uint32_t WICFileIO::DFTypeToFormat(uint32_t type) |
| 65 | { |