26 #import <AVFoundation/AVFoundation.h>
43 AVCaptureDevice *mNativeDevice;
49 @interface CaptureImplAvFoundation : NSObject <AVCaptureVideoDataOutputSampleBufferDelegate> {
50 AVCaptureSession *mSession;
51 CVPixelBufferRef mWorkingPixelBuffer;
53 NSString *mDeviceUniqueId;
58 int32_t mWidth, mHeight;
59 int32_t mSurfaceChannelOrderCode;
60 int32_t mExposedFrameBytesPerRow;
61 int32_t mExposedFrameHeight;
62 int32_t mExposedFrameWidth;
65 + (const std::vector<cinder::Capture::DeviceRef>&)getDevices:(BOOL)forceRefresh;
67 - (
id)initWithDevice:(const cinder::Capture::
DeviceRef)device width:(
int)width height:(
int)height;
68 - (bool)prepareStartCapture;
72 - (cinder::Surface8u)getCurrentFrame;
73 - (bool)checkNewFrame;
74 - (const cinder::Capture::DeviceRef)getDevice;
77 - (int32_t)getCurrentFrameBytesPerRow;
78 - (int32_t)getCurrentFrameWidth;
79 - (int32_t)getCurrentFrameHeight;
bool checkAvailable() const
Returns whether the device is available for use.
Definition: CaptureImplAvFoundation.mm:44
int DeviceIdentifier
Definition: Capture.h:109
CaptureImplAvFoundationDevice(AVCaptureDevice *device)
Definition: CaptureImplAvFoundation.mm:30
bool isFrontFacing() const
Definition: CaptureImplAvFoundation.h:39
typedef void(APIENTRYP GLEEPFNGLBLENDCOLORPROC)(GLclampf red
~CaptureImplAvFoundationDevice()
Definition: CaptureImplAvFoundation.mm:39
Capture::DeviceIdentifier getUniqueId() const
Returns the OS-specific unique identifier.
Definition: CaptureImplAvFoundation.h:38
std::shared_ptr< class Device > DeviceRef
Definition: Device.h:36
void * getNative() const
Definition: CaptureImplAvFoundation.h:40
Definition: CaptureImplAvFoundation.h:31
Definition: Capture.h:113
GLuint id
Definition: GLee.h:2035
bool isConnected() const
Returns whether the device is currently connected.
Definition: CaptureImplAvFoundation.mm:49
std::shared_ptr< Device > DeviceRef
Definition: Capture.h:63