1 /**********************************************\
2 *
3 *  Simple Viewer GL edition
4 *  by Andrey A. Ugolnik
5 *  http://www.ugolnik.info
6 *  andrey@ugolnik.info
7 *
8 \**********************************************/
9 
10 #pragma once
11 
12 #if defined(JPEG2000_SUPPORT)
13 
14 #include "format.h"
15 
16 class cFormatJp2k final : public cFormat
17 {
18 public:
19     explicit cFormatJp2k(iCallbacks* callbacks);
20     ~cFormatJp2k();
21 
22     bool isSupported(cFile& file, Buffer& buffer) const override;
23 
24 private:
25     bool LoadImpl(const char* filename, sBitmapDescription& desc) override;
26 
27     bool loadJp2k(void* image, sBitmapDescription& desc) const;
28 };
29 
30 #endif
31