![]() |
WSCLib SDK 1.0.0
GPU-accelerated video output framework for Windows
|
WSCLibInput — Camera capture and audio input API. More...
#include <windows.h>Go to the source code of this file.
Data Structures | |
| struct | WSCIVersion |
| Version information structure. More... | |
| struct | WSCIDeviceInfo |
| Device info returned by enumeration. More... | |
| struct | WSCICaptureFormat |
| Capture format parameters (optional). More... | |
| struct | WSCIAudioFormat |
| Audio format parameters for WASAPI. More... | |
| struct | WSCIAudioOutputInfo |
| Audio output device info. More... | |
Macros | |
| #define | WSCI_API extern "C" __declspec(dllexport) |
| #define | WSCI_VERSION_MAJOR 1 |
| #define | WSCI_VERSION_MINOR 0 |
| #define | WSCI_VERSION_PATCH 0 |
| #define | WSCI_VERSION_STRING "1.0.0" |
Enumerations | |
| enum | WSCIResult { WSCI_OK = 0 , WSCI_ERROR_NOT_INIT = -200 , WSCI_ERROR_INVALID_PARAM = -201 , WSCI_ERROR_MF_FAIL = -202 , WSCI_ERROR_INVALID_ID = -203 , WSCI_ERROR_NOT_ACTIVE = -204 , WSCI_ERROR_ALLOC_FAIL = -205 , WSCI_ERROR_NO_DEVICE = -206 , WSCI_ERROR_FORMAT_FAIL = -207 } |
| Result codes returned by WSCLibInput functions. More... | |
| enum | WSCIDeviceType { WSCI_DEVICE_VIDEO = 1 , WSCI_DEVICE_AUDIO = 2 } |
| Device type flags. More... | |
| enum | WSCICaptureState { WSCI_STATE_IDLE = 0 , WSCI_STATE_RUNNING = 1 , WSCI_STATE_STOPPED = 2 , WSCI_STATE_ERROR = 3 } |
| Capture state. More... | |
Functions | |
| WSCIVersion | WSCI_GetVersion () |
| Get WSCLibInput version info. | |
| WSCIResult | WSCI_Init () |
| Initialize Media Foundation for capture. | |
| void | WSCI_Shutdown () |
| Shut down and release all captures. | |
| int | WSCI_EnumVideoDevices (WSCIDeviceInfo *infos, int maxCount) |
| Enumerate video capture devices (webcams, capture cards). | |
| int | WSCI_EnumAudioDevices (WSCIDeviceInfo *infos, int maxCount) |
| Enumerate audio capture (input) devices. | |
| int | WSCI_EnumAudioOutputDevices (WSCIAudioOutputInfo *infos, int maxCount) |
| Enumerate audio output (render) devices. | |
| 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. | |
| WSCIResult | WSCI_StartCapture (int captureId) |
| Start capturing frames. | |
| WSCIResult | WSCI_StopCapture (int captureId) |
| Stop capturing. | |
| WSCICaptureState | WSCI_GetCaptureState (int captureId) |
| Get capture state. | |
| WSCIResult | WSCI_GetCaptureInfo (int captureId, int *width, int *height, int *fps) |
| Get actual capture resolution (available after StartCapture). | |
| WSCIResult | WSCI_SetAudioDevice (int captureId, int audioDeviceIndex) |
| Attach an audio input device to a capture. | |
| WSCIResult | WSCI_SetAudioOutput (int captureId, int outputDeviceIndex) |
| Select audio output device for playthrough. | |
| WSCIResult | WSCI_SetAudioFormat (int captureId, const WSCIAudioFormat *format) |
| Set audio format parameters. | |
| WSCIResult | WSCI_SetAudioVolume (int captureId, float volume) |
| Set audio volume. | |
| float | WSCI_GetAudioVolume (int captureId) |
| Get current audio volume. | |
| WSCIResult | WSCI_SetAudioMute (int captureId, int mute) |
| Set audio mute state. | |
| int | WSCI_GetAudioMute (int captureId) |
| Get audio mute state. | |
| WSCIResult | WSCI_AttachOutput (int captureId, int outputId) |
| Attach a WSCLib output — each captured frame auto-submits to WSC_SubmitFrame(). | |
| WSCIResult | WSCI_DetachOutput (int captureId, int outputId) |
| Detach a WSCLib output from this capture. | |
WSCLibInput — Camera capture and audio input API.
Provides enumeration of video/audio devices, capture lifecycle, audio format configuration, and automatic frame delivery to WSCLib outputs.
| #define WSCI_API extern "C" __declspec(dllexport) |