Viskores
1.0
viskores
io
EncodePNG.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_EncodePNG_h
19
#define viskores_io_EncodePNG_h
20
21
#include <
viskores/Types.h
>
22
#include <
viskores/io/viskores_io_export.h
>
23
24
#include <vector>
25
26
namespace
viskores
27
{
28
namespace
io
29
{
30
31
VISKORES_IO_EXPORT
32
viskores::UInt32
EncodePNG
(std::vector<unsigned char>
const
& image,
33
unsigned
long
width,
34
unsigned
long
height,
35
unsigned
char
* out_png,
36
std::size_t out_size);
37
38
VISKORES_IO_EXPORT
39
viskores::UInt32
SavePNG
(std::string
const
& filename,
40
std::vector<unsigned char>
const
& image,
41
unsigned
long
width,
42
unsigned
long
height);
43
}
44
}
// viskores::io
45
46
#endif //viskores_io_EncodePNG_h
viskores::io::EncodePNG
viskores::UInt32 EncodePNG(std::vector< unsigned char > const &image, unsigned long width, unsigned long height, unsigned char *out_png, std::size_t out_size)
Types.h
viskores_io_export.h
viskores::io::SavePNG
viskores::UInt32 SavePNG(std::string const &filename, std::vector< unsigned char > const &image, unsigned long width, unsigned long height)
viskores
Groups connected points that have the same field value.
Definition:
Atomic.h:27
viskores::UInt32
uint32_t UInt32
Base type to use for 32-bit unsigned integer numbers.
Definition:
Types.h:193
Generated by
1.8.17