Package org.lwjgl.vulkan.video
Class StdVideoH264PictureParameterSet
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.video.StdVideoH264PictureParameterSet
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class StdVideoH264PictureParameterSet extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct StdVideoH264PictureParameterSet { 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;StdVideoH264PpsFlagsflags;StdVideoH264ScalingLists*pScalingLists(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStdVideoH264PictureParameterSet.BufferAn array ofStdVideoH264PictureParameterSetstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCHROMA_QP_INDEX_OFFSET
FLAGS
NUM_REF_IDX_L0_DEFAULT_ACTIVE_MINUS1
NUM_REF_IDX_L1_DEFAULT_ACTIVE_MINUS1
PIC_INIT_QP_MINUS26
PIC_INIT_QS_MINUS26
PIC_PARAMETER_SET_ID
PSCALINGLISTS
SECOND_CHROMA_QP_INDEX_OFFSET
SEQ_PARAMETER_SET_IDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intWEIGHTED_BIPRED_IDCThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description StdVideoH264PictureParameterSet(java.nio.ByteBuffer container)Creates aStdVideoH264PictureParameterSetinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StdVideoH264PictureParameterSetcalloc()Returns a newStdVideoH264PictureParameterSetinstance allocated withmemCalloc.static StdVideoH264PictureParameterSet.Buffercalloc(int capacity)Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated withmemCalloc.static StdVideoH264PictureParameterSet.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoH264PictureParameterSetcalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264PictureParameterSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.bytechroma_qp_index_offset()StdVideoH264PictureParameterSetchroma_qp_index_offset(byte value)Sets the specified value to thechroma_qp_index_offsetfield.static StdVideoH264PictureParameterSetcreate()Returns a newStdVideoH264PictureParameterSetinstance allocated withBufferUtils.static StdVideoH264PictureParameterSet.Buffercreate(int capacity)Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated withBufferUtils.static StdVideoH264PictureParameterSetcreate(long address)Returns a newStdVideoH264PictureParameterSetinstance for the specified memory address.static StdVideoH264PictureParameterSet.Buffercreate(long address, int capacity)Create aStdVideoH264PictureParameterSet.Bufferinstance at the specified memory.static StdVideoH264PictureParameterSetcreateSafe(long address)static StdVideoH264PictureParameterSet.BuffercreateSafe(long address, int capacity)StdVideoH264PpsFlagsflags()StdVideoH264PictureParameterSetflags(java.util.function.Consumer<StdVideoH264PpsFlags> consumer)Passes theflagsfield to the specifiedConsumer.StdVideoH264PictureParameterSetflags(StdVideoH264PpsFlags value)Copies the specifiedStdVideoH264PpsFlagsto theflagsfield.static StdVideoH264PictureParameterSetmalloc()Returns a newStdVideoH264PictureParameterSetinstance allocated withmemAlloc.static StdVideoH264PictureParameterSet.Buffermalloc(int capacity)Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated withmemAlloc.static StdVideoH264PictureParameterSet.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoH264PictureParameterSetmalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264PictureParameterSetinstance allocated on the specifiedMemoryStack.static bytenchroma_qp_index_offset(long struct)Unsafe version ofchroma_qp_index_offset().static voidnchroma_qp_index_offset(long struct, byte value)Unsafe version ofchroma_qp_index_offset.static StdVideoH264PpsFlagsnflags(long struct)Unsafe version offlags().static voidnflags(long struct, StdVideoH264PpsFlags value)Unsafe version offlags.static bytennum_ref_idx_l0_default_active_minus1(long struct)Unsafe version ofnum_ref_idx_l0_default_active_minus1().static voidnnum_ref_idx_l0_default_active_minus1(long struct, byte value)Unsafe version ofnum_ref_idx_l0_default_active_minus1.static bytennum_ref_idx_l1_default_active_minus1(long struct)Unsafe version ofnum_ref_idx_l1_default_active_minus1().static voidnnum_ref_idx_l1_default_active_minus1(long struct, byte value)Unsafe version ofnum_ref_idx_l1_default_active_minus1.static bytenpic_init_qp_minus26(long struct)Unsafe version ofpic_init_qp_minus26().static voidnpic_init_qp_minus26(long struct, byte value)Unsafe version ofpic_init_qp_minus26.static bytenpic_init_qs_minus26(long struct)Unsafe version ofpic_init_qs_minus26().static voidnpic_init_qs_minus26(long struct, byte value)Unsafe version ofpic_init_qs_minus26.static bytenpic_parameter_set_id(long struct)Unsafe version ofpic_parameter_set_id().static voidnpic_parameter_set_id(long struct, byte value)Unsafe version ofpic_parameter_set_id.static StdVideoH264ScalingListsnpScalingLists(long struct)Unsafe version ofpScalingLists().static voidnpScalingLists(long struct, StdVideoH264ScalingLists value)Unsafe version ofpScalingLists.static bytensecond_chroma_qp_index_offset(long struct)Unsafe version ofsecond_chroma_qp_index_offset().static voidnsecond_chroma_qp_index_offset(long struct, byte value)Unsafe version ofsecond_chroma_qp_index_offset.static bytenseq_parameter_set_id(long struct)Unsafe version ofseq_parameter_set_id().static voidnseq_parameter_set_id(long struct, byte value)Unsafe version ofseq_parameter_set_id.bytenum_ref_idx_l0_default_active_minus1()StdVideoH264PictureParameterSetnum_ref_idx_l0_default_active_minus1(byte value)Sets the specified value to thenum_ref_idx_l0_default_active_minus1field.bytenum_ref_idx_l1_default_active_minus1()StdVideoH264PictureParameterSetnum_ref_idx_l1_default_active_minus1(byte value)Sets the specified value to thenum_ref_idx_l1_default_active_minus1field.static intnweighted_bipred_idc(long struct)Unsafe version ofweighted_bipred_idc().static voidnweighted_bipred_idc(long struct, int value)Unsafe version ofweighted_bipred_idc.bytepic_init_qp_minus26()StdVideoH264PictureParameterSetpic_init_qp_minus26(byte value)Sets the specified value to thepic_init_qp_minus26field.bytepic_init_qs_minus26()StdVideoH264PictureParameterSetpic_init_qs_minus26(byte value)Sets the specified value to thepic_init_qs_minus26field.bytepic_parameter_set_id()StdVideoH264PictureParameterSetpic_parameter_set_id(byte value)Sets the specified value to thepic_parameter_set_idfield.StdVideoH264ScalingListspScalingLists()must be a valid pointer if StdVideoH264PpsFlags::pic_scaling_matrix_present_flag is setStdVideoH264PictureParameterSetpScalingLists(StdVideoH264ScalingLists value)Sets the address of the specifiedStdVideoH264ScalingListsto thepScalingLists()field.bytesecond_chroma_qp_index_offset()StdVideoH264PictureParameterSetsecond_chroma_qp_index_offset(byte value)Sets the specified value to thesecond_chroma_qp_index_offsetfield.byteseq_parameter_set_id()StdVideoH264PictureParameterSetseq_parameter_set_id(byte value)Sets the specified value to theseq_parameter_set_idfield.StdVideoH264PictureParameterSetset(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, StdVideoH264PpsFlags flags, StdVideoH264ScalingLists pScalingLists)Initializes this struct with the specified values.StdVideoH264PictureParameterSetset(StdVideoH264PictureParameterSet src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.intweighted_bipred_idc()StdVideoH264PictureParameterSetweighted_bipred_idc(int value)Sets the specified value to theweighted_bipred_idcfield.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
SEQ_PARAMETER_SET_ID, PIC_PARAMETER_SET_ID, NUM_REF_IDX_L0_DEFAULT_ACTIVE_MINUS1, NUM_REF_IDX_L1_DEFAULT_ACTIVE_MINUS1, WEIGHTED_BIPRED_IDC, PIC_INIT_QP_MINUS26, PIC_INIT_QS_MINUS26, CHROMA_QP_INDEX_OFFSET, SECOND_CHROMA_QP_INDEX_OFFSET, FLAGS, PSCALINGLISTS
The struct member offsets.
-
-
Constructor Detail
-
StdVideoH264PictureParameterSet
public StdVideoH264PictureParameterSet(java.nio.ByteBuffer container)
Creates aStdVideoH264PictureParameterSetinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
seq_parameter_set_id
public byte seq_parameter_set_id()
- Returns:
- the value of the
seq_parameter_set_idfield.
-
pic_parameter_set_id
public byte pic_parameter_set_id()
- Returns:
- the value of the
pic_parameter_set_idfield.
-
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_minus1field.
-
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_minus1field.
-
weighted_bipred_idc
public int weighted_bipred_idc()
- Returns:
- the value of the
weighted_bipred_idcfield.
-
pic_init_qp_minus26
public byte pic_init_qp_minus26()
- Returns:
- the value of the
pic_init_qp_minus26field.
-
pic_init_qs_minus26
public byte pic_init_qs_minus26()
- Returns:
- the value of the
pic_init_qs_minus26field.
-
chroma_qp_index_offset
public byte chroma_qp_index_offset()
- Returns:
- the value of the
chroma_qp_index_offsetfield.
-
second_chroma_qp_index_offset
public byte second_chroma_qp_index_offset()
- Returns:
- the value of the
second_chroma_qp_index_offsetfield.
-
flags
public StdVideoH264PpsFlags flags()
- Returns:
- a
StdVideoH264PpsFlagsview of theflagsfield.
-
pScalingLists
public StdVideoH264ScalingLists pScalingLists()
must be a valid pointer if StdVideoH264PpsFlags::pic_scaling_matrix_present_flag is set
-
seq_parameter_set_id
public StdVideoH264PictureParameterSet seq_parameter_set_id(byte value)
Sets the specified value to theseq_parameter_set_idfield.
-
pic_parameter_set_id
public StdVideoH264PictureParameterSet pic_parameter_set_id(byte value)
Sets the specified value to thepic_parameter_set_idfield.
-
num_ref_idx_l0_default_active_minus1
public StdVideoH264PictureParameterSet num_ref_idx_l0_default_active_minus1(byte value)
Sets the specified value to thenum_ref_idx_l0_default_active_minus1field.
-
num_ref_idx_l1_default_active_minus1
public StdVideoH264PictureParameterSet num_ref_idx_l1_default_active_minus1(byte value)
Sets the specified value to thenum_ref_idx_l1_default_active_minus1field.
-
weighted_bipred_idc
public StdVideoH264PictureParameterSet weighted_bipred_idc(int value)
Sets the specified value to theweighted_bipred_idcfield.
-
pic_init_qp_minus26
public StdVideoH264PictureParameterSet pic_init_qp_minus26(byte value)
Sets the specified value to thepic_init_qp_minus26field.
-
pic_init_qs_minus26
public StdVideoH264PictureParameterSet pic_init_qs_minus26(byte value)
Sets the specified value to thepic_init_qs_minus26field.
-
chroma_qp_index_offset
public StdVideoH264PictureParameterSet chroma_qp_index_offset(byte value)
Sets the specified value to thechroma_qp_index_offsetfield.
-
second_chroma_qp_index_offset
public StdVideoH264PictureParameterSet second_chroma_qp_index_offset(byte value)
Sets the specified value to thesecond_chroma_qp_index_offsetfield.
-
flags
public StdVideoH264PictureParameterSet flags(StdVideoH264PpsFlags value)
Copies the specifiedStdVideoH264PpsFlagsto theflagsfield.
-
flags
public StdVideoH264PictureParameterSet flags(java.util.function.Consumer<StdVideoH264PpsFlags> consumer)
Passes theflagsfield to the specifiedConsumer.
-
pScalingLists
public StdVideoH264PictureParameterSet pScalingLists(StdVideoH264ScalingLists value)
Sets the address of the specifiedStdVideoH264ScalingListsto thepScalingLists()field.
-
set
public StdVideoH264PictureParameterSet set(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, StdVideoH264PpsFlags flags, StdVideoH264ScalingLists pScalingLists)
Initializes this struct with the specified values.
-
set
public StdVideoH264PictureParameterSet set(StdVideoH264PictureParameterSet src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static StdVideoH264PictureParameterSet malloc()
Returns a newStdVideoH264PictureParameterSetinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static StdVideoH264PictureParameterSet calloc()
Returns a newStdVideoH264PictureParameterSetinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static StdVideoH264PictureParameterSet create()
Returns a newStdVideoH264PictureParameterSetinstance allocated withBufferUtils.
-
create
public static StdVideoH264PictureParameterSet create(long address)
Returns a newStdVideoH264PictureParameterSetinstance for the specified memory address.
-
createSafe
@Nullable public static StdVideoH264PictureParameterSet createSafe(long address)
-
malloc
public static StdVideoH264PictureParameterSet.Buffer malloc(int capacity)
Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static StdVideoH264PictureParameterSet.Buffer calloc(int capacity)
Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoH264PictureParameterSet.Buffer create(int capacity)
Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoH264PictureParameterSet.Buffer create(long address, int capacity)
Create aStdVideoH264PictureParameterSet.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static StdVideoH264PictureParameterSet.Buffer createSafe(long address, int capacity)
-
malloc
public static StdVideoH264PictureParameterSet malloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264PictureParameterSetinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static StdVideoH264PictureParameterSet calloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264PictureParameterSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static StdVideoH264PictureParameterSet.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static StdVideoH264PictureParameterSet.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264PictureParameterSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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().
-
nflags
public static StdVideoH264PpsFlags nflags(long struct)
Unsafe version offlags().
-
npScalingLists
public static StdVideoH264ScalingLists npScalingLists(long struct)
Unsafe version ofpScalingLists().
-
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.
-
nflags
public static void nflags(long struct, StdVideoH264PpsFlags value)Unsafe version offlags.
-
npScalingLists
public static void npScalingLists(long struct, StdVideoH264ScalingLists value)Unsafe version ofpScalingLists.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-