boost::gil::bgra8_view_t wrap_sdl_image() { return interleaved_view( _surface->w , _surface->h , (boost::gil::bgra8_pixel_t*) _surface->pixels , _surface->pitch ); }
static type make(const View& src, int n) { typedef typename type::x_iterator x_iterator_t; return interleaved_view(src.width(),src.height(),(x_iterator_t)&(src(0,0)[n]), src.pixels().row_size()); }