a small debug func
This commit is contained in:
parent
cb2e4e1359
commit
154bf0e188
@ -4,7 +4,7 @@
|
|||||||
* http://la.buvette.org/photos/cumul
|
* http://la.buvette.org/photos/cumul
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define FIMG_VERSION 127
|
#define FIMG_VERSION 128
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* in memory descriptor
|
* in memory descriptor
|
||||||
@ -15,9 +15,7 @@ typedef struct {
|
|||||||
int type;
|
int type;
|
||||||
float fval;
|
float fval;
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
float *R, *G, *B, *A;
|
float *R, *G, *B, *A;
|
||||||
|
|
||||||
int reserved;
|
int reserved;
|
||||||
} FloatImg;
|
} FloatImg;
|
||||||
|
|
||||||
@ -64,6 +62,7 @@ int fimg_type_is_valid(int type);
|
|||||||
int fimg_print_version(int k);
|
int fimg_print_version(int k);
|
||||||
void fimg_print_sizeof(void);
|
void fimg_print_sizeof(void);
|
||||||
void fimg_printhead(FloatImg *h);
|
void fimg_printhead(FloatImg *h);
|
||||||
|
void fimg_printdims(char *txt, FloatImg *pi);
|
||||||
int fimg_describe(FloatImg *head, char *txt);
|
int fimg_describe(FloatImg *head, char *txt);
|
||||||
char *fimg_str_type(int type);
|
char *fimg_str_type(int type);
|
||||||
int fimg_plot_rgb (FloatImg *head, int x, int y,
|
int fimg_plot_rgb (FloatImg *head, int x, int y,
|
||||||
|
@ -57,6 +57,11 @@ fprintf(stderr, " sz filehead = %lu\n", sizeof(FimgFileHead));
|
|||||||
fprintf(stderr, " sz filter = %lu\n", sizeof(FimgFilter3x3));
|
fprintf(stderr, " sz filter = %lu\n", sizeof(FimgFilter3x3));
|
||||||
}
|
}
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
void fimg_printdims(char *txt, FloatImg *pi)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "# %s %dx%d\n", txt, pi->width, pi->height);
|
||||||
|
}
|
||||||
|
/* --------------------------------------------------------------------- */
|
||||||
void fimg_printhead(FloatImg *h)
|
void fimg_printhead(FloatImg *h)
|
||||||
{
|
{
|
||||||
printf("%5d %5d %2d %p %p %p %p\n", h->width, h->height, h->type,
|
printf("%5d %5d %2d %p %p %p %p\n", h->width, h->height, h->type,
|
||||||
|
Loading…
Reference in New Issue
Block a user