Worldstone
Main Page
Related Pages
Classes
Files
File List
File Members
•
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
utils.h
1
//
2
// Created by Lectem on 05/11/2016.
3
//
4
5
#pragma once
6
7
#include <stdint.h>
8
#include "
ImageView.h
"
9
#include "Palette.h"
10
11
namespace
WorldStone
12
{
13
namespace
Utils
14
{
25
void
exportToPGM(
const
char
* output,
const
uint8_t* data,
int
width,
int
height,
int
maxVal = -1);
27
void
exportToPGM(
const
char
* output, ImageView<const uint8_t> image,
int
maxVal = -1);
28
37
void
exportToPPM(
const
char
* output,
const
uint8_t* data,
int
width,
int
height,
38
const
Palette& palette);
39
}
// namespace Utils
40
}
// namespace WorldStone
ImageView.h
Implements image manipulation helpers.
source
decoders
include
utils.h
Generated on Wed Jun 9 2021 16:22:51 for Worldstone by
1.8.6