Exemplo n.º 1
0
        public int MinLoopLengthFrames()
        {
            HeadTrack headtrack = _Sphere.GetComponent <HeadTrack>();
            int       frames    = (int)Math.Round(minLoopLengthSec * headtrack.GetVideoFps());

            return(frames);
        }
Exemplo n.º 2
0
        public virtual bool checkSalient(float currentTime, MultiplePlayerControl multiMedia, HeadTrack _headtrack)
        {
            if (_headTrack == null)
            {
                _headTrack = GetComponent <HeadTrack>();
            }
            MediaPlayer player = multiMedia.Player;

            float threshold = 1.0f / _headtrack.GetVideoFps();

            if (Math.Abs(currentTime - endTime) < threshold)
            {
                return(true);  // Saliency means we passed this clip. Can move pointer to next clip.
            }
            return(false);
        }