All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
IJpegLoader.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "GLHelpers.h"
6 #include "Types.h"
7 #include "Rendering.h"
8 #include "JpegImage.h"
9 
10 namespace Eegeo
11 {
12  namespace Helpers
13  {
14  namespace Jpeg
15  {
17  {
18  public:
19  virtual ~IJpegLoader() { };
20 
21  virtual void DecompressJpeg(Byte *jpeg, size_t len, JpegImage &image, bool invertVertically=false) = 0;
22 
23  virtual bool TryDecompressJpeg(Byte *jpeg, size_t len, JpegImage &image, bool invertVertically=false) = 0;
24 
25  virtual bool LoadJpgFromBuffer(
27  const Byte* resourceBuffer,
28  size_t resourceBufferSizeBytes,
29  bool mipmap,
30  bool invertVertically) = 0;
31  };
32  }
33  }
34 }