Skip to content

Commit 3cf4c1a

Browse files
committed
Adjusted minor styles.
1 parent e7ec2b9 commit 3cf4c1a

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

FlashCap.Core/Internal/AVFoundation/AVCaptureSession.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace FlashCap.Internal.AVFoundation;
1515

1616
partial class LibAVFoundation
1717
{
18-
public sealed partial class AVCaptureSession : LibObjC.NSObject
18+
public sealed class AVCaptureSession : LibObjC.NSObject
1919
{
2020
public AVCaptureSession() : base(IntPtr.Zero, false)
2121
{
@@ -35,7 +35,6 @@ private void Init()
3535
Handle = sessionObj;
3636

3737
LibCoreFoundation.CFRetain(this.Handle);
38-
3938
}
4039

4140
public void AddInput(AVCaptureInput input) =>
@@ -62,8 +61,6 @@ public void AddOutput(AVCaptureOutput output)
6261
Handle,
6362
LibObjC.GetSelector("addOutput:"),
6463
videoDataOutput);
65-
66-
6764
}
6865

6966
public bool CanAddOutput(AVCaptureOutput output) =>

FlashCap.Core/Internal/AVFoundation/AVCaptureVideoDataOutput.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ partial class LibAVFoundation
1919
{
2020
public sealed class AVCaptureVideoDataOutput : AVCaptureOutput
2121
{
22-
23-
AVCaptureVideoDataOutputSampleBuffer.CaptureOutputDidOutputSampleBuffer? callbackDelegate;
22+
private AVCaptureVideoDataOutputSampleBuffer.CaptureOutputDidOutputSampleBuffer? callbackDelegate;
2423

2524
public AVCaptureVideoDataOutput() : base(IntPtr.Zero, retain: false)
2625
{
@@ -29,7 +28,6 @@ public AVCaptureVideoDataOutput() : base(IntPtr.Zero, retain: false)
2928

3029
private void Init()
3130
{
32-
3331
IntPtr allocSel = LibObjC.GetSelector("alloc");
3432
IntPtr initSel = LibObjC.GetSelector("init");
3533
IntPtr videoDataOutputClass = LibObjC.GetClass("AVCaptureVideoDataOutput");
@@ -69,7 +67,6 @@ public bool AlwaysDiscardsLateVideoFrames
6967

7068
public void SetPixelFormatType(int format)
7169
{
72-
7370
var pixelFormat = format;
7471

7572
IntPtr pixelFormatTypeKeyPtr = Dlfcn.dlsym(LibCoreVideo.Handle, "kCVPixelBufferPixelFormatTypeKey");
@@ -93,7 +90,6 @@ public void SetPixelFormatType(int format)
9390
public void SetSampleBufferDelegate(AVFoundationDevice.VideoBufferHandler sampleBufferDelegate,
9491
LibCoreFoundation.DispatchQueue sampleBufferCallbackQueue)
9592
{
96-
9793
if (sampleBufferDelegate == null)
9894
{
9995
Debug.WriteLine("AVCaptureVideoDataOutputSampleBufferDelegate is null");
@@ -126,8 +122,6 @@ public void SetSampleBufferDelegate(AVFoundationDevice.VideoBufferHandler sample
126122

127123
IntPtr setDelegateSel = LibObjC.GetSelector("setSampleBufferDelegate:queue:");
128124
LibObjC.SendNoResult(Handle, setDelegateSel, delegateInstance, sampleBufferCallbackQueue.Handle);
129-
130125
}
131-
132126
}
133127
}

FlashCap.Core/Internal/AVFoundation/FourCharCode.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,4 @@ public override bool Equals(object? obj) =>
6565
public static bool operator !=(FourCharCode left, FourCharCode right) => !left.Equals(right);
6666

6767
public int GetIntVal() => (int)value;
68-
69-
7068
}

FlashCap.Core/Internal/AVFoundation/LibAVFoundation.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,6 @@ private static unsafe IntPtr FromDevice(AVCaptureDevice device)
365365
}
366366
}
367367

368-
369-
370368
public abstract class AVCaptureVideoDataOutputSampleBuffer : LibObjC.NSObject
371369
{
372370
private const string HandleVariableName = nameof(GCHandle);

0 commit comments

Comments
 (0)