Esempio n. 1
0
        /// <summary>
        /// Enqueuing functions for the different recordings
        /// </summary>
        /// <author> Amirali Ghazi </author>
        #region EnqueueItemFunctions

        /// <summary>
        /// Enqueue a Bitmap to the videoStream recording queue
        /// </summary>
        /// <param name="e"></param>
        public static void EnqueueVideoStream(Bitmap e)
        {
            if (videoStreamQueue != null)
            {
                //Console.Out.WriteLine("stream");
                if (!videoStreamWriter.IsOpen)
                {
                    videoStreamWriter.Open(SavingTools.pathFolder + '/' + "stream" + ".avi", e.Width, e.Height, 30, VideoCodec.MPEG4, 1000000);
                }
                videoStreamQueue.EnqueueItem(e);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Enqueue a voice data wrapper to the voice recording queue
 /// </summary>
 /// <param name="fdw"></param>
 public static void EnqueueXMLVoice(float value)
 {
     xmlVoiceQueue.EnqueueItem(value);
 }
Esempio n. 3
0
 /// <summary>
 /// Enqueue a face data wrapper to the face recording queue
 /// </summary>
 /// <param name="fdw"></param>
 public static void EnqueueXMLFace(FaceDataWrapper fdw)
 {
     xmlFaceQueue.EnqueueItem(fdw);
 }
Esempio n. 4
0
 /// <summary>
 /// Enqueue a skeleton to the skeleton recording queue
 /// </summary>
 /// <param name="sk">The skeleton to enqueue</param>
 public static void EnqueueXMLSkeleton(Skeleton sk)
 {
     xmlSkeletonQueue.EnqueueItem(sk);
 }