docs.unity3d.com
    Show / Hide Table of Contents

    Class Transcoder

    Provide a way to share everything common to all transcoder. Mainly the compute shader management.

    Inheritance
    Object
    NodeRuntime
    Transcoder
    CorrectPointCloudMotion
    DepthToPointCloud
    IntensityBufferToTexture
    ParallelStereo
    PhotosensorEncoder
    PointCloudToDepth
    RenderTextureTranscoder
    SegmentationAsBuffer
    ShotNoise
    YDLidarX4ToPhotosensorOutputBuffer
    YDLidarX4ToPointCloud
    Inherited Members
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.Enable(Scheduler.ClockState)
    NodeRuntime.Disable()
    NodeRuntime.OnTick(Double, Double, Scheduler.ClockState, Scheduler.Signal)
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(String, Type, String, PortDirection, FieldExtra, IPortType)
    NodeRuntime.OnPortRemoved(String)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    Namespace: Mechatronics.SensorSDK
    Syntax
    public abstract class Transcoder : NodeRuntime

    Fields

    _computeKernelIdx

    Kernel index used to transcode the data

    Declaration
    protected int _computeKernelIdx
    Field Value
    Type Description
    Int32

    _computeShader

    Compute shader reference used to transcode the data.

    Declaration
    protected ComputeShader _computeShader
    Field Value
    Type Description
    ComputeShader

    inTranscode

    Declaration
    [Tooltip("Graphic context used to transcode data.")]
    [Field("InTranscode", PortDirection.Left, FieldExtra.ChangeEvent)]
    [SerializeField]
    protected PortType<CustomPassContext> inTranscode
    Field Value
    Type Description
    PortType<CustomPassContext>

    outTranscode

    Declaration
    [Field("OutTranscode", PortDirection.Right, FieldExtra.Write)]
    [SerializeField]
    protected PortType<CustomPassContext> outTranscode
    Field Value
    Type Description
    PortType<CustomPassContext>

    Methods

    DisableInterfaceOnChangeEvent()

    Disable on change event on the inTranscode port.

    Declaration
    protected virtual void DisableInterfaceOnChangeEvent()

    EnableInterfaceOnChangeEvent()

    Enable on change event on the inTranscode port to chain graphic command to execute transcoding.

    Declaration
    protected virtual void EnableInterfaceOnChangeEvent()

    InitializeComputeShader(String, String)

    Initialize the compute buffer and the kernel given in parameters

    Declaration
    protected virtual void InitializeComputeShader(string computeShaderName, string kernelName)
    Parameters
    Type Name Description
    String computeShaderName

    Name of the compute shader to load.

    String kernelName

    Name of the kernel in the compute shader to find.

    Release()

    Release graphic resources.

    Declaration
    protected virtual void Release()

    Transcode(CustomPassContext)

    Provide an interface to all transcoder to execute transcoding

    Declaration
    protected abstract void Transcode(CustomPassContext ctx)
    Parameters
    Type Name Description
    CustomPassContext ctx

    A graphic context with a command buffer.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023