WSCLib SDK 1.0.0
GPU-accelerated video output framework for Windows
Loading...
Searching...
No Matches
Color / Crop / Transform / Overlay

Functions

WSCResult WSC_SetColorParams (int outputId, const WSCColorParams *params)
 Set color adjustment for an output.
WSCResult WSC_SetCrop (int outputId, const WSCCropRect *crop)
 Set crop rectangle for an output.
WSCResult WSC_SetTextOverlay (int outputId, const WSCTextOverlay *overlay)
 Set a text overlay for an output.
WSCResult WSC_SetImageOverlay (int outputId, const WSCImageOverlay *overlay)
 Set an image overlay (logo/watermark) from a file.
WSCResult WSC_SetImageOverlayFromMemory (int outputId, const void *data, int dataSize, int x, int y, int width, int height, float opacity)
 Set an image overlay from a memory buffer.
WSCResult WSC_SetFlip (int outputId, int flipX, int flipY)
 Set horizontal/vertical flip for an output.
WSCResult WSC_SetRotation (int outputId, int degrees)
 Set rotation for an output.

Detailed Description

Function Documentation

◆ WSC_SetColorParams()

WSCResult WSC_SetColorParams ( int outputId,
const WSCColorParams * params )

Set color adjustment for an output.

Parameters
outputIdOutput ID.
paramsColor parameters, or NULL to reset to defaults.
Returns
WSC_OK on success.
See also
WSCColorParams

◆ WSC_SetCrop()

WSCResult WSC_SetCrop ( int outputId,
const WSCCropRect * crop )

Set crop rectangle for an output.

Parameters
outputIdOutput ID.
cropNormalized crop rect, or NULL to reset (no crop).
Returns
WSC_OK on success.
See also
WSCCropRect

◆ WSC_SetTextOverlay()

WSCResult WSC_SetTextOverlay ( int outputId,
const WSCTextOverlay * overlay )

Set a text overlay for an output.

Parameters
outputIdOutput ID.
overlayText overlay parameters, or NULL to clear.
Returns
WSC_OK on success.

◆ WSC_SetImageOverlay()

WSCResult WSC_SetImageOverlay ( int outputId,
const WSCImageOverlay * overlay )

Set an image overlay (logo/watermark) from a file.

Supports PNG, JPEG, BMP, GIF, TIFF. Image is loaded once and cached.

Parameters
outputIdOutput ID.
overlayImage overlay parameters, or NULL to clear.
Returns
WSC_OK on success.

◆ WSC_SetImageOverlayFromMemory()

WSCResult WSC_SetImageOverlayFromMemory ( int outputId,
const void * data,
int dataSize,
int x,
int y,
int width,
int height,
float opacity )

Set an image overlay from a memory buffer.

Parameters
outputIdOutput ID.
dataPointer to image data (PNG/JPEG/BMP bytes).
dataSizeSize of data in bytes.
x,yPosition in pixels.
widthDisplay width (0 = original).
heightDisplay height (0 = original).
opacity0.0–1.0.
Returns
WSC_OK on success.

◆ WSC_SetFlip()

WSCResult WSC_SetFlip ( int outputId,
int flipX,
int flipY )

Set horizontal/vertical flip for an output.

Parameters
outputIdOutput ID.
flipX1 to flip horizontally, 0 to disable.
flipY1 to flip vertically, 0 to disable.
Returns
WSC_OK on success.

◆ WSC_SetRotation()

WSCResult WSC_SetRotation ( int outputId,
int degrees )

Set rotation for an output.

Parameters
outputIdOutput ID.
degreesRotation in degrees. Only 0, 90, 180, 270 are supported.
Returns
WSC_OK on success.