projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When a new document is made and saved, register it in the canvas map as if it had...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
mod_png
/
mptr_png.h
diff --git
a/synfig-core/trunk/src/modules/mod_png/mptr_png.h
b/synfig-core/trunk/src/modules/mod_png/mptr_png.h
index
ccddae0
..
b348964
100644
(file)
--- a/
synfig-core/trunk/src/modules/mod_png/mptr_png.h
+++ b/
synfig-core/trunk/src/modules/mod_png/mptr_png.h
@@
-51,6
+51,9
@@
private:
png_infop info_ptr;
png_infop end_info;
png_infop info_ptr;
png_infop end_info;
+ bool trim;
+ unsigned int orig_width, orig_height, trimmed_x, trimmed_y;
+
static void png_out_error(png_struct *png_data,const char *msg);
static void png_out_warning(png_struct *png_data,const char *msg);
static int read_chunk_callback(png_struct *png_data, png_unknown_chunkp chunk);
static void png_out_error(png_struct *png_data,const char *msg);
static void png_out_warning(png_struct *png_data,const char *msg);
static int read_chunk_callback(png_struct *png_data, png_unknown_chunkp chunk);
@@
-60,6
+63,9
@@
public:
~png_mptr();
virtual bool get_frame(synfig::Surface &surface,synfig::Time time, synfig::ProgressCallback *callback);
~png_mptr();
virtual bool get_frame(synfig::Surface &surface,synfig::Time time, synfig::ProgressCallback *callback);
+ virtual bool get_frame(synfig::Surface &surface,synfig::Time time,
+ bool &trimmed, unsigned int &width, unsigned int &height, unsigned int &top, unsigned int &left,
+ synfig::ProgressCallback *callback);
};
/* === E N D =============================================================== */
};
/* === E N D =============================================================== */