Fixed bug in roi assignment
This commit is contained in:
parent
6e62c113fb
commit
3227635ea0
|
@ -97,7 +97,7 @@ static const NSInteger kMPPOrientationDegreesLeft = -270;
|
|||
return std::nullopt;
|
||||
}
|
||||
|
||||
CGRect calculatedRoi = CGRectEqualToRect(roi, CGRectZero) ? roi : CGRectMake(0.0, 0.0, 1.0, 1.0);
|
||||
CGRect calculatedRoi = CGRectEqualToRect(roi, CGRectZero) ? CGRectMake(0.0, 0.0, 1.0, 1.0) : roi;
|
||||
|
||||
NormalizedRect normalizedRect;
|
||||
normalizedRect.set_x_center(CGRectGetMidX(calculatedRoi));
|
||||
|
|
Loading…
Reference in New Issue
Block a user