You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
918 B

// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.
namespace Intel.RealSense
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
public class UnitsTransform : ProcessingBlock
{
private static IntPtr Create()
{
object error;
return NativeMethods.rs2_create_units_transform(out error);
}
internal UnitsTransform(IntPtr ptr)
: base(ptr)
{
}
public UnitsTransform()
: base(Create())
{
}
[Obsolete("This method is obsolete. Use Process method instead")]
public VideoFrame ApplyFilter(Frame original, FramesReleaser releaser = null)
{
return Process(original).DisposeWith(releaser) as VideoFrame;
}
}
}