Search Results for

    Show / Hide Table of Contents

    Class VideoRender

    Helper class for everything related to setting up materials for rendering/resolving videos

    Inheritance
    System.Object
    VideoRender
    Namespace: RenderHeads.Media.AVProVideo
    Assembly: cs.temp.dll.dll
    Syntax
    public class VideoRender

    Fields

    Keyword_AlphaPackLeftRight

    Declaration
    public const string Keyword_AlphaPackLeftRight = "ALPHAPACK_LEFT_RIGHT"
    Field Value
    Type Description
    System.String

    Keyword_AlphaPackNone

    Declaration
    public const string Keyword_AlphaPackNone = "ALPHAPACK_NONE"
    Field Value
    Type Description
    System.String

    Keyword_AlphaPackTopBottom

    Declaration
    public const string Keyword_AlphaPackTopBottom = "ALPHAPACK_TOP_BOTTOM"
    Field Value
    Type Description
    System.String

    Keyword_ApplyGamma

    Declaration
    public const string Keyword_ApplyGamma = "APPLY_GAMMA"
    Field Value
    Type Description
    System.String

    Keyword_ForceEyeLeft

    Declaration
    public const string Keyword_ForceEyeLeft = "FORCEEYE_LEFT"
    Field Value
    Type Description
    System.String

    Keyword_ForceEyeNone

    Declaration
    public const string Keyword_ForceEyeNone = "FORCEEYE_NONE"
    Field Value
    Type Description
    System.String

    Keyword_ForceEyeRight

    Declaration
    public const string Keyword_ForceEyeRight = "FORCEEYE_RIGHT"
    Field Value
    Type Description
    System.String

    Keyword_LayoutEquirect180

    Declaration
    public const string Keyword_LayoutEquirect180 = "LAYOUT_EQUIRECT180"
    Field Value
    Type Description
    System.String

    Keyword_LayoutNone

    Declaration
    public const string Keyword_LayoutNone = "LAYOUT_NONE"
    Field Value
    Type Description
    System.String

    Keyword_StereoCustomUV

    Declaration
    public const string Keyword_StereoCustomUV = "STEREO_CUSTOM_UV"
    Field Value
    Type Description
    System.String

    Keyword_StereoDebug

    Declaration
    public const string Keyword_StereoDebug = "STEREO_DEBUG"
    Field Value
    Type Description
    System.String

    Keyword_StereoLeftRight

    Declaration
    public const string Keyword_StereoLeftRight = "STEREO_LEFT_RIGHT"
    Field Value
    Type Description
    System.String

    Keyword_StereoNone

    Declaration
    public const string Keyword_StereoNone = "MONOSCOPIC"
    Field Value
    Type Description
    System.String

    Keyword_StereoTopBottom

    Declaration
    public const string Keyword_StereoTopBottom = "STEREO_TOP_BOTTOM"
    Field Value
    Type Description
    System.String

    Keyword_StereoTwoTextures

    Declaration
    public const string Keyword_StereoTwoTextures = "STEREO_TWO_TEXTURES"
    Field Value
    Type Description
    System.String

    Keyword_UseHSBC

    Declaration
    public static string Keyword_UseHSBC
    Field Value
    Type Description
    System.String

    PropAlphaPack

    Declaration
    public static readonly LazyShaderProperty PropAlphaPack
    Field Value
    Type Description
    LazyShaderProperty

    PropApplyGamma

    Declaration
    public static readonly LazyShaderProperty PropApplyGamma
    Field Value
    Type Description
    LazyShaderProperty

    PropBrightness

    Declaration
    public static readonly LazyShaderProperty PropBrightness
    Field Value
    Type Description
    LazyShaderProperty

    PropChromaTex

    Declaration
    public static readonly LazyShaderProperty PropChromaTex
    Field Value
    Type Description
    LazyShaderProperty

    PropChromaTex_R

    Declaration
    public static readonly LazyShaderProperty PropChromaTex_R
    Field Value
    Type Description
    LazyShaderProperty

    PropContrast

    Declaration
    public static readonly LazyShaderProperty PropContrast
    Field Value
    Type Description
    LazyShaderProperty

    PropHue

    Declaration
    public static readonly LazyShaderProperty PropHue
    Field Value
    Type Description
    LazyShaderProperty

    PropInvGamma

    Declaration
    public static readonly LazyShaderProperty PropInvGamma
    Field Value
    Type Description
    LazyShaderProperty

    PropLayout

    Declaration
    public static readonly LazyShaderProperty PropLayout
    Field Value
    Type Description
    LazyShaderProperty

    PropMainTex_R

    Declaration
    public static readonly LazyShaderProperty PropMainTex_R
    Field Value
    Type Description
    LazyShaderProperty

    PropSaturation

    Declaration
    public static readonly LazyShaderProperty PropSaturation
    Field Value
    Type Description
    LazyShaderProperty

    PropStereo

    Declaration
    public static readonly LazyShaderProperty PropStereo
    Field Value
    Type Description
    LazyShaderProperty

    PropTextureMatrix

    Declaration
    public static readonly LazyShaderProperty PropTextureMatrix
    Field Value
    Type Description
    LazyShaderProperty

    PropVertScale

    Declaration
    public static readonly LazyShaderProperty PropVertScale
    Field Value
    Type Description
    LazyShaderProperty

    PropViewMatrix

    Declaration
    public static readonly LazyShaderProperty PropViewMatrix
    Field Value
    Type Description
    LazyShaderProperty

    Shader_IMGUI

    Declaration
    public const string Shader_IMGUI = "AVProVideo/Internal/IMGUI/Texture Transparent"
    Field Value
    Type Description
    System.String

    Shader_Preview

    Declaration
    public const string Shader_Preview = "AVProVideo/Internal/Preview"
    Field Value
    Type Description
    System.String

    Shader_Resolve

    Declaration
    public const string Shader_Resolve = "AVProVideo/Internal/Resolve"
    Field Value
    Type Description
    System.String

    Shader_ResolveOES

    Declaration
    public const string Shader_ResolveOES = "AVProVideo/Internal/ResolveOES"
    Field Value
    Type Description
    System.String

    Methods

    CreateIMGUIMaterial()

    Declaration
    public static Material CreateIMGUIMaterial()
    Returns
    Type Description
    Material

    CreateResolveMaterial(Boolean)

    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
    Type Description
    Texture

    RequiresResolve(ITextureProducer)

    Declaration
    public static bool RequiresResolve(ITextureProducer texture)
    Parameters
    Type Name Description
    ITextureProducer texture
    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
    Type Name Description
    Material resolveMaterial
    RenderTexture targetTexture
    ITextureProducer texture
    VideoRender.ResolveFlags flags
    ScaleMode scaleMode
    Returns
    Type Description
    RenderTexture

    SetupAlphaPackedMaterial(Material, AlphaPacking)

    Declaration
    public static void SetupAlphaPackedMaterial(Material material, AlphaPacking packing)
    Parameters
    Type Name Description
    Material material
    AlphaPacking packing

    SetupGammaMaterial(Material, Boolean)

    Declaration
    public static void SetupGammaMaterial(Material material, bool playerSupportsLinear)
    Parameters
    Type Name Description
    Material material
    System.Boolean playerSupportsLinear

    SetupGlobalDebugStereoTinting(Boolean)

    Declaration
    public static void SetupGlobalDebugStereoTinting(bool enabled)
    Parameters
    Type Name Description
    System.Boolean enabled

    SetupLayoutMaterial(Material, VideoMapping)

    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

    SetupResolveMaterial(Material, VideoResolveOptions)

    Declaration
    public static void SetupResolveMaterial(Material material, VideoResolveOptions options)
    Parameters
    Type Name Description
    Material material
    VideoResolveOptions options

    SetupStereoEyeModeMaterial(Material, StereoEye)

    Declaration
    public static void SetupStereoEyeModeMaterial(Material material, StereoEye mode)
    Parameters
    Type Name Description
    Material material
    StereoEye mode

    SetupStereoMaterial(Material, StereoPacking)

    Declaration
    public static void SetupStereoMaterial(Material material, StereoPacking packing)
    Parameters
    Type Name Description
    Material material
    StereoPacking packing

    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

    SetupVerticalFlipMaterial(Material, Boolean)

    Declaration
    public static void SetupVerticalFlipMaterial(Material material, bool flip)
    Parameters
    Type Name Description
    Material material
    System.Boolean flip
    In This Article