Image::AutoPtr newExvInstance(BasicIo::AutoPtr io, bool create) { Image::AutoPtr image; image = Image::AutoPtr(new ExvImage(io, create)); if (!image->good()) image.reset(); return image; }
Image::AutoPtr newCrwInstance(BasicIo::AutoPtr io, bool create) { Image::AutoPtr image = Image::AutoPtr(new CrwImage(io, create)); if (!image->good()) { image.reset(); } return image; }
Image::AutoPtr newExvInstance(BasicIo::AutoPtr io, bool create) { Image::AutoPtr image; if (create) { image = Image::AutoPtr(new ExvImage(io, true)); } else { image = Image::AutoPtr(new ExvImage(io, false)); } if (!image->good()) image.reset(); return image; }