trying to do EXR io

This commit is contained in:
tth
2021-03-21 09:02:55 +01:00
parent 3f551e1473
commit 635b722635
10 changed files with 74 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ float global_fvalue;
/* --------------------------------------------------------------------- */
enum nCmd { Equalize=1, Rotate, Sfx0, F3x3, MIRE, Wfits, Wpng, Wtiff,
Histo, Hsv, Classif, Ctr2x2, Qsortrgb,
Displace, ReadPNG, Plasmas, Hilight };
Displace, ReadPNG, Plasmas, Hilight, OpenEXR };
typedef struct {
char *name;
int Cmd;
@@ -45,6 +45,7 @@ Command commands[] = {
{ "readpng", ReadPNG },
{ "plasma", Plasmas },
{ "hilight", Hilight },
{ "openexr", OpenEXR },
{ NULL, 0 }
} ;
@@ -198,6 +199,9 @@ switch(opt) {
case Hilight:
foo = essai_highlights(filename, outfile, 0, global_fvalue);
break;
case OpenEXR:
foo = essai_openexr(filename, outfile, 0x55);
break;
default:
fprintf(stderr, "'%s' is a bad command\n", command);
exit(1);