private static IntPtr Create(Context context, CodecID codecID, ProductionNode initializer) { IntPtr nodeHandle; UInt32 status = OpenNIImporter.xnCreateCodec(context.InternalObject, codecID.InternalValue, initializer.InternalObject, out nodeHandle); WrapperUtils.CheckStatus(status); return(nodeHandle); }
public void AddNodeToRecording(ProductionNode node, CodecID codec) { UInt32 status = OpenNIImporter.xnAddNodeToRecording(this.InternalObject, node.InternalObject, codec.InternalValue); WrapperUtils.CheckStatus(status); }
public Codec(Context context, CodecID codecID, ProductionNode initializer) : this(Create(context, codecID, initializer), false) { }