All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
iOSPNGDecoder.h
1 #pragma once
2 
3 #include "IPNGDecoder.h"
4 #include "Graphics.h"
5 #include <CoreGraphics/CoreGraphics.h>
6 
7 
8 namespace Eegeo
9 {
10  namespace iOS
11  {
13  {
14  public:
15 
16  Helpers::PNG::DecodedPNG* DecodePNGFromBuffer(const void* encodedBytes, size_t encodedByteCount, bool invertVertically) const override;
17 
18  Helpers::PNG::DecodedPNG* DecodePNGFromStream(std::istream& stream, bool invertVertically) const override;
19 
20  Helpers::PNG::DecodedPNG* DecodePNGFromDataProvider(CGDataProviderRef dataProvider, bool invertVertically) const;
21 
22  private:
23 
24  static size_t GetBytes(void *info, void* buffer, size_t count);
25  static off_t SkipBytes(void *info, off_t count);
26  static void Rewind(void *info);
27  };
28  }
29 }