Telegram icon indicating copy to clipboard operation
Telegram copied to clipboard

fix:When the application enters the 4:3 preview screen process, it wi…

Open TC-zerol opened this issue 1 year ago • 2 comments

…ll forcibly select a minimum resolution

CameraController.java

      if (size.width == 1280 && size.height != 720) {
          continue;
      }

This will filter out 1280x960 resolution

CameraView.java

} else {
            if (Math.abs(screenSize - size4to3) < 0.1f) {
                aspectRatio = new Size(4, 3);
                wantedWidth = 1280;
                wantedHeight = 960;

After entering the 4:3 resolution branch, wantedresolution is 1280x960

CameraController.java

 for (int a = 0; a < choices.size(); a++) {
            Size option = choices.get(a);
            if (notBigger && (option.getHeight() > height || option.getWidth() > width)) {
                continue;
            }
            if (option.getHeight() == option.getWidth() * h / w && option.getWidth() >= width && option.getHeight() >= height) {
                bigEnoughWithAspectRatio.add(option);
            } else if (option.getHeight() * option.getWidth() <= width * height * 4) {
                bigEnough.add(option);
            }
        }

option.getHeight() > height || option.getWidth() > width) option.getWidth() >= width && option.getHeight() >= height The above two judgments result in only 1280x960 being selected, but it is not in the candidate list. Finally, go into the bottom-line strategy and chose a very small resolution.

CameraController.java

  if (size.width == 1280 && size.height != 720) {
      continue;
  }

The meaning of the code here is unclear, or I hope there are other solutions to fix this problem.

TC-zerol avatar Feb 05 '24 08:02 TC-zerol

Please prioritize this issue, we have Pad users experiencing this issue

TC-zerol avatar Feb 05 '24 08:02 TC-zerol

Please update

TC-zerol avatar Feb 18 '24 05:02 TC-zerol

Merged into 10.9.2, thanks!

dkaraush avatar Mar 14 '24 09:03 dkaraush