forked from tTh/FloatImg
integration de fimg_colors_mixer_a dans fimgfx
This commit is contained in:
parent
59cbb3c1e0
commit
9517c8a10f
|
@ -23,7 +23,13 @@ function essai_drand48
|
||||||
./fimgstats -vv $TMPF
|
./fimgstats -vv $TMPF
|
||||||
}
|
}
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
|
function essai_cmixa
|
||||||
|
{
|
||||||
|
./mkfimg -v -t tpat0 $TMPF 800 600
|
||||||
|
./fimgfx -v cmixa $TMPF bar.fimg
|
||||||
|
}
|
||||||
|
# -----------------------------------------------------
|
||||||
|
|
||||||
essai_drand48
|
essai_cmixa
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
|
|
|
@ -21,7 +21,7 @@ typedef struct {
|
||||||
} Fx;
|
} Fx;
|
||||||
|
|
||||||
enum fxid { Fx_cos01=5, Fx_cos010, Fx_pow2, Fx_sqrt, Fx_gray0, Fx_halfsz0,
|
enum fxid { Fx_cos01=5, Fx_cos010, Fx_pow2, Fx_sqrt, Fx_gray0, Fx_halfsz0,
|
||||||
Fx_rot90,
|
Fx_rot90, Fx_cmixa,
|
||||||
Fx_xper };
|
Fx_xper };
|
||||||
|
|
||||||
Fx fx_list[] = {
|
Fx fx_list[] = {
|
||||||
|
@ -32,6 +32,7 @@ Fx fx_list[] = {
|
||||||
{ "gray0", Fx_gray0, 0, 1 },
|
{ "gray0", Fx_gray0, 0, 1 },
|
||||||
{ "halfsz0", Fx_halfsz0, 0, 1 },
|
{ "halfsz0", Fx_halfsz0, 0, 1 },
|
||||||
{ "rot90", Fx_rot90, 0, 0 },
|
{ "rot90", Fx_rot90, 0, 0 },
|
||||||
|
{ "cmixa", Fx_cmixa, 0, 1 },
|
||||||
{ "xper", Fx_xper, 0, 1 },
|
{ "xper", Fx_xper, 0, 1 },
|
||||||
{ NULL, 0, 0 }
|
{ NULL, 0, 0 }
|
||||||
};
|
};
|
||||||
|
@ -157,6 +158,10 @@ switch (action) {
|
||||||
case Fx_rot90:
|
case Fx_rot90:
|
||||||
foo = fimg_rotate_90(&src, &dest, 0); break;
|
foo = fimg_rotate_90(&src, &dest, 0); break;
|
||||||
|
|
||||||
|
case Fx_cmixa:
|
||||||
|
fimg_copy_data(&src, &dest);
|
||||||
|
foo = fimg_colors_mixer_a(&dest, 2.0); break;
|
||||||
|
|
||||||
case Fx_halfsz0:
|
case Fx_halfsz0:
|
||||||
fprintf(stderr, "halfsize was not implemented\n");
|
fprintf(stderr, "halfsize was not implemented\n");
|
||||||
return -3;
|
return -3;
|
||||||
|
|
Loading…
Reference in New Issue