To calculate the rowstride without allocating memory! https://bugzilla.gnome.org/show_bug.cgi?id=765094