All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
EmscriptenDummyJpegLoader.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 "IJpegLoader.h"
9 #include "JpegImage.h"
10 
11 namespace Eegeo
12 {
13  namespace Emscripten
14  {
16  {
17  public:
18  void DecompressJpeg(Byte* jpeg, size_t len, Helpers::Jpeg::JpegImage& image, bool invertVertically=false)
19  {
20  Eegeo_ASSERT(false, "IJpegLoader not supported on Emscripten - use an asynchronous JPEG load instead");
21  }
22 
23  bool TryDecompressJpeg(Byte* jpeg, size_t len, Helpers::Jpeg::JpegImage& image, bool invertVertically=false)
24  {
25  Eegeo_ASSERT(false, "IJpegLoader not supported on Emscripten - use an asynchronous JPEG load instead");
26  return false;
27  }
28 
29  bool LoadJpgFromBuffer(
31  const Byte* resourceBuffer,
32  size_t resourceBufferSizeBytes,
33  bool mipmap,
34  bool invertVertically)
35  {
36  Eegeo_ASSERT(false, "IJpegLoader not supported on Emscripten - use an asynchronous JPEG load instead");
37  return false;
38  }
39  };
40  }
41 }