示例#1
0
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;
}
示例#2
0
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;
}