Class Info

java.lang.Object
com.github.kokorin.jaffree.nut.Info

public class Info extends Object
Nut format Info packet description.
  • Field Details

    • streamId

      public final int streamId
      Id of stream to which this info should be applied. -1 means Info should be applied to all streams.
    • chapterId

      public final int chapterId
      The ID of the chapter this packet applies to.

      If zero, the packet applies to the whole file. Positive chapter_id values represent real chapters and MUST NOT overlap.

      A negative chapter_id indicates a region of the file and not a real chapter. chapter_id MUST be unique to the region it represents.

      chapter_id n MUST NOT be used unless there are at least n chapters in the file.

    • chapterStartPts

      public final long chapterStartPts
      timestamp of start of chapter.

      2 info packets which apply to the same subset of streams SHOULD use the same timebase.

    • chapterLengthPts

      public final long chapterLengthPts
      Length of chapter in the same timebase as chapter_start.
    • timebaseId

      public final int timebaseId
      Timebase ID for chapterStartPts and chapterLengthPts.
    • metaData

      public final DataItem[] metaData
      Info packet metadata.
  • Constructor Details

    • Info

      public Info(int streamId, int chapterId, long chapterStartPts, long chapterLengthPts, int timebaseId, DataItem[] metaData)
      Creates Info packet description.
      Parameters:
      streamId - stream id
      chapterId - chapter id
      chapterStartPts - chapter start
      chapterLengthPts - chapter length
      timebaseId - timebase ID
      metaData - metadata list
  • Method Details