index c9ccb4fc62dcdf26d5435cd998f19222ba64554c..404a0fd038b2a70e6f919344c78912670c535846 100644 (file)
--- a/src/libnr/nr-pixblock.h
+++ b/src/libnr/nr-pixblock.h
return ((pb->size == NR_PIXBLOCK_SIZE_TINY) ?
pb->data.p : pb->data.px);
}
+inline unsigned char const*
+NR_PIXBLOCK_PX (NRPixBlock const *pb)
+{
+ return ((pb->size == NR_PIXBLOCK_SIZE_TINY) ?
+ pb->data.p : pb->data.px);
+}
void nr_pixblock_setup (NRPixBlock *pb, NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear);
void nr_pixblock_setup_fast (NRPixBlock *pb, NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear);
void nr_pixblock_release (NRPixBlock *pb);
NRPixBlock *nr_pixblock_new (NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear);
+NRPixBlock *nr_pixblock_new_fast (NR_PIXBLOCK_MODE mode, int x0, int y0, int x1, int y1, bool clear);
NRPixBlock *nr_pixblock_free (NRPixBlock *pb);
unsigned char *nr_pixelstore_4K_new (bool clear, unsigned char val);
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :