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