Updated with review comments. checks width & height
Change-Id: I79bd28862f511e7653e7e7a63c88772834ee6559
Rect endRect, long startTimeMs, long durationMs) {
super(mediaItem, effectId, startTimeMs, durationMs);
+ if ( (startRect.width() <= 0) || (startRect.height() <= 0) ) {
+ throw new IllegalArgumentException("Invalid Start rectangle");
+ }
+ if ( (endRect.width() <= 0) || (endRect.height() <= 0) ) {
+ throw new IllegalArgumentException("Invalid End rectangle");
+ }
+
mStartRect = startRect;
mEndRect = endRect;
}