-void lbximg_getinfo(struct lbx_image *img, struct lbx_imginfo *info)
-{
- *info = (struct lbx_imginfo) {
- .width = img->width,
- .height = img->height,
- .nframes = img->frames,
- .palettesz = (img->flags & FLAG_PALETTE) ? img->palcount : 0,
- };
-
- /* There seems to be two ways of specifying that an image loops. */
- if (img->flags & FLAG_LOOPING) {
- info->loopstart = 0;
- info->looping = 1;
- } else if (img->leadin != img->frames - 1) {
- info->loopstart = img->leadin;
- info->looping = 1;
- }
-}
-
-unsigned char **lbximg_getmask(struct lbx_image *img)
-{
- return img->mask;
-}
-
-void lbximg_close(struct lbx_image *img)