From cda1afb03d096bb9913d7d8a6d3bb064cc817e48 Mon Sep 17 00:00:00 2001 From: renelaerke Date: Sat, 15 Jun 2024 11:46:47 +0200 Subject: [PATCH 1/3] Fixed compilation problem caused by chaning "lincese.md" to "LICENSE.md" and move of file --- Camera.MAUI/Camera.MAUI.csproj | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Camera.MAUI/Camera.MAUI.csproj b/Camera.MAUI/Camera.MAUI.csproj index d11ab1f..42789bf 100644 --- a/Camera.MAUI/Camera.MAUI.csproj +++ b/Camera.MAUI/Camera.MAUI.csproj @@ -29,21 +29,16 @@ hjam40 True 1.5 - Split barcode encoder/decoder in a different package. Fix some bugs - - license.md + Split barcode encoder/decoder in a different package. Fix some bugs + LICENSE.md manual - - - - - + - + True \ From 4daad1a81731bb0c7ca323dbc513c50ad3a6cc7d Mon Sep 17 00:00:00 2001 From: renelaerke Date: Sat, 15 Jun 2024 11:49:50 +0200 Subject: [PATCH 2/3] Added x:DataType tag to assist binding and allow for compiled bindings for BarcodeImage.xaml --- Camera.MAUI/BarcodeImage.xaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Camera.MAUI/BarcodeImage.xaml b/Camera.MAUI/BarcodeImage.xaml index 68c3815..57ae7a8 100644 --- a/Camera.MAUI/BarcodeImage.xaml +++ b/Camera.MAUI/BarcodeImage.xaml @@ -1,7 +1,9 @@ + xmlns:local="clr-namespace:Camera.MAUI" + x:Class="Camera.MAUI.BarcodeImage" x:Name="barcodeImage" + x:DataType="local:BarcodeImage"> From 138cfec615aa4d10b78d75d70dfa8077b1b85026 Mon Sep 17 00:00:00 2001 From: renelaerke Date: Sat, 15 Jun 2024 11:53:59 +0200 Subject: [PATCH 3/3] Added a couple of more camera options for iOS/Apple - UltraWide (needed for better focus on closeups) - DualWide - Tripple - Telephoto --- Camera.MAUI/Apple/MauiCameraView.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Camera.MAUI/Apple/MauiCameraView.cs b/Camera.MAUI/Apple/MauiCameraView.cs index 60dfe3a..6ca5d65 100644 --- a/Camera.MAUI/Apple/MauiCameraView.cs +++ b/Camera.MAUI/Apple/MauiCameraView.cs @@ -75,7 +75,7 @@ private void InitDevices() { try { - var deviceDescoverySession = AVCaptureDeviceDiscoverySession.Create(new AVCaptureDeviceType[] { AVCaptureDeviceType.BuiltInWideAngleCamera }, AVMediaTypes.Video, AVCaptureDevicePosition.Unspecified); + var deviceDescoverySession = AVCaptureDeviceDiscoverySession.Create(new AVCaptureDeviceType[] { AVCaptureDeviceType.BuiltInWideAngleCamera, AVCaptureDeviceType.BuiltInUltraWideCamera, AVCaptureDeviceType.BuiltInDualWideCamera, AVCaptureDeviceType.BuiltInTripleCamera, AVCaptureDeviceType.BuiltInTelephotoCamera }, AVMediaTypes.Video, AVCaptureDevicePosition.Unspecified); camDevices = deviceDescoverySession.Devices; cameraView.Cameras.Clear(); foreach (var device in camDevices) @@ -573,7 +573,6 @@ void DidFinishProcessingPhoto(AVCapturePhotoOutput captureOutput, CMSampleBuffer } NSData imageData = AVCapturePhotoOutput.GetJpegPhotoDataRepresentation(photoSampleBuffer, previewPhotoSampleBuffer); - photo = new UIImage(imageData); photoTaken = true; }