Beispiel #1
0
        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);
        }
Beispiel #2
0
        public void AddNodeToRecording(ProductionNode node, CodecID codec)
        {
            UInt32 status = OpenNIImporter.xnAddNodeToRecording(this.InternalObject, node.InternalObject, codec.InternalValue);

            WrapperUtils.CheckStatus(status);
        }
Beispiel #3
0
 public Codec(Context context, CodecID codecID, ProductionNode initializer) :
     this(Create(context, codecID, initializer), false)
 {
 }