projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handle failure to get an sRGB framebuffer correctly
[laserbrain_demo]
/
src
/
image.h
diff --git
a/src/image.h
b/src/image.h
index
b812ae1
..
1d16979
100644
(file)
--- a/
src/image.h
+++ b/
src/image.h
@@
-1,6
+1,8
@@
#ifndef IMAGE_H_
#define IMAGE_H_
#ifndef IMAGE_H_
#define IMAGE_H_
+#include <string>
+
class Image {
public:
enum Format {
class Image {
public:
enum Format {
@@
-18,6
+20,8
@@
private:
void *pixels;
public:
void *pixels;
public:
+ std::string name;
+
Image();
~Image();
Image();
~Image();
@@
-36,6
+40,8
@@
public:
void flip_vertical();
void rotate_180();
void flip_vertical();
void rotate_180();
+ void resize_half();
+
bool load(const char *fname);
bool save(const char *fname) const;
};
bool load(const char *fname);
bool save(const char *fname) const;
};