Class VideoTexture
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
GraphicsDeviceserviceRegistry
IServiceRegistrywidth
intheight
intmaxMipMapCount
int
Methods
CopyDecoderOutputToTopLevelMipmap(GraphicsContext, Texture)
public void CopyDecoderOutputToTopLevelMipmap(GraphicsContext context, Texture decoderOutputTexture)
Parameters
context
GraphicsContextdecoderOutputTexture
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
GraphicsContextimage
VideoImage