Class SingleTimestampMovieSampler

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, adams.core.Stoppable, Serializable

    public class SingleTimestampMovieSampler
    extends AbstractBufferedImageMovieImageSampler
    TODO: what class does.
    See Also:
    Serialized Form
    • Field Detail

      • m_TimeStampLong

        protected long m_TimeStampLong
        List of time stamps to sample
      • m_Timestamp

        protected adams.core.base.BaseTimeMsec m_Timestamp
        the timestamps to grab.
      • m_MediaPlayer

        protected m_MediaPlayer
        headless media player
      • m_TargetTime

        protected long m_TargetTime
      • m_Samples

        protected List<> m_Samples
        the samples.
      • m_Factory

        protected m_Factory
        a media player factory for getting the media player
      • m_VideoDimension

        protected Dimension m_VideoDimension
        the dimensions of the video
      • m_Image

        protected BufferedImage m_Image
        an image to feed the buffer into
      • m_CurrentImage

        protected m_CurrentImage
        a container for storing the current image
      • m_PreviousImage

        protected m_PreviousImage
        a container for storing the previous image
      • m_TimeOffset

        protected long m_TimeOffset
      • m_File

        protected File m_File
    • Constructor Detail

      • SingleTimestampMovieSampler

        public SingleTimestampMovieSampler()
    • Method Detail

      • reset

        protected void reset()
        reset in class adams.core.option.AbstractOptionHandler
      • setTimeStamp

        public void setTimeStamp​(adams.core.base.BaseTimeMsec timeStamp)
        Sets the timestamps to sample
        timeStamp -
      • getTimeStamp

        public adams.core.base.BaseTimeMsec getTimeStamp()
        Returns the timestamps to sample.
        the timestamps
      • setTimeStampAsLong

        public void setTimeStampAsLong​(long timeStamps)
      • getTimeStampAsLong

        public long getTimeStampAsLong()
      • timeStampTipText

        public String timeStampTipText()
        Returns the tip text for this property.
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        a description suitable for displaying in the gui
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        defineOptions in class adams.core.option.AbstractOptionHandler
      • initialize

        protected void initialize()
        Initializes the members.
        initialize in class adams.core.option.AbstractOptionHandler
      • doSample

        protected[] doSample​(File file)
        Samples images from a movie file. Code adapted from
        Specified by:
        doSample in class AbstractMovieImageSampler<>
        file - the movie to sample
        the samples, null if failed to sample
      • cleanUp

        public void cleanUp()