5 #include "IJpegLoader.h"
20 JpegLoader(
bool manuallyCreateRGB565MipMaps =
false);
22 void DecompressJpeg(Byte *jpeg,
size_t len,
JpegImage &image,
bool invertVertically=
false);
24 bool TryDecompressJpeg(Byte *jpeg,
size_t len,
JpegImage &image,
bool invertVertically=
false);
26 bool LoadJpgFromBuffer(
28 const Byte* resourceBuffer,
29 size_t resourceBufferSizeBytes,
31 bool invertVertically);
36 bool m_manuallyCreateRGB565MipMaps;
39 void BoxDownsampleRGB888InPlace(
int& inout_width,
int& inout_height, Byte* pixels);
40 void ConvertRGBA888ToRGBA565(u16* outputPixels,
const Byte* inputPixels,
int width,
int height);
41 u16* CreateRGB565ArrayFromRawRGBPixels(
int width,
int height,
const Byte* pixels);