VTK-m  2.0
EncodePNG.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_EncodePNG_h
11 #define vtk_m_io_EncodePNG_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 
23 VTKM_IO_EXPORT
24 vtkm::UInt32 EncodePNG(std::vector<unsigned char> const& image,
25  unsigned long width,
26  unsigned long height,
27  unsigned char* out_png,
28  std::size_t out_size);
29 
30 VTKM_IO_EXPORT
31 vtkm::UInt32 SavePNG(std::string const& filename,
32  std::vector<unsigned char> const& image,
33  unsigned long width,
34  unsigned long height);
35 }
36 } // vtkm::io
37 
38 #endif //vtk_m_io_EncodePNG_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
Types.h
vtkm::io::EncodePNG
VTKM_IO_EXPORT vtkm::UInt32 EncodePNG(std::vector< unsigned char > const &image, unsigned long width, unsigned long height, unsigned char *out_png, std::size_t out_size)
vtkm::UInt32
uint32_t UInt32
Definition: Types.h:161
vtkm::io::SavePNG
VTKM_IO_EXPORT vtkm::UInt32 SavePNG(std::string const &filename, std::vector< unsigned char > const &image, unsigned long width, unsigned long height)