std::unique_ptr<Output> createPngOutput(std::shared_ptr<IOChannel> o, size_t width, size_t height, int quality) { std::unique_ptr<Output> outChannel(new PngOutput(o, width, height, quality)); return outChannel; }
std::auto_ptr<ImageOutput> JpegImageOutput::create(boost::shared_ptr<IOChannel> out, size_t width, size_t height, int quality) { std::auto_ptr<ImageOutput> outChannel( new JpegImageOutput(out, width, height, quality)); return outChannel; }