Class VideoTexture
public class VideoTexture : IDisposable
- Inheritance
-
objectVideoTexture
- Implements
- Extension Methods
Constructors
VideoTexture(GraphicsDevice, IServiceRegistry, int, int, int)
public VideoTexture(GraphicsDevice graphicsDevice, IServiceRegistry serviceRegistry, int width, int height, int maxMipMapCount)
Parameters
graphicsDeviceGraphicsDeviceserviceRegistryIServiceRegistrywidthintheightintmaxMipMapCountint
Methods
CopyDecoderOutputToTopLevelMipmap(GraphicsContext, Texture)
public void CopyDecoderOutputToTopLevelMipmap(GraphicsContext context, Texture decoderOutputTexture)
Parameters
contextGraphicsContextdecoderOutputTextureTexture
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GenerateMipMaps(GraphicsContext)
public void GenerateMipMaps(GraphicsContext graphicsContext)
Parameters
graphicsContextGraphicsContext
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
newTargetTextureTexture
UpdateTargetTexture(Texture)
Update the current target texture the video should be decoding into.
public void UpdateTargetTexture(Texture newTargetTexture)
Parameters
newTargetTextureTexture
UpdateTopLevelMipmapFromData(GraphicsContext, VideoImage)
public void UpdateTopLevelMipmapFromData(GraphicsContext context, VideoImage image)
Parameters
contextGraphicsContextimageVideoImage