SplitCam plugins  1.0.0
Get your own video or still image source as an integral part of SplitCam user interface
Public Types | Public Member Functions | List of all members
splitcam::plugin::IImageSource Class Referenceabstract

#include <splitcam_plugin.h>

Public Types

using DataCallback = void(__stdcall *)(const wchar_t *srcId, ImageFormat format, const uint8_t *data, const size_t width, const size_t height, void *param)
 

Public Member Functions

virtual GUID iid () const =0
 
virtual ImageFormat getFormat () const =0
 
virtual void setDataCallback (DataCallback function, void *param)=0
 

Detailed Description

Helper pure virtual class defining which function set must be implemented in this interface.

Member Typedef Documentation

◆ DataCallback

Image source callback function used to update the image currently presented to the program user.

Parameters
srcIdThe string identifier of the source whose image should be updated
formatImage format as one of ImageFormat values
dataPointer to actual data of the image
widthWidth of the image in pixels
heightHeight of the image in pixels
paramSplitCam parameter provided in with a call to IImageSource::setDataCallback function

Member Function Documentation

◆ getFormat()

virtual ImageFormat splitcam::plugin::IImageSource::getFormat ( ) const
pure virtual

A wrapper around exported getImageFormat() function

◆ iid()

virtual GUID splitcam::plugin::IImageSource::iid ( ) const
pure virtual

A wrapper around exported getImageInterfaceId() function

◆ setDataCallback()

virtual void splitcam::plugin::IImageSource::setDataCallback ( DataCallback  function,
void *  param 
)
pure virtual