Record Class ContainerAnalyserResult

java.lang.Object
java.lang.Record
tv.hd3g.fflauncher.recipes.ContainerAnalyserResult

public record ContainerAnalyserResult(ContainerAnalyserSession session, List<FFprobePacket> packets, List<FFprobeAudioFrame> audioFrames, List<FFprobeVideoFrame> videoFrames, FFprobeVideoFrameConst videoConst, FFprobeAudioFrameConst audioConst, List<FFprobeVideoFrameConst> olderVideoConsts, List<FFprobeAudioFrameConst> olderAudioConsts) extends Record
  • Constructor Details

    • ContainerAnalyserResult

      public ContainerAnalyserResult(ContainerAnalyserSession session, List<FFprobePacket> packets, List<FFprobeAudioFrame> audioFrames, List<FFprobeVideoFrame> videoFrames, FFprobeVideoFrameConst videoConst, FFprobeAudioFrameConst audioConst, List<FFprobeVideoFrameConst> olderVideoConsts, List<FFprobeAudioFrameConst> olderAudioConsts)
      Creates an instance of a ContainerAnalyserResult record class.
      Parameters:
      session - the value for the session record component
      packets - the value for the packets record component
      audioFrames - the value for the audioFrames record component
      videoFrames - the value for the videoFrames record component
      videoConst - the value for the videoConst record component
      audioConst - the value for the audioConst record component
      olderVideoConsts - the value for the olderVideoConsts record component
      olderAudioConsts - the value for the olderAudioConsts record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • extractGOPStats

      public List<GOPStatItem> extractGOPStats()
      Returns:
      empty if no video frames, or no GOPs (all frames are I or UNKNOWN)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • session

      public ContainerAnalyserSession session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component
    • packets

      public List<FFprobePacket> packets()
      Returns the value of the packets record component.
      Returns:
      the value of the packets record component
    • audioFrames

      public List<FFprobeAudioFrame> audioFrames()
      Returns the value of the audioFrames record component.
      Returns:
      the value of the audioFrames record component
    • videoFrames

      public List<FFprobeVideoFrame> videoFrames()
      Returns the value of the videoFrames record component.
      Returns:
      the value of the videoFrames record component
    • videoConst

      public FFprobeVideoFrameConst videoConst()
      Returns the value of the videoConst record component.
      Returns:
      the value of the videoConst record component
    • audioConst

      public FFprobeAudioFrameConst audioConst()
      Returns the value of the audioConst record component.
      Returns:
      the value of the audioConst record component
    • olderVideoConsts

      public List<FFprobeVideoFrameConst> olderVideoConsts()
      Returns the value of the olderVideoConsts record component.
      Returns:
      the value of the olderVideoConsts record component
    • olderAudioConsts

      public List<FFprobeAudioFrameConst> olderAudioConsts()
      Returns the value of the olderAudioConsts record component.
      Returns:
      the value of the olderAudioConsts record component