bla
This commit is contained in:
parent
9c5849e299
commit
b33a752af7
@ -13,11 +13,17 @@ extern int verbosity; /* must be declared around main() */
|
|||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
int fimg_add_alpha_chan(FloatImg *img)
|
int fimg_add_alpha_chan(FloatImg *img)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
fprintf(stderr, ">>> %s ( %p )\n", __func__, img);
|
||||||
|
|
||||||
return -4;
|
return -4;
|
||||||
}
|
}
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
int fimg_kill_alpha_chan(FloatImg *img)
|
int fimg_kill_alpha_chan(FloatImg *img)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
fprintf(stderr, ">>> %s ( %p )\n", __func__, img);
|
||||||
|
|
||||||
return -4;
|
return -4;
|
||||||
}
|
}
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
|
@ -124,7 +124,7 @@ return 0;
|
|||||||
* can compute the maxima of a lot of pictures...
|
* can compute the maxima of a lot of pictures...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
fimg_max_of_max(FloatImg *img, float maxes[3])
|
int fimg_max_of_max(FloatImg *img, float maxes[3])
|
||||||
{
|
{
|
||||||
float localmax[3];
|
float localmax[3];
|
||||||
int idx, surface;
|
int idx, surface;
|
||||||
@ -426,7 +426,8 @@ if (fi->type != FIMG_TYPE_RGB) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
nbre = fi->width * fi->height;
|
nbre = fi->width * fi->height;
|
||||||
// fprintf(stderr, "%s: %d pixels\n", __func__, nbre);
|
|
||||||
|
fprintf(stderr, "in %s, drand48() is %f\n", __func__, drand48());
|
||||||
|
|
||||||
for (idx=0; idx<nbre; idx++) {
|
for (idx=0; idx<nbre; idx++) {
|
||||||
fi->R[idx] = drand48() * kmul;
|
fi->R[idx] = drand48() * kmul;
|
||||||
|
Loading…
Reference in New Issue
Block a user