lqr_carver_new, lqr_carver_destroy — the LqrCarver object constructor and destructor
#include <lqr.h>
LqrCarver* lqr_carver_new( | guchar* | buffer, |
| gint | width, | |
| gint | height, | |
| gint | bpp); |
void lqr_carver_destroy( | LqrCarver* | carver); |
The function lqr_carver_new creates a new
LqrCarver object from an RGB image of size width * height
with bpp colour channels.
The image must be stored in
buffer as a plain array of unsigned chars,
ordered by row, then by column, then by colour channel.
The buffer will be incorporated into the LqrCarver object and
must not be accessed any more