-
Notifications
You must be signed in to change notification settings - Fork 56
MTY_CompressImage
chrisd1100 edited this page Aug 25, 2022
·
1 revision
Compress an RGBA image.
void *MTY_CompressImage(
MTY_ImageCompression method,
const void * input,
uint32_t width,
uint32_t height,
size_t * outputSize
);
method
(MTY_ImageCompression
)
The compression method to be used on input
.
input
(const void *
)
RGBA 8-bits per channel image data.
width
(uint32_t
)
The width of the input
image.
height
(uint32_t
)
The height of the input
image.
outputSize
(size_t *
)
Set to the size in bytes of the returned buffer.
void *
On failure, NULL
is returned. Call MTY_GetLog
for details.
The returned buffer must be destroyed with MTY_Free
.