Interface ITextureProducer
Namespace: RenderHeads.Media.AVProVideo
Assembly: cs.temp.dll.dll
Syntax
public interface ITextureProducer
Methods
GetAffineTransform()
The affine transform of the texture as an array of six floats: [a, b, c, d, tx, ty].
Declaration
float[] GetAffineTransform()
Returns
| Type | Description |
|---|---|
| System.Single[] |
GetCompatibleRenderTextureFormat(GetCompatibleRenderTextureFormatOptions, Int32)
Get a render texture format that is compatible with the textures internal format
Declaration
RenderTextureFormat GetCompatibleRenderTextureFormat(GetCompatibleRenderTextureFormatOptions options = GetCompatibleRenderTextureFormatOptions.Default, int plane = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCompatibleRenderTextureFormatOptions | options | Any options that may change the choice of render texture format, defaults to None |
| System.Int32 | plane | Index of the plane to get compatible render texture format for, defaults to the first plane |
Returns
| Type | Description |
|---|---|
| RenderTextureFormat | A compatible render texture format |
GetTexture(Int32)
Returns the Unity texture containing the current frame image. The texture pointer will return null while the video is loading This texture usually remains the same for the duration of the video. There are cases when this texture can change, for instance: if the graphics device is recreated, a new video is loaded, or if an adaptive stream (eg HLS) is used and it switches video streams.
Declaration
Texture GetTexture(int index = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Returns
| Type | Description |
|---|---|
| Texture |
GetTextureAlphaPacking()
Returns the type of packing used for alpha content
Declaration
AlphaPacking GetTextureAlphaPacking()
Returns
| Type | Description |
|---|---|
| AlphaPacking |
GetTextureCount()
Gets the number of textures produced by the media player.
Declaration
int GetTextureCount()
Returns
| Type | Description |
|---|---|
| System.Int32 |
GetTextureFrameCount()
Returns a count of how many times the texture has been updated
Declaration
int GetTextureFrameCount()
Returns
| Type | Description |
|---|---|
| System.Int32 |
GetTextureMatrix()
The full 4x4 transform of the texture
Declaration
Matrix4x4 GetTextureMatrix()
Returns
| Type | Description |
|---|---|
| Matrix4x4 |
GetTexturePixelAspectRatio()
Returns the DAR/SAR ratio
Declaration
float GetTexturePixelAspectRatio()
Returns
| Type | Description |
|---|---|
| System.Single |
GetTextureStereoPacking()
Returns the type of packing used for stereo content
Declaration
StereoPacking GetTextureStereoPacking()
Returns
| Type | Description |
|---|---|
| StereoPacking |
GetTextureTimeStamp()
Returns the presentation time stamp of the current texture
Declaration
long GetTextureTimeStamp()
Returns
| Type | Description |
|---|---|
| System.Int64 |
GetTextureTransparency()
Returns the whether the texture has transparency
Declaration
TransparencyMode GetTextureTransparency()
Returns
| Type | Description |
|---|---|
| TransparencyMode |
GetYpCbCrTransform()
Returns the current transformation required to convert from YpCbCr to RGB colorspaces.
Declaration
Matrix4x4 GetYpCbCrTransform()
Returns
| Type | Description |
|---|---|
| Matrix4x4 |
RequiresVerticalFlip()
Returns true if the image on the texture is upside-down
Declaration
bool RequiresVerticalFlip()
Returns
| Type | Description |
|---|---|
| System.Boolean |
SupportsTextureFrameCount()
Returns whether this platform supports counting the number of times the texture has been updated
Declaration
bool SupportsTextureFrameCount()
Returns
| Type | Description |
|---|---|
| System.Boolean |