~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/maccore/src/AVFoundation/AVCaptureVideoDataOutput.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
//   Miguel de Icaza
6
6
//
7
7
// Copyright 2011, Novell, Inc.
 
8
// Copyright 2011, 2012 Xamarin Inc.
8
9
//
9
10
// Permission is hereby granted, free of charge, to any person obtaining
10
11
// a copy of this software and associated documentation files (the
33
34
 
34
35
namespace MonoMac.AVFoundation {
35
36
 
 
37
        // Wrong binding (PixelFormat is CoreVideo), keeping just to be compatible
36
38
        public partial class AVVideoSettings {
 
39
 
37
40
                public AVVideoSettings ()
38
41
                {
39
42
                }
40
43
 
 
44
                [Advice ("Use PixelBufferAttributes")]
41
45
                public AVVideoSettings (CVPixelFormatType formatType)
42
46
                {
43
47
                        PixelFormat = formatType;
44
48
                }
45
 
                
 
49
 
 
50
                [Advice ("Use PixelBufferAttributes")]          
46
51
                public CVPixelFormatType? PixelFormat { get; set; }
47
52
                
 
53
                [Advice ("Use PixelBufferAttributes")]          
48
54
                public NSDictionary ToDictionary ()
49
55
                {
50
56
                        if (!PixelFormat.HasValue)
55
61
        }
56
62
        
57
63
        public partial class AVCaptureVideoDataOutput {
 
64
                [Advice ("Use SetSampleBufferDelegate")]
58
65
                public void SetSampleBufferDelegateAndQueue (AVCaptureVideoDataOutputSampleBufferDelegate sampleBufferDelegate, DispatchQueue queue)
59
66
                {
60
 
                        SetSampleBufferDelegate (sampleBufferDelegate, queue == null ? IntPtr.Zero : queue.Handle);
 
67
                        SetSampleBufferDelegate (sampleBufferDelegate, queue);
61
68
                }
62
69
 
 
70
                [Advice ("Use Compressed or Uncompressed property")]
63
71
                public AVVideoSettings VideoSettings {
64
72
                        set {
65
73
                                WeakVideoSettings = value == null ? null : value.ToDictionary ();