WSCLib SDK 1.0.0
GPU-accelerated video output framework for Windows
Loading...
Searching...
No Matches
Capture Management

Functions

int WSCI_CreateCapture (int videoDeviceIndex, const WSCICaptureFormat *format)
 Create a video capture from a device index.
WSCIResult WSCI_DestroyCapture (int captureId)
 Destroy a capture and free resources.

Detailed Description

Function Documentation

◆ WSCI_CreateCapture()

int WSCI_CreateCapture ( int videoDeviceIndex,
const WSCICaptureFormat * format )

Create a video capture from a device index.

Parameters
videoDeviceIndexIndex from WSCI_EnumVideoDevices().
formatRequested format, or NULL for device defaults.
Returns
Capture ID (>= 0) on success, or negative error code.

◆ WSCI_DestroyCapture()

WSCIResult WSCI_DestroyCapture ( int captureId)

Destroy a capture and free resources.

Parameters
captureIdCapture ID.
Returns
WSCI_OK on success.