Viskores  1.0
DecodePNG.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_io_DecodePNG_h
19 #define viskores_io_DecodePNG_h
20 
21 #include <viskores/Types.h>
23 
24 #include <vector>
25 
26 namespace viskores
27 {
28 namespace io
29 {
30 
36 VISKORES_IO_EXPORT
37 viskores::UInt32 DecodePNG(std::vector<unsigned char>& out_image,
38  unsigned long& image_width,
39  unsigned long& image_height,
40  const unsigned char* in_png,
41  std::size_t in_size);
42 }
43 } // viskores::io
44 
45 #endif //viskores_io_DecodePNG_h
Types.h
viskores_io_export.h
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::io::DecodePNG
viskores::UInt32 DecodePNG(std::vector< unsigned char > &out_image, unsigned long &image_width, unsigned long &image_height, const unsigned char *in_png, std::size_t in_size)
Decodes a PNG file buffer in memory, into a raw pixel buffer Output is RGBA 32-bit (8 bit per channel...
viskores::UInt32
uint32_t UInt32
Base type to use for 32-bit unsigned integer numbers.
Definition: Types.h:193