Package org.lwjgl.vulkan.video
Class StdVideoH264PictureParameterSet
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoH264PictureParameterSet>
org.lwjgl.vulkan.video.StdVideoH264PictureParameterSet
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoH264PictureParameterSet
extends Struct<StdVideoH264PictureParameterSet>
implements NativeResource
struct StdVideoH264PictureParameterSet {
{@link StdVideoH264PpsFlags StdVideoH264PpsFlags} flags;
uint8_t seq_parameter_set_id;
uint8_t pic_parameter_set_id;
uint8_t num_ref_idx_l0_default_active_minus1;
uint8_t num_ref_idx_l1_default_active_minus1;
StdVideoH264WeightedBipredIdc weighted_bipred_idc;
int8_t pic_init_qp_minus26;
int8_t pic_init_qs_minus26;
int8_t chroma_qp_index_offset;
int8_t second_chroma_qp_index_offset;
{@link StdVideoH264ScalingLists StdVideoH264ScalingLists} const * pScalingLists;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofStdVideoH264PictureParameterSet
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoH264PictureParameterSet
(ByteBuffer container) Creates aStdVideoH264PictureParameterSet
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newStdVideoH264PictureParameterSet
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newStdVideoH264PictureParameterSet
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.byte
chroma_qp_index_offset
(byte value) Sets the specified value to thechroma_qp_index_offset
field.create()
Returns a newStdVideoH264PictureParameterSet
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newStdVideoH264PictureParameterSet
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoH264PictureParameterSet.Buffer
instance at the specified memory.static @Nullable StdVideoH264PictureParameterSet
createSafe
(long address) static @Nullable StdVideoH264PictureParameterSet.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoH264PpsFlags> consumer) Passes theflags
field to the specifiedConsumer
.flags
(StdVideoH264PpsFlags value) Copies the specifiedStdVideoH264PpsFlags
to theflags
field.malloc()
Returns a newStdVideoH264PictureParameterSet
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newStdVideoH264PictureParameterSet
instance allocated on the specifiedMemoryStack
.static byte
nchroma_qp_index_offset
(long struct) Unsafe version ofchroma_qp_index_offset()
.static void
nchroma_qp_index_offset
(long struct, byte value) Unsafe version ofchroma_qp_index_offset
.static StdVideoH264PpsFlags
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoH264PpsFlags value) Unsafe version offlags
.static byte
nnum_ref_idx_l0_default_active_minus1
(long struct) Unsafe version ofnum_ref_idx_l0_default_active_minus1()
.static void
nnum_ref_idx_l0_default_active_minus1
(long struct, byte value) Unsafe version ofnum_ref_idx_l0_default_active_minus1
.static byte
nnum_ref_idx_l1_default_active_minus1
(long struct) Unsafe version ofnum_ref_idx_l1_default_active_minus1()
.static void
nnum_ref_idx_l1_default_active_minus1
(long struct, byte value) Unsafe version ofnum_ref_idx_l1_default_active_minus1
.static byte
npic_init_qp_minus26
(long struct) Unsafe version ofpic_init_qp_minus26()
.static void
npic_init_qp_minus26
(long struct, byte value) Unsafe version ofpic_init_qp_minus26
.static byte
npic_init_qs_minus26
(long struct) Unsafe version ofpic_init_qs_minus26()
.static void
npic_init_qs_minus26
(long struct, byte value) Unsafe version ofpic_init_qs_minus26
.static byte
npic_parameter_set_id
(long struct) Unsafe version ofpic_parameter_set_id()
.static void
npic_parameter_set_id
(long struct, byte value) Unsafe version ofpic_parameter_set_id
.static StdVideoH264ScalingLists
npScalingLists
(long struct) Unsafe version ofpScalingLists()
.static void
npScalingLists
(long struct, StdVideoH264ScalingLists value) Unsafe version ofpScalingLists
.static byte
nsecond_chroma_qp_index_offset
(long struct) Unsafe version ofsecond_chroma_qp_index_offset()
.static void
nsecond_chroma_qp_index_offset
(long struct, byte value) Unsafe version ofsecond_chroma_qp_index_offset
.static byte
nseq_parameter_set_id
(long struct) Unsafe version ofseq_parameter_set_id()
.static void
nseq_parameter_set_id
(long struct, byte value) Unsafe version ofseq_parameter_set_id
.byte
num_ref_idx_l0_default_active_minus1
(byte value) Sets the specified value to thenum_ref_idx_l0_default_active_minus1
field.byte
num_ref_idx_l1_default_active_minus1
(byte value) Sets the specified value to thenum_ref_idx_l1_default_active_minus1
field.static int
nweighted_bipred_idc
(long struct) Unsafe version ofweighted_bipred_idc()
.static void
nweighted_bipred_idc
(long struct, int value) Unsafe version ofweighted_bipred_idc
.byte
pic_init_qp_minus26
(byte value) Sets the specified value to thepic_init_qp_minus26
field.byte
pic_init_qs_minus26
(byte value) Sets the specified value to thepic_init_qs_minus26
field.byte
pic_parameter_set_id
(byte value) Sets the specified value to thepic_parameter_set_id
field.Sets the address of the specifiedStdVideoH264ScalingLists
to thepScalingLists
field.byte
second_chroma_qp_index_offset
(byte value) Sets the specified value to thesecond_chroma_qp_index_offset
field.byte
seq_parameter_set_id
(byte value) Sets the specified value to theseq_parameter_set_id
field.Copies the specified struct data to this struct.set
(StdVideoH264PpsFlags flags, byte seq_parameter_set_id, byte pic_parameter_set_id, byte num_ref_idx_l0_default_active_minus1, byte num_ref_idx_l1_default_active_minus1, int weighted_bipred_idc, byte pic_init_qp_minus26, byte pic_init_qs_minus26, byte chroma_qp_index_offset, byte second_chroma_qp_index_offset, StdVideoH264ScalingLists pScalingLists) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.int
weighted_bipred_idc
(int value) Sets the specified value to theweighted_bipred_idc
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FLAGS
public static final int FLAGSThe struct member offsets. -
SEQ_PARAMETER_SET_ID
public static final int SEQ_PARAMETER_SET_IDThe struct member offsets. -
PIC_PARAMETER_SET_ID
public static final int PIC_PARAMETER_SET_IDThe struct member offsets. -
NUM_REF_IDX_L0_DEFAULT_ACTIVE_MINUS1
public static final int NUM_REF_IDX_L0_DEFAULT_ACTIVE_MINUS1The struct member offsets. -
NUM_REF_IDX_L1_DEFAULT_ACTIVE_MINUS1
public static final int NUM_REF_IDX_L1_DEFAULT_ACTIVE_MINUS1The struct member offsets. -
WEIGHTED_BIPRED_IDC
public static final int WEIGHTED_BIPRED_IDCThe struct member offsets. -
PIC_INIT_QP_MINUS26
public static final int PIC_INIT_QP_MINUS26The struct member offsets. -
PIC_INIT_QS_MINUS26
public static final int PIC_INIT_QS_MINUS26The struct member offsets. -
CHROMA_QP_INDEX_OFFSET
public static final int CHROMA_QP_INDEX_OFFSETThe struct member offsets. -
SECOND_CHROMA_QP_INDEX_OFFSET
public static final int SECOND_CHROMA_QP_INDEX_OFFSETThe struct member offsets. -
PSCALINGLISTS
public static final int PSCALINGLISTSThe struct member offsets.
-
-
Constructor Details
-
StdVideoH264PictureParameterSet
Creates aStdVideoH264PictureParameterSet
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<StdVideoH264PictureParameterSet>
-
flags
- Returns:
- a
StdVideoH264PpsFlags
view of theflags
field.
-
seq_parameter_set_id
public byte seq_parameter_set_id()- Returns:
- the value of the
seq_parameter_set_id
field.
-
pic_parameter_set_id
public byte pic_parameter_set_id()- Returns:
- the value of the
pic_parameter_set_id
field.
-
num_ref_idx_l0_default_active_minus1
public byte num_ref_idx_l0_default_active_minus1()- Returns:
- the value of the
num_ref_idx_l0_default_active_minus1
field.
-
num_ref_idx_l1_default_active_minus1
public byte num_ref_idx_l1_default_active_minus1()- Returns:
- the value of the
num_ref_idx_l1_default_active_minus1
field.
-
weighted_bipred_idc
public int weighted_bipred_idc()- Returns:
- the value of the
weighted_bipred_idc
field.
-
pic_init_qp_minus26
public byte pic_init_qp_minus26()- Returns:
- the value of the
pic_init_qp_minus26
field.
-
pic_init_qs_minus26
public byte pic_init_qs_minus26()- Returns:
- the value of the
pic_init_qs_minus26
field.
-
chroma_qp_index_offset
public byte chroma_qp_index_offset()- Returns:
- the value of the
chroma_qp_index_offset
field.
-
second_chroma_qp_index_offset
public byte second_chroma_qp_index_offset()- Returns:
- the value of the
second_chroma_qp_index_offset
field.
-
pScalingLists
- Returns:
- a
StdVideoH264ScalingLists
view of the struct pointed to by thepScalingLists
field.
-
flags
Copies the specifiedStdVideoH264PpsFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
seq_parameter_set_id
Sets the specified value to theseq_parameter_set_id
field. -
pic_parameter_set_id
Sets the specified value to thepic_parameter_set_id
field. -
num_ref_idx_l0_default_active_minus1
Sets the specified value to thenum_ref_idx_l0_default_active_minus1
field. -
num_ref_idx_l1_default_active_minus1
Sets the specified value to thenum_ref_idx_l1_default_active_minus1
field. -
weighted_bipred_idc
Sets the specified value to theweighted_bipred_idc
field. -
pic_init_qp_minus26
Sets the specified value to thepic_init_qp_minus26
field. -
pic_init_qs_minus26
Sets the specified value to thepic_init_qs_minus26
field. -
chroma_qp_index_offset
Sets the specified value to thechroma_qp_index_offset
field. -
second_chroma_qp_index_offset
Sets the specified value to thesecond_chroma_qp_index_offset
field. -
pScalingLists
Sets the address of the specifiedStdVideoH264ScalingLists
to thepScalingLists
field. -
set
public StdVideoH264PictureParameterSet set(StdVideoH264PpsFlags flags, byte seq_parameter_set_id, byte pic_parameter_set_id, byte num_ref_idx_l0_default_active_minus1, byte num_ref_idx_l1_default_active_minus1, int weighted_bipred_idc, byte pic_init_qp_minus26, byte pic_init_qs_minus26, byte chroma_qp_index_offset, byte second_chroma_qp_index_offset, StdVideoH264ScalingLists pScalingLists) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newStdVideoH264PictureParameterSet
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoH264PictureParameterSet
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoH264PictureParameterSet
instance allocated withBufferUtils
. -
create
Returns a newStdVideoH264PictureParameterSet
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoH264PictureParameterSet.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable StdVideoH264PictureParameterSet.Buffer createSafe(long address, int capacity) -
malloc
Returns a newStdVideoH264PictureParameterSet
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoH264PictureParameterSet
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoH264PictureParameterSet.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nflags
Unsafe version offlags()
. -
nseq_parameter_set_id
public static byte nseq_parameter_set_id(long struct) Unsafe version ofseq_parameter_set_id()
. -
npic_parameter_set_id
public static byte npic_parameter_set_id(long struct) Unsafe version ofpic_parameter_set_id()
. -
nnum_ref_idx_l0_default_active_minus1
public static byte nnum_ref_idx_l0_default_active_minus1(long struct) Unsafe version ofnum_ref_idx_l0_default_active_minus1()
. -
nnum_ref_idx_l1_default_active_minus1
public static byte nnum_ref_idx_l1_default_active_minus1(long struct) Unsafe version ofnum_ref_idx_l1_default_active_minus1()
. -
nweighted_bipred_idc
public static int nweighted_bipred_idc(long struct) Unsafe version ofweighted_bipred_idc()
. -
npic_init_qp_minus26
public static byte npic_init_qp_minus26(long struct) Unsafe version ofpic_init_qp_minus26()
. -
npic_init_qs_minus26
public static byte npic_init_qs_minus26(long struct) Unsafe version ofpic_init_qs_minus26()
. -
nchroma_qp_index_offset
public static byte nchroma_qp_index_offset(long struct) Unsafe version ofchroma_qp_index_offset()
. -
nsecond_chroma_qp_index_offset
public static byte nsecond_chroma_qp_index_offset(long struct) Unsafe version ofsecond_chroma_qp_index_offset()
. -
npScalingLists
Unsafe version ofpScalingLists()
. -
nflags
Unsafe version offlags
. -
nseq_parameter_set_id
public static void nseq_parameter_set_id(long struct, byte value) Unsafe version ofseq_parameter_set_id
. -
npic_parameter_set_id
public static void npic_parameter_set_id(long struct, byte value) Unsafe version ofpic_parameter_set_id
. -
nnum_ref_idx_l0_default_active_minus1
public static void nnum_ref_idx_l0_default_active_minus1(long struct, byte value) Unsafe version ofnum_ref_idx_l0_default_active_minus1
. -
nnum_ref_idx_l1_default_active_minus1
public static void nnum_ref_idx_l1_default_active_minus1(long struct, byte value) Unsafe version ofnum_ref_idx_l1_default_active_minus1
. -
nweighted_bipred_idc
public static void nweighted_bipred_idc(long struct, int value) Unsafe version ofweighted_bipred_idc
. -
npic_init_qp_minus26
public static void npic_init_qp_minus26(long struct, byte value) Unsafe version ofpic_init_qp_minus26
. -
npic_init_qs_minus26
public static void npic_init_qs_minus26(long struct, byte value) Unsafe version ofpic_init_qs_minus26
. -
nchroma_qp_index_offset
public static void nchroma_qp_index_offset(long struct, byte value) Unsafe version ofchroma_qp_index_offset
. -
nsecond_chroma_qp_index_offset
public static void nsecond_chroma_qp_index_offset(long struct, byte value) Unsafe version ofsecond_chroma_qp_index_offset
. -
npScalingLists
Unsafe version ofpScalingLists
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-