| 12345678910111213141516171819 |
-
- #ifndef DFPSR_API_IMAGE_STB_WRAPPER
- #define DFPSR_API_IMAGE_STB_WRAPPER
- #include "../../image/Image.h"
- #include "../../api/stringAPI.h"
- namespace dsr {
- OrderedImageRgbaU8 image_stb_decode_RgbaU8(SafePointer<const uint8_t> data, int size);
- // Pre-conditions:
- // * The image must be packed in RGBA order at runtime, but can't be in the OrderedImageRgbaU8 format because Ordered inherits from Aligned.
- // * Only the PNG format may use padding in this call.
- Buffer image_stb_encode(const ImageRgbaU8 &image, ImageFileFormat format, int quality);
- }
- #endif
|