30 lines
623 B
C++
30 lines
623 B
C++
#ifndef IPL_UTILITY_JPEG_DECODER
|
|
#define IPL_UTILITY_JPEG_DECODER
|
|
|
|
#include <revolution/types.h>
|
|
|
|
#include <egg/core.h>
|
|
|
|
namespace ipl {
|
|
namespace utility {
|
|
class JpegDecoder {
|
|
public:
|
|
JpegDecoder(EGG::Heap* heap);
|
|
|
|
BOOL decodeJpg(EGG::Heap* heap, u8* buffer, u32 length);
|
|
BOOL encodeOdh(EGG::Heap* heap, u8* buffer, u32 length);
|
|
|
|
BOOL waitCaptured();
|
|
|
|
BOOL makeRawData();
|
|
|
|
void clear();
|
|
|
|
private:
|
|
u8 dummy[0x710];
|
|
};
|
|
} // namespace utility
|
|
} // namespace ipl
|
|
|
|
#endif // IPL_UTILITY_JPEG_DECODER
|