Class VideoRender
Helper class for everything related to setting up materials for rendering/resolving videos
Inheritance
System.Object
VideoRender
Assembly: cs.temp.dll.dll
Fields
Declaration
public const string Keyword_AlphaPackLeftRight = "ALPHAPACK_LEFT_RIGHT"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_AlphaPackNone = "ALPHAPACK_NONE"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_AlphaPackTopBottom = "ALPHAPACK_TOP_BOTTOM"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_ApplyGamma = "APPLY_GAMMA"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_ForceEyeLeft = "FORCEEYE_LEFT"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_ForceEyeNone = "FORCEEYE_NONE"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_ForceEyeRight = "FORCEEYE_RIGHT"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_LayoutEquirect180 = "LAYOUT_EQUIRECT180"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_LayoutNone = "LAYOUT_NONE"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_StereoCustomUV = "STEREO_CUSTOM_UV"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_StereoDebug = "STEREO_DEBUG"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_StereoLeftRight = "STEREO_LEFT_RIGHT"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_StereoNone = "MONOSCOPIC"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Keyword_StereoTopBottom = "STEREO_TOP_BOTTOM"
Field Value
Type |
Description |
System.String |
|
Keyword_StereoTwoTextures
Declaration
public const string Keyword_StereoTwoTextures = "STEREO_TWOTEXTURES"
Field Value
Type |
Description |
System.String |
|
Declaration
public static string Keyword_UseHSBC
Field Value
Type |
Description |
System.String |
|
Declaration
public static readonly LazyShaderProperty PropAlphaPack
Field Value
Declaration
public static readonly LazyShaderProperty PropApplyGamma
Field Value
Declaration
public static readonly LazyShaderProperty PropBrightness
Field Value
Declaration
public static readonly LazyShaderProperty PropChromaTex
Field Value
Declaration
public static readonly LazyShaderProperty PropContrast
Field Value
Declaration
public static readonly LazyShaderProperty PropHue
Field Value
Declaration
public static readonly LazyShaderProperty PropInvGamma
Field Value
Declaration
public static readonly LazyShaderProperty PropLayout
Field Value
Declaration
public static readonly LazyShaderProperty PropSaturation
Field Value
Declaration
public static readonly LazyShaderProperty PropStereo
Field Value
PropTextureMatrix
Declaration
public static readonly LazyShaderProperty PropTextureMatrix
Field Value
Declaration
public static readonly LazyShaderProperty PropVertScale
Field Value
Declaration
public static readonly LazyShaderProperty PropViewMatrix
Field Value
Declaration
public const string Shader_IMGUI = "AVProVideo/Internal/IMGUI/Texture Transparent"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Shader_Preview = "AVProVideo/Internal/Preview"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Shader_Resolve = "AVProVideo/Internal/Resolve"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string Shader_ResolveOES = "AVProVideo/Internal/ResolveOES"
Field Value
Type |
Description |
System.String |
|
Methods
Declaration
public static Material CreateIMGUIMaterial()
Returns
Type |
Description |
Material |
|
Declaration
public static Material CreateResolveMaterial(bool usingAndroidOES)
Parameters
Type |
Name |
Description |
System.Boolean |
usingAndroidOES |
|
Returns
Type |
Description |
Material |
|
DrawTexture(Rect, Texture, ScaleMode, AlphaPacking, Single, Material)
Declaration
public static void DrawTexture(Rect destRect, Texture texture, ScaleMode scaleMode, AlphaPacking alphaPacking, float pixelAspectRatio, Material material)
Parameters
Type |
Name |
Description |
Rect |
destRect |
|
Texture |
texture |
|
ScaleMode |
scaleMode |
|
AlphaPacking |
alphaPacking |
|
System.Single |
pixelAspectRatio |
|
Material |
material |
|
GetResolveTextureSize(AlphaPacking, StereoPacking, StereoEye, Single, Matrix4x4, ref Int32, ref Int32)
Declaration
public static void GetResolveTextureSize(AlphaPacking alphaPacking, StereoPacking stereoPacking, StereoEye eyeMode, float pixelAspectRatio, Matrix4x4 textureXfrm, ref int width, ref int height)
Parameters
Type |
Name |
Description |
AlphaPacking |
alphaPacking |
|
StereoPacking |
stereoPacking |
|
StereoEye |
eyeMode |
|
System.Single |
pixelAspectRatio |
|
Matrix4x4 |
textureXfrm |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
GetTexture(MediaPlayer, Int32)
Declaration
public static Texture GetTexture(MediaPlayer mediaPlayer, int textureIndex)
Parameters
Type |
Name |
Description |
MediaPlayer |
mediaPlayer |
|
System.Int32 |
textureIndex |
|
Returns
RequiresResolve(ITextureProducer)
Declaration
public static bool RequiresResolve(ITextureProducer texture)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ResolveVideoToRenderTexture(Material, RenderTexture, ITextureProducer, VideoRender.ResolveFlags, ScaleMode)
Declaration
public static RenderTexture ResolveVideoToRenderTexture(Material resolveMaterial, RenderTexture targetTexture, ITextureProducer texture, VideoRender.ResolveFlags flags, ScaleMode scaleMode = null)
Parameters
Returns
Type |
Description |
RenderTexture |
|
Declaration
public static void SetupAlphaPackedMaterial(Material material, AlphaPacking packing)
Parameters
Type |
Name |
Description |
Material |
material |
|
AlphaPacking |
packing |
|
Declaration
public static void SetupGammaMaterial(Material material, bool playerSupportsLinear)
Parameters
Type |
Name |
Description |
Material |
material |
|
System.Boolean |
playerSupportsLinear |
|
Declaration
public static void SetupGlobalDebugStereoTinting(bool enabled)
Parameters
Type |
Name |
Description |
System.Boolean |
enabled |
|
Declaration
public static void SetupLayoutMaterial(Material material, VideoMapping mapping)
Parameters
Type |
Name |
Description |
Material |
material |
|
VideoMapping |
mapping |
|
SetupMaterialForMedia(Material, MediaPlayer, Int32, Texture, Boolean)
Declaration
public static void SetupMaterialForMedia(Material material, MediaPlayer mediaPlayer, int texturePropId = -1, Texture fallbackTexture = null, bool forceFallbackTexture = false)
Parameters
Type |
Name |
Description |
Material |
material |
|
MediaPlayer |
mediaPlayer |
|
System.Int32 |
texturePropId |
|
Texture |
fallbackTexture |
|
System.Boolean |
forceFallbackTexture |
|
Declaration
public static void SetupResolveMaterial(Material material, VideoResolveOptions options)
Parameters
Declaration
public static void SetupStereoEyeModeMaterial(Material material, StereoEye mode)
Parameters
Type |
Name |
Description |
Material |
material |
|
StereoEye |
mode |
|
Declaration
public static void SetupStereoMaterial(Material material, StereoPacking packing)
Parameters
SetupTextureMatrix(Material, Matrix4x4)
Declaration
public static void SetupTextureMatrix(Material material, Matrix4x4 transform)
Parameters
Type |
Name |
Description |
Material |
material |
|
Matrix4x4 |
transform |
|
SetupTextureMatrix(Material, Single[])
Declaration
public static void SetupTextureMatrix(Material material, float[] transform)
Parameters
Type |
Name |
Description |
Material |
material |
|
System.Single[] |
transform |
|
Declaration
public static void SetupVerticalFlipMaterial(Material material, bool flip)
Parameters
Type |
Name |
Description |
Material |
material |
|
System.Boolean |
flip |
|