Record Class StdVideoH264SequenceParameterSet
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoH264SequenceParameterSet
- All Implemented Interfaces:
IPointer,IStdVideoH264SequenceParameterSet
@ValueBasedCandidate
@UnsafeConstructor
public record StdVideoH264SequenceParameterSet(@NotNull MemorySegment segment)
extends Record
implements IStdVideoH264SequenceParameterSet
Represents a pointer to a StdVideoH264SequenceParameterSet structure in native memory.
Structure
typedef struct StdVideoH264SequenceParameterSet {
StdVideoH264SpsFlags flags;
StdVideoH264ProfileIdc profile_idc;
StdVideoH264LevelIdc level_idc;
StdVideoH264ChromaFormatIdc chroma_format_idc;
uint8_t seq_parameter_set_id;
uint8_t bit_depth_luma_minus8;
uint8_t bit_depth_chroma_minus8;
uint8_t log2_max_frame_num_minus4;
StdVideoH264PocType pic_order_cnt_type;
int32_t offset_for_non_ref_pic;
int32_t offset_for_top_to_bottom_field;
uint8_t log2_max_pic_order_cnt_lsb_minus4;
uint8_t num_ref_frames_in_pic_order_cnt_cycle;
uint8_t max_num_ref_frames;
uint8_t reserved1;
uint32_t pic_width_in_mbs_minus1;
uint32_t pic_height_in_map_units_minus1;
uint32_t frame_crop_left_offset;
uint32_t frame_crop_right_offset;
uint32_t frame_crop_top_offset;
uint32_t frame_crop_bottom_offset;
uint32_t reserved2;
int32_t const* pOffsetForRefFrame;
StdVideoH264ScalingLists const* pScalingLists;
StdVideoH264SequenceParameterSetVui const* pSequenceParameterSetVui;
} StdVideoH264SequenceParameterSet;
Contracts
The property segment() should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to
LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java
null instead. See the documentation of IPointer.segment() for more details.
The constructor of this class is marked as UnsafeConstructor, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfBytestatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoH264SequenceParameterSet(@NotNull MemorySegment segment) Creates an instance of aStdVideoH264SequenceParameterSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbytebit_depth_chroma_minus8(byte value) bytebit_depth_luma_minus8(byte value) intchroma_format_idc(int value) clone(Arena arena, StdVideoH264SequenceParameterSet src) final booleanIndicates whether some other object is "equal to" this one.@NotNull StdVideoH264SpsFlagsflags()flags(@NotNull StdVideoH264SpsFlags value) flags(Consumer<@NotNull StdVideoH264SpsFlags> consumer) intframe_crop_bottom_offset(int value) intframe_crop_left_offset(int value) intframe_crop_right_offset(int value) intframe_crop_top_offset(int value) final inthashCode()Returns a hash code value for this object.intlevel_idc(int value) bytelog2_max_frame_num_minus4(byte value) bytelog2_max_pic_order_cnt_lsb_minus4(byte value) bytemax_num_ref_frames(byte value) bytenum_ref_frames_in_pic_order_cnt_cycle(byte value) intoffset_for_non_ref_pic(int value) intoffset_for_top_to_bottom_field(int value) intpic_height_in_map_units_minus1(int value) intpic_order_cnt_type(int value) intpic_width_in_mbs_minus1(int value) @Nullable IntPtrNote: the returnedIntPtrdoes not have correctIntPtr.size()property.pOffsetForRefFrame(@Nullable IntPtr value) @NotNull MemorySegmentvoidpOffsetForRefFrameRaw(@NotNull MemorySegment value) intprofile_idc(int value) @Nullable StdVideoH264ScalingListspScalingLists(int assumedCount) pScalingLists(@Nullable IStdVideoH264ScalingLists value) @NotNull MemorySegmentvoidpScalingListsRaw(@NotNull MemorySegment value) @Nullable StdVideoH264SequenceParameterSetVuipSequenceParameterSetVui(int assumedCount) pSequenceParameterSetVui(@Nullable IStdVideoH264SequenceParameterSetVui value) @NotNull MemorySegmentvoidpSequenceParameterSetVuiRaw(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.byteseq_parameter_set_id(byte value) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$flags
-
PATH$profile_idc
-
PATH$level_idc
-
PATH$chroma_format_idc
-
PATH$seq_parameter_set_id
-
PATH$bit_depth_luma_minus8
-
PATH$bit_depth_chroma_minus8
-
PATH$log2_max_frame_num_minus4
-
PATH$pic_order_cnt_type
-
PATH$offset_for_non_ref_pic
-
PATH$offset_for_top_to_bottom_field
-
PATH$log2_max_pic_order_cnt_lsb_minus4
-
PATH$num_ref_frames_in_pic_order_cnt_cycle
-
PATH$max_num_ref_frames
-
PATH$pic_width_in_mbs_minus1
-
PATH$pic_height_in_map_units_minus1
-
PATH$frame_crop_left_offset
-
PATH$frame_crop_right_offset
-
PATH$frame_crop_top_offset
-
PATH$frame_crop_bottom_offset
-
PATH$pOffsetForRefFrame
-
PATH$pScalingLists
-
PATH$pSequenceParameterSetVui
-
LAYOUT$flags
-
LAYOUT$profile_idc
-
LAYOUT$level_idc
-
LAYOUT$chroma_format_idc
-
LAYOUT$seq_parameter_set_id
-
LAYOUT$bit_depth_luma_minus8
-
LAYOUT$bit_depth_chroma_minus8
-
LAYOUT$log2_max_frame_num_minus4
-
LAYOUT$pic_order_cnt_type
-
LAYOUT$offset_for_non_ref_pic
-
LAYOUT$offset_for_top_to_bottom_field
-
LAYOUT$log2_max_pic_order_cnt_lsb_minus4
-
LAYOUT$num_ref_frames_in_pic_order_cnt_cycle
-
LAYOUT$max_num_ref_frames
-
LAYOUT$pic_width_in_mbs_minus1
-
LAYOUT$pic_height_in_map_units_minus1
-
LAYOUT$frame_crop_left_offset
-
LAYOUT$frame_crop_right_offset
-
LAYOUT$frame_crop_top_offset
-
LAYOUT$frame_crop_bottom_offset
-
LAYOUT$pOffsetForRefFrame
-
LAYOUT$pScalingLists
-
LAYOUT$pSequenceParameterSetVui
-
SIZE$flags
public static final long SIZE$flags -
SIZE$profile_idc
public static final long SIZE$profile_idc -
SIZE$level_idc
public static final long SIZE$level_idc -
SIZE$chroma_format_idc
public static final long SIZE$chroma_format_idc -
SIZE$seq_parameter_set_id
public static final long SIZE$seq_parameter_set_id -
SIZE$bit_depth_luma_minus8
public static final long SIZE$bit_depth_luma_minus8 -
SIZE$bit_depth_chroma_minus8
public static final long SIZE$bit_depth_chroma_minus8 -
SIZE$log2_max_frame_num_minus4
public static final long SIZE$log2_max_frame_num_minus4 -
SIZE$pic_order_cnt_type
public static final long SIZE$pic_order_cnt_type -
SIZE$offset_for_non_ref_pic
public static final long SIZE$offset_for_non_ref_pic -
SIZE$offset_for_top_to_bottom_field
public static final long SIZE$offset_for_top_to_bottom_field -
SIZE$log2_max_pic_order_cnt_lsb_minus4
public static final long SIZE$log2_max_pic_order_cnt_lsb_minus4 -
SIZE$num_ref_frames_in_pic_order_cnt_cycle
public static final long SIZE$num_ref_frames_in_pic_order_cnt_cycle -
SIZE$max_num_ref_frames
public static final long SIZE$max_num_ref_frames -
SIZE$pic_width_in_mbs_minus1
public static final long SIZE$pic_width_in_mbs_minus1 -
SIZE$pic_height_in_map_units_minus1
public static final long SIZE$pic_height_in_map_units_minus1 -
SIZE$frame_crop_left_offset
public static final long SIZE$frame_crop_left_offset -
SIZE$frame_crop_right_offset
public static final long SIZE$frame_crop_right_offset -
SIZE$frame_crop_top_offset
public static final long SIZE$frame_crop_top_offset -
SIZE$frame_crop_bottom_offset
public static final long SIZE$frame_crop_bottom_offset -
SIZE$pOffsetForRefFrame
public static final long SIZE$pOffsetForRefFrame -
SIZE$pScalingLists
public static final long SIZE$pScalingLists -
SIZE$pSequenceParameterSetVui
public static final long SIZE$pSequenceParameterSetVui -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$profile_idc
public static final long OFFSET$profile_idc -
OFFSET$level_idc
public static final long OFFSET$level_idc -
OFFSET$chroma_format_idc
public static final long OFFSET$chroma_format_idc -
OFFSET$seq_parameter_set_id
public static final long OFFSET$seq_parameter_set_id -
OFFSET$bit_depth_luma_minus8
public static final long OFFSET$bit_depth_luma_minus8 -
OFFSET$bit_depth_chroma_minus8
public static final long OFFSET$bit_depth_chroma_minus8 -
OFFSET$log2_max_frame_num_minus4
public static final long OFFSET$log2_max_frame_num_minus4 -
OFFSET$pic_order_cnt_type
public static final long OFFSET$pic_order_cnt_type -
OFFSET$offset_for_non_ref_pic
public static final long OFFSET$offset_for_non_ref_pic -
OFFSET$offset_for_top_to_bottom_field
public static final long OFFSET$offset_for_top_to_bottom_field -
OFFSET$log2_max_pic_order_cnt_lsb_minus4
public static final long OFFSET$log2_max_pic_order_cnt_lsb_minus4 -
OFFSET$num_ref_frames_in_pic_order_cnt_cycle
public static final long OFFSET$num_ref_frames_in_pic_order_cnt_cycle -
OFFSET$max_num_ref_frames
public static final long OFFSET$max_num_ref_frames -
OFFSET$pic_width_in_mbs_minus1
public static final long OFFSET$pic_width_in_mbs_minus1 -
OFFSET$pic_height_in_map_units_minus1
public static final long OFFSET$pic_height_in_map_units_minus1 -
OFFSET$frame_crop_left_offset
public static final long OFFSET$frame_crop_left_offset -
OFFSET$frame_crop_right_offset
public static final long OFFSET$frame_crop_right_offset -
OFFSET$frame_crop_top_offset
public static final long OFFSET$frame_crop_top_offset -
OFFSET$frame_crop_bottom_offset
public static final long OFFSET$frame_crop_bottom_offset -
OFFSET$pOffsetForRefFrame
public static final long OFFSET$pOffsetForRefFrame -
OFFSET$pScalingLists
public static final long OFFSET$pScalingLists -
OFFSET$pSequenceParameterSetVui
public static final long OFFSET$pSequenceParameterSetVui
-
-
Constructor Details
-
StdVideoH264SequenceParameterSet
Creates an instance of aStdVideoH264SequenceParameterSetrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static StdVideoH264SequenceParameterSet clone(Arena arena, StdVideoH264SequenceParameterSet src) -
flags
-
flags
-
flags
-
profile_idc
-
profile_idc
public StdVideoH264SequenceParameterSet profile_idc(@EnumType(StdVideoH264ProfileIdc.class) int value) -
level_idc
-
level_idc
-
chroma_format_idc
-
chroma_format_idc
public StdVideoH264SequenceParameterSet chroma_format_idc(@EnumType(StdVideoH264ChromaFormatIdc.class) int value) -
seq_parameter_set_id
-
seq_parameter_set_id
-
bit_depth_luma_minus8
-
bit_depth_luma_minus8
-
bit_depth_chroma_minus8
-
bit_depth_chroma_minus8
-
log2_max_frame_num_minus4
-
log2_max_frame_num_minus4
-
pic_order_cnt_type
-
pic_order_cnt_type
public StdVideoH264SequenceParameterSet pic_order_cnt_type(@EnumType(StdVideoH264PocType.class) int value) -
offset_for_non_ref_pic
public int offset_for_non_ref_pic() -
offset_for_non_ref_pic
-
offset_for_top_to_bottom_field
public int offset_for_top_to_bottom_field() -
offset_for_top_to_bottom_field
-
log2_max_pic_order_cnt_lsb_minus4
-
log2_max_pic_order_cnt_lsb_minus4
-
num_ref_frames_in_pic_order_cnt_cycle
-
num_ref_frames_in_pic_order_cnt_cycle
-
max_num_ref_frames
-
max_num_ref_frames
-
pic_width_in_mbs_minus1
-
pic_width_in_mbs_minus1
-
pic_height_in_map_units_minus1
-
pic_height_in_map_units_minus1
-
frame_crop_left_offset
-
frame_crop_left_offset
-
frame_crop_right_offset
-
frame_crop_right_offset
-
frame_crop_top_offset
-
frame_crop_top_offset
-
frame_crop_bottom_offset
-
frame_crop_bottom_offset
-
pOffsetForRefFrame
Note: the returnedIntPtrdoes not have correctIntPtr.size()property. It's up to user to track the size of the buffer, and useIntPtr.reinterpret(long)to set the size before actually reading from or writing to the buffer. -
pOffsetForRefFrame
-
pOffsetForRefFrameRaw
-
pOffsetForRefFrameRaw
public void pOffsetForRefFrameRaw(@Pointer(comment="int32_t*") @NotNull @NotNull MemorySegment value) -
pScalingLists
public StdVideoH264SequenceParameterSet pScalingLists(@Nullable @Nullable IStdVideoH264ScalingLists value) -
pScalingLists
-
pScalingLists
-
pScalingListsRaw
@Pointer(target=StdVideoH264ScalingLists.class) @NotNull public @NotNull MemorySegment pScalingListsRaw() -
pScalingListsRaw
public void pScalingListsRaw(@Pointer(target=StdVideoH264ScalingLists.class) @NotNull @NotNull MemorySegment value) -
pSequenceParameterSetVui
public StdVideoH264SequenceParameterSet pSequenceParameterSetVui(@Nullable @Nullable IStdVideoH264SequenceParameterSetVui value) -
pSequenceParameterSetVui
@Unsafe @Nullable public StdVideoH264SequenceParameterSetVui.Ptr pSequenceParameterSetVui(int assumedCount) -
pSequenceParameterSetVui
-
pSequenceParameterSetVuiRaw
@Pointer(target=StdVideoH264SequenceParameterSetVui.class) @NotNull public @NotNull MemorySegment pSequenceParameterSetVuiRaw() -
pSequenceParameterSetVuiRaw
public void pSequenceParameterSetVuiRaw(@Pointer(target=StdVideoH264SequenceParameterSetVui.class) @NotNull @NotNull MemorySegment value) -
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
segment
Returns the value of thesegmentrecord component.
-