-(void)setOutputInterest {  CGSize size = self.view.bounds.size;  CGFloat scanViewWidth = 240;  CGFloat scanViewHeight = 240;  CGFloat scanViewX = (size.width - scanViewWidth) / 2;  CGFloat scanViewY = (size.height - scanViewHeight) / 2;  CGFloat p1 = size.height/size.width;  CGFloat p2 = 1920./1080.;  if (p1 < p2) {      CGFloat fixHeight = self.view.bounds.size.width * 1920. / 1080.;      CGFloat fixPadding = (fixHeight - size.height)/2;      _output.rectOfInterest = CGRectMake((scanViewY + fixPadding) / fixHeight,                                          scanViewX / size.width,                                          scanViewHeight / fixHeight,                                          scanViewWidth / size.width);  } else {      CGFloat fixWidth = self.view.bounds.size.height * 1080. / 1920.;      CGFloat fixPadding = (fixWidth - size.width)/2;      _output.rectOfInterest = CGRectMake(scanViewY / size.height,                                          (scanViewX + fixPadding) / fixWidth,                                          scanViewHeight / size.height,                                          scanViewWidth / fixWidth);  }} 6/9   首页 上一页 4 5 6 7 8 9 下一页 尾页