2 * Image Library -- Dumping of image signatures
4 * (c) 2006 Pavel Charvat <pchar@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
11 #include "images/images.h"
12 #include "images/signature.h"
16 image_vector_dump(byte *buf, struct image_vector *vec)
20 for (uns i = 0; i < IMAGE_VEC_F; i++)
24 p += sprintf(p, "%u", vec->f[i]);
32 image_region_dump(byte *buf, struct image_region *reg)
35 p += sprintf(p, "(txt=");
36 for (uns i = 0; i < IMAGE_REG_F; i++)
40 p += sprintf(p, "%u", reg->f[i]);
42 p += sprintf(p, " shp=");
43 for (uns i = 0; i < IMAGE_REG_H; i++)
47 p += sprintf(p, "%u", reg->h[i]);
49 p += sprintf(p, " wa=%u wb=%u)", reg->wa, reg->wb);