In the case when the height or width of the bounding box is 0
it is not necessary to calculate Rle.
Change-Id: Ib5351cf43d68530b83efd71d4c2dd71caf67c904
bbox.max.x = min(bbox.max.x, clip.w);
bbox.max.y = min(bbox.max.y, clip.h);
- if (xMax - xMin < 1 && yMax - yMin < 1) return false;
+ if (xMax - xMin < 1 || yMax - yMin < 1) return false;
return true;
}
bbox.min.y = yMin >> 6;
bbox.max.y = (yMax + 63) >> 6;
- if (xMax - xMin < 1 && yMax - yMin < 1) return false;
+ if (xMax - xMin < 1 || yMax - yMin < 1) return false;
return true;
}