45 typedef typename FormatT::Pixel Pixel;
46 typedef typename FormatT::ConstPixel ConstPixel;
48 static std::size_t pixelStride(
const FormatT& format)
50 return format.pixelStride();
53 static std::size_t imageSize(
const FormatT& format, Pt::ssize_t width, Pt::ssize_t height,
56 return format.imageSize(width, height, padding);
59 static std::unique_ptr<FormatT> clone(
const FormatT& format)
61 return std::unique_ptr<FormatT>(
new FormatT(format) );