Enum FrameCode.Flag

java.lang.Object
java.lang.Enum<FrameCode.Flag>
com.github.kokorin.jaffree.nut.FrameCode.Flag
All Implemented Interfaces:
Serializable, Comparable<FrameCode.Flag>, java.lang.constant.Constable
Enclosing class:
FrameCode

public static enum FrameCode.Flag extends Enum<FrameCode.Flag>
FrameCode Flags.
  • Enum Constant Details

    • KEYFRAME

      public static final FrameCode.Flag KEYFRAME
    • EOR

      public static final FrameCode.Flag EOR
      If set, the stream has no relevance on presentation. (EOR)

      EOR frames MUST be zero-length and must be set keyframe. All streams SHOULD end with EOR, where the pts of the EOR indicates the end presentation time of the final frame.

      An EOR set stream is unset by the first content frame. EOR can only be unset in streams with zero decode_delay .

    • CODED_PTS

      public static final FrameCode.Flag CODED_PTS
      If set, coded_pts is in the frame header.
    • STREAM_ID

      public static final FrameCode.Flag STREAM_ID
      If set, stream_id is coded in the frame header.
    • SIZE_MSB

      public static final FrameCode.Flag SIZE_MSB
      If set, data_size_msb is coded in the frame header, otherwise data_size_msb is 0.
    • CHECKSUM

      public static final FrameCode.Flag CHECKSUM
      If set, the frame header contains a headerChecksum.

      MUST be set if the frame's data_size is strictly greater than 2*max_distance or the difference abs(pts-last_pts) is strictly greater than max_pts_distance (where pts represents this frame's pts and last_pts is defined as below).

    • RESERVED

      public static final FrameCode.Flag RESERVED
      If set, reserved_count is coded in the frame header.
    • SM_DATA

      public static final FrameCode.Flag SM_DATA
      If set, side/meta data is stored with the frame data.

      This flag MUST NOT be set in version < 4

    • HEADER_IDX

      public static final FrameCode.Flag HEADER_IDX
      If set, header_idx is coded in the frame header.
    • MATCH_TIME

      public static final FrameCode.Flag MATCH_TIME
      If set, match_time_delta is coded in the frame header.
    • CODED_FLAGS

      public static final FrameCode.Flag CODED_FLAGS
      If set, coded_flags are stored in the frame header.
    • INVALID

      public static final FrameCode.Flag INVALID
      If set, frame_code is invalid.
  • Method Details

    • values

      public static FrameCode.Flag[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FrameCode.Flag valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromBitCode

      public static Set<FrameCode.Flag> fromBitCode(long value)
      Creates Set of FrameCode.Flag from passed in bitmask value.
      Parameters:
      value - bitmask value
      Returns:
      flags
    • toBitCode

      public static long toBitCode(Set<FrameCode.Flag> flags)
      Converts set of FrameCode.Flag to bitmask value.
      Parameters:
      flags - flags
      Returns:
      bitmask value
    • xor

      public static Set<FrameCode.Flag> xor(Set<FrameCode.Flag> op1, Set<FrameCode.Flag> op2)
      Executes exclusive Or (Xor) operation on operands.
      Parameters:
      op1 - flags
      op2 - flags
      Returns:
      xored flags