Table of Contents

Class VideoTexture

Namespace
Stride.Video
Assembly
Stride.Video.dll
public class VideoTexture : IDisposable
Inheritance
VideoTexture
Implements
Extension Methods

Constructors

VideoTexture(GraphicsDevice, IServiceRegistry, int, int, int)

public VideoTexture(GraphicsDevice graphicsDevice, IServiceRegistry serviceRegistry, int width, int height, int maxMipMapCount)

Parameters

graphicsDevice GraphicsDevice
serviceRegistry IServiceRegistry
width int
height int
maxMipMapCount int

Methods

CopyDecoderOutputToTopLevelMipmap(GraphicsContext, Texture)

public void CopyDecoderOutputToTopLevelMipmap(GraphicsContext context, Texture decoderOutputTexture)

Parameters

context GraphicsContext
decoderOutputTexture Texture

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GenerateMipMaps(GraphicsContext)

public void GenerateMipMaps(GraphicsContext graphicsContext)

Parameters

graphicsContext GraphicsContext

SetTargetContentToOriginalPlaceholder()

Reverts the content of the target texture to the original placeholder.

public void SetTargetContentToOriginalPlaceholder()

SetTargetContentToVideoStream(Texture)

Swap the mip mapped video texture with the one supplied. This way all references stay intact but the contents of the texture change.

public void SetTargetContentToVideoStream(Texture newTargetTexture)

Parameters

newTargetTexture Texture

UpdateTargetTexture(Texture)

Update the current target texture the video should be decoding into.

public void UpdateTargetTexture(Texture newTargetTexture)

Parameters

newTargetTexture Texture

UpdateTopLevelMipmapFromData(GraphicsContext, VideoImage)

public void UpdateTopLevelMipmapFromData(GraphicsContext context, VideoImage image)

Parameters

context GraphicsContext
image VideoImage