I need a constructor ImageSpec(const ROI &roi, int nchans, int alpha_chan). The problem is, ImageSpec class is in imageio.h and ROI class is in imagebuf.h, and imageio.h includes imagebuf.h. So, ROI is not visible in imageio.h and you can't include imagebuf.h in imageio.h, because of cyclic dependency.
Why not create a separate header for ImageSpec? There is already a separate .cpp called formatspec.cpp. If we can't do that, how should I handle this constructor? I could provide 6 parameters xbegin, xend, ... instead of ROI but that would be ugly.
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
