VuoVideoCapture interface.
Definition in file VuoVideoCapture.h.
Go to the source code of this file.
Typedefs | |
typedef void * | VuoVideoCapture |
An object for receiving video frames via AV Foundation. | |
Functions | |
VuoList_VuoVideoInputDevice | VuoVideoCapture_getInputDevices (void) |
Returns the available input devices at this moment. | |
void | VuoVideoCapture_addOnDevicesChangedCallback (VuoOutputTrigger(devicesDidChange, VuoList_VuoVideoInputDevice)) |
Adds an output trigger to the VuoVideoCaptureDeviceListener TriggerSet to be fired when available input devices changes. | |
void | VuoVideoCapture_removeOnDevicesChangedCallback (VuoOutputTrigger(devicesDidChange, VuoList_VuoVideoInputDevice)) |
Removes an output trigger from the VuoVideoCaptureDeviceListener TriggerSet. | |
VuoVideoCapture | VuoVideoCapture_make (VuoVideoInputDevice device, VuoOutputTrigger(receivedFrame, VuoVideoFrame)) |
Creates a new VuoVideoCapture device. | |
void | VuoVideoCapture_startListening (VuoVideoCapture movie) |
Begins listening for video frames on the selected input device. | |
void | VuoVideoCapture_stopListening (VuoVideoCapture movie) |
Stops receiving frames (starts ignoring/dropping them). | |
void | VuoVideoCapture_setCallback (VuoVideoCapture movie, VuoOutputTrigger(receivedFrame, VuoVideoFrame)) |
Sets the image callback. | |
void | VuoVideoCapture_setSize (VuoVideoCapture movie, VuoInteger width, VuoInteger height) |
Specifies the desired image size. | |
typedef void* VuoVideoCapture |
An object for receiving video frames via AV Foundation.
Definition at line 23 of file VuoVideoCapture.h.
void VuoVideoCapture_addOnDevicesChangedCallback | ( | VuoOutputTrigger(devicesDidChange, VuoList_VuoVideoInputDevice) | ) |
Adds an output trigger to the VuoVideoCaptureDeviceListener TriggerSet to be fired when available input devices changes.
Definition at line 220 of file VuoVideoCapture.mm.
VuoList_VuoVideoInputDevice VuoVideoCapture_getInputDevices | ( | void | ) |
Returns the available input devices at this moment.
Returns the available input devices at this moment.
Definition at line 349 of file VuoVideoCapture.mm.
VuoVideoCapture VuoVideoCapture_make | ( | VuoVideoInputDevice | inputDevice, |
VuoOutputTrigger(receivedFrame, VuoVideoFrame) | |||
) |
Creates a new VuoVideoCapture device.
Does not start recording, you must call VuoVideoCapture_startListening() separately.
Creates a new VuoVideoCapture device.
Definition at line 532 of file VuoVideoCapture.mm.
void VuoVideoCapture_removeOnDevicesChangedCallback | ( | VuoOutputTrigger(devicesDidChange, VuoList_VuoVideoInputDevice) | ) |
Removes an output trigger from the VuoVideoCaptureDeviceListener TriggerSet.
Definition at line 211 of file VuoVideoCapture.mm.
void VuoVideoCapture_setCallback | ( | VuoVideoCapture | movie, |
VuoOutputTrigger(receivedFrame, VuoVideoFrame) | |||
) |
Sets the image callback.
Definition at line 739 of file VuoVideoCapture.mm.
void VuoVideoCapture_setSize | ( | VuoVideoCapture | movie, |
VuoInteger | width, | ||
VuoInteger | height | ||
) |
Specifies the desired image size.
Definition at line 613 of file VuoVideoCapture.mm.
void VuoVideoCapture_startListening | ( | VuoVideoCapture | p | ) |
Begins listening for video frames on the selected input device.
If an input device has been specified but not found in the available devices list, this will wait for the device to appear and begin playing as soon as it's found.
Begins listening for video frames on the selected input device.
Definition at line 705 of file VuoVideoCapture.mm.
void VuoVideoCapture_stopListening | ( | VuoVideoCapture | movie | ) |
Stops receiving frames (starts ignoring/dropping them).
Definition at line 722 of file VuoVideoCapture.mm.