Пример #1
0
        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);
        }
Пример #2
0
 public Codec(Context context, CodecID codecID, ProductionNode initializer) :
     this(context, Create(context, codecID, initializer), false)
 {
 }
Пример #3
0
        public void AddNodeToRecording(ProductionNode node, CodecID codec)
        {
            int status = SafeNativeMethods.xnAddNodeToRecording(this.InternalObject, node.InternalObject, codec.InternalValue);

            WrapperUtils.ThrowOnError(status);
        }