I think having a variable contain a non-byte pitch is unusual. (But I guess it is sane to assume that the pitch is a multiple of bytesPerPixel.)