SAFR Windows SDK
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
RealNetworks.CameraKit.Accelerator Class Reference

An accelerator which provides efficient GPU-based video decoding and image processing. More...

Inheritance diagram for RealNetworks.CameraKit.Accelerator:

Public Member Functions

void Dispose ()
 
void Dispose (bool fromIDisposable)
 

Static Public Member Functions

static Accelerator Create (Adapter adapter)
 Creates an accelerator for the provided adapter. More...
 

Properties

static Accelerator Shared [get]
 The shared accelerator which represents the primary display. Returns null if acceleration isn't supported. More...
 
bool HasCudaSupport [get]
 Returns true if the accelerator supports Nvidia CUDA operations More...
 
int CudaDeviceId [get]
 Returns the CUDA device ID of teh CUDA device backing this accelerator if the device is a CUDA device. Otherwise -1 More...
 

Events

EventHandler DidLoseDevice
 Invoked if the underlaying DirectX hardware has been removed or reset. The receiver should create a new accelerator instance (e.g. by calling Accelerator.Shared again) and it should use this new accelerator instance exclusively from this moment on. More...
 

Detailed Description

An accelerator which provides efficient GPU-based video decoding and image processing.

Member Function Documentation

◆ Create()

static Accelerator RealNetworks.CameraKit.Accelerator.Create ( Adapter  adapter)
static

Creates an accelerator for the provided adapter.

Parameters
adapterthe adapter; null means the primary display adapter
Returns
the accelerator; null if creation failed

◆ Dispose() [1/2]

void RealNetworks.CameraKit.Accelerator.Dispose ( )

◆ Dispose() [2/2]

void RealNetworks.CameraKit.Accelerator.Dispose ( bool  fromIDisposable)

Property Documentation

◆ CudaDeviceId

int RealNetworks.CameraKit.Accelerator.CudaDeviceId
get

Returns the CUDA device ID of teh CUDA device backing this accelerator if the device is a CUDA device. Otherwise -1

◆ HasCudaSupport

bool RealNetworks.CameraKit.Accelerator.HasCudaSupport
get

Returns true if the accelerator supports Nvidia CUDA operations

◆ Shared

Accelerator RealNetworks.CameraKit.Accelerator.Shared
staticget

The shared accelerator which represents the primary display. Returns null if acceleration isn't supported.

Event Documentation

◆ DidLoseDevice

EventHandler RealNetworks.CameraKit.Accelerator.DidLoseDevice

Invoked if the underlaying DirectX hardware has been removed or reset. The receiver should create a new accelerator instance (e.g. by calling Accelerator.Shared again) and it should use this new accelerator instance exclusively from this moment on.