Class SyncPoint

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

public class SyncPoint extends Object
NUT sync point.
  • Field Details

    • globalKeyPts

      public final Timestamp globalKeyPts
      After a syncpoint, last_pts of each stream is to be set to: last_pts[i] = convert_ts(global_key_pts, time_base[id], time_base[i])

      global_key_pts MUST be bigger or equal to dts of all past frames across all streams, and smaller or equal to pts of all future frames.

    • backPtrDiv16

      public final long backPtrDiv16
      back_ptr_div16

      back_ptr = back_ptr_div16 * 16 + 15

      back_ptr must point to a position up to 15 bytes before a syncpoint startcode, relative to position of current syncpoint. The syncpoint pointed to MUST be the closest syncpoint such that at least one keyframe with a pts+match_time_delta lower or equal to the current syncpoint's global_key_pts for all streams lies between it and the current syncpoint.

      A stream where EOR is set is to be ignored for back_ptr.

    • transmitTs

      public final Timestamp transmitTs
      The value of the reference clock at the moment when the first bit of transmit_ts is transmitted/received. The reference clock MUST always be less than or equal to the DTS of every not yet completely received frame.
  • Constructor Details

    • SyncPoint

      public SyncPoint(Timestamp globalKeyPts, long backPtrDiv16)
    • SyncPoint

      public SyncPoint(Timestamp globalKeyPts, long backPtrDiv16, Timestamp transmitTs)