public bool ContainsSectionTest(long _start, long _end, long _start2, long _end2)
        {
            VideoSection section  = new VideoSection(_start, _end);
            VideoSection section2 = new VideoSection(_start2, _end2);

            return(section.Contains(section2));
        }
        private bool UpdateCurrent(long timestamp)
        {
            if (generator == null || !workingZone.Contains(timestamp))
            {
                return(false);
            }

            if (current != null && current.Image != null)
            {
                generator.DisposePrevious(current.Image);
            }

            Bitmap bmp = generator.Generate(timestamp);

            current.Image     = bmp;
            current.Timestamp = timestamp;
            return(true);
        }
Beispiel #3
0
        private bool UpdateCurrent(long timestamp)
        {
            // We can generate at any timestamp, but we still need to report when the
            // end of the working zone is reached. Otherwise frame enumerators like
            // in video save would just go on for ever.
            if (generator == null || !workingZone.Contains(timestamp))
            {
                return(false);
            }

            if (current != null && current.Image != null)
            {
                generator.DisposePrevious(current.Image);
            }

            SystemBitmap bmp = generator.Generate(timestamp);

            current.Image     = bmp;
            current.Timestamp = timestamp;
            return(true);
        }
        public bool ContainsValueTest(long _start, long _end, long _value)
        {
            VideoSection section = new VideoSection(_start, _end);

            return(section.Contains(_value));
        }