C# Класс CustomVideoEffect.VideoEffects.GrayscaleVideoEffect

Applies custom video effect to a media clip, transforming RGB colours to grayscale. Please note that video effects must be implemented in Windows Runtime Components.
Наследование: IBasicVideoEffect
Показать файл Открыть проект

Открытые методы

Метод Описание
Close ( MediaEffectClosedReason reason ) : void

Called when the video effect is unloaded, and used for freeing any used resources.

DiscardQueuedFrames ( ) : void

Called when the decoding process needs to skip frames.

ProcessFrame ( ProcessVideoFrameContext context ) : void

Used for applying our video effect to a single frame.

SetEncodingProperties ( VideoEncodingProperties encodingProperties, IDirect3DDevice device ) : void

Called when the encoding properties change.

SetProperties ( IPropertySet configuration ) : void

Called for passing any custom parameters to the video effect.

Описание методов

Close() публичный Метод

Called when the video effect is unloaded, and used for freeing any used resources.
public Close ( MediaEffectClosedReason reason ) : void
reason MediaEffectClosedReason
Результат void

DiscardQueuedFrames() публичный Метод

Called when the decoding process needs to skip frames.
public DiscardQueuedFrames ( ) : void
Результат void

ProcessFrame() публичный Метод

Used for applying our video effect to a single frame.
public ProcessFrame ( ProcessVideoFrameContext context ) : void
context ProcessVideoFrameContext
Результат void

SetEncodingProperties() публичный Метод

Called when the encoding properties change.
public SetEncodingProperties ( VideoEncodingProperties encodingProperties, IDirect3DDevice device ) : void
encodingProperties Windows.Media.MediaProperties.VideoEncodingProperties
device IDirect3DDevice
Результат void

SetProperties() публичный Метод

Called for passing any custom parameters to the video effect.
public SetProperties ( IPropertySet configuration ) : void
configuration IPropertySet
Результат void