VTK-m  2.0
DecodePNG.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_io_DecodePNG_h
11 #define vtk_m_io_DecodePNG_h
12 
13 #include <vtkm/Types.h>
14 #include <vtkm/io/vtkm_io_export.h>
15 
16 #include <vector>
17 
18 namespace vtkm
19 {
20 namespace io
21 {
22 
28 VTKM_IO_EXPORT
29 vtkm::UInt32 DecodePNG(std::vector<unsigned char>& out_image,
30  unsigned long& image_width,
31  unsigned long& image_height,
32  const unsigned char* in_png,
33  std::size_t in_size);
34 }
35 } // vtkm::io
36 
37 #endif //vtk_m_io_DecodePNG_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
Types.h
vtkm::io::DecodePNG
VTKM_IO_EXPORT vtkm::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...
vtkm::UInt32
uint32_t UInt32
Definition: Types.h:161