Merge "Validate resolution and stride"