Package com.github.kokorin.jaffree.nut
Enum FrameCode.Flag
- All Implemented Interfaces:
Serializable,Comparable<FrameCode.Flag>,java.lang.constant.Constable
- Enclosing class:
FrameCode
FrameCode Flags.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf set, the frame header contains a headerChecksum.If set, coded_flags are stored in the frame header.If set, coded_pts is in the frame header.If set, the stream has no relevance on presentation.If set, header_idx is coded in the frame header.If set, frame_code is invalid.If set, match_time_delta is coded in the frame header.If set, reserved_count is coded in the frame header.If set, data_size_msb is coded in the frame header, otherwise data_size_msb is 0.If set, side/meta data is stored with the frame data.If set, stream_id is coded in the frame header. -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<FrameCode.Flag> fromBitCode(long value) Creates Set ofFrameCode.Flagfrom passed in bitmask value.static longtoBitCode(Set<FrameCode.Flag> flags) Converts set ofFrameCode.Flagto bitmask value.static FrameCode.FlagReturns the enum constant of this type with the specified name.static FrameCode.Flag[]values()Returns an array containing the constants of this enum type, in the order they are declared.static Set<FrameCode.Flag> xor(Set<FrameCode.Flag> op1, Set<FrameCode.Flag> op2) Executes exclusive Or (Xor) operation on operands.
-
Enum Constant Details
-
KEYFRAME
-
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
If set, coded_pts is in the frame header. -
STREAM_ID
If set, stream_id is coded in the frame header. -
SIZE_MSB
If set, data_size_msb is coded in the frame header, otherwise data_size_msb is 0. -
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
If set, reserved_count is coded in the frame header. -
SM_DATA
If set, side/meta data is stored with the frame data.This flag MUST NOT be set in version < 4
-
HEADER_IDX
If set, header_idx is coded in the frame header. -
MATCH_TIME
If set, match_time_delta is coded in the frame header. -
CODED_FLAGS
If set, coded_flags are stored in the frame header. -
INVALID
If set, frame_code is invalid.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromBitCode
Creates Set ofFrameCode.Flagfrom passed in bitmask value.- Parameters:
value- bitmask value- Returns:
- flags
-
toBitCode
Converts set ofFrameCode.Flagto bitmask value.- Parameters:
flags- flags- Returns:
- bitmask value
-
xor
Executes exclusive Or (Xor) operation on operands.- Parameters:
op1- flagsop2- flags- Returns:
- xored flags
-