Package org.lwjgl.vulkan.video
Class StdVideoH264HrdParameters
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoH264HrdParameters
extends Struct<StdVideoH264HrdParameters>
implements NativeResource
struct StdVideoH264HrdParameters {
uint8_t cpb_cnt_minus1;
uint8_t bit_rate_scale;
uint8_t cpb_size_scale;
uint8_t reserved1;
uint32_t bit_rate_value_minus1[STD_VIDEO_H264_CPB_CNT_LIST_SIZE];
uint32_t cpb_size_value_minus1[STD_VIDEO_H264_CPB_CNT_LIST_SIZE];
uint8_t cbr_flag[STD_VIDEO_H264_CPB_CNT_LIST_SIZE];
uint32_t initial_cpb_removal_delay_length_minus1;
uint32_t cpb_removal_delay_length_minus1;
uint32_t dpb_output_delay_length_minus1;
uint32_t time_offset_length;
}
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionStdVideoH264HrdParameters
(ByteBuffer container) Creates aStdVideoH264HrdParameters
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbyte
bit_rate_scale
(byte value) Sets the specified value to thebit_rate_scale
field.int
bit_rate_value_minus1
(int index) bit_rate_value_minus1
(int index, int value) Sets the specified value at the specified index of thebit_rate_value_minus1
field.bit_rate_value_minus1
(IntBuffer value) Copies the specifiedIntBuffer
to thebit_rate_value_minus1
field.static StdVideoH264HrdParameters
calloc()
Returns a newStdVideoH264HrdParameters
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoH264HrdParameters.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoH264HrdParameters.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoH264HrdParameters
calloc
(MemoryStack stack) Returns a newStdVideoH264HrdParameters
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.cbr_flag()
byte
cbr_flag
(int index) cbr_flag
(int index, byte value) Sets the specified value at the specified index of thecbr_flag
field.cbr_flag
(ByteBuffer value) Copies the specifiedByteBuffer
to thecbr_flag
field.byte
cpb_cnt_minus1
(byte value) Sets the specified value to thecpb_cnt_minus1
field.int
cpb_removal_delay_length_minus1
(int value) Sets the specified value to thecpb_removal_delay_length_minus1
field.byte
cpb_size_scale
(byte value) Sets the specified value to thecpb_size_scale
field.int
cpb_size_value_minus1
(int index) cpb_size_value_minus1
(int index, int value) Sets the specified value at the specified index of thecpb_size_value_minus1
field.cpb_size_value_minus1
(IntBuffer value) Copies the specifiedIntBuffer
to thecpb_size_value_minus1
field.static StdVideoH264HrdParameters
create()
Returns a newStdVideoH264HrdParameters
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoH264HrdParameters.Buffer
instance allocated withBufferUtils
.static StdVideoH264HrdParameters
create
(long address) Returns a newStdVideoH264HrdParameters
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoH264HrdParameters.Buffer
instance at the specified memory.static @Nullable StdVideoH264HrdParameters
createSafe
(long address) static @Nullable StdVideoH264HrdParameters.Buffer
createSafe
(long address, int capacity) int
dpb_output_delay_length_minus1
(int value) Sets the specified value to thedpb_output_delay_length_minus1
field.int
initial_cpb_removal_delay_length_minus1
(int value) Sets the specified value to theinitial_cpb_removal_delay_length_minus1
field.static StdVideoH264HrdParameters
malloc()
Returns a newStdVideoH264HrdParameters
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoH264HrdParameters.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoH264HrdParameters.Buffer
instance allocated on the specifiedMemoryStack
.static StdVideoH264HrdParameters
malloc
(MemoryStack stack) Returns a newStdVideoH264HrdParameters
instance allocated on the specifiedMemoryStack
.static byte
nbit_rate_scale
(long struct) Unsafe version ofbit_rate_scale()
.static void
nbit_rate_scale
(long struct, byte value) Unsafe version ofbit_rate_scale
.static IntBuffer
nbit_rate_value_minus1
(long struct) Unsafe version ofbit_rate_value_minus1()
.static int
nbit_rate_value_minus1
(long struct, int index) Unsafe version ofbit_rate_value_minus1
.static void
nbit_rate_value_minus1
(long struct, int index, int value) Unsafe version ofbit_rate_value_minus1
.static void
nbit_rate_value_minus1
(long struct, IntBuffer value) Unsafe version ofbit_rate_value_minus1
.static ByteBuffer
ncbr_flag
(long struct) Unsafe version ofcbr_flag()
.static byte
ncbr_flag
(long struct, int index) Unsafe version ofcbr_flag
.static void
ncbr_flag
(long struct, int index, byte value) Unsafe version ofcbr_flag
.static void
ncbr_flag
(long struct, ByteBuffer value) Unsafe version ofcbr_flag
.static byte
ncpb_cnt_minus1
(long struct) Unsafe version ofcpb_cnt_minus1()
.static void
ncpb_cnt_minus1
(long struct, byte value) Unsafe version ofcpb_cnt_minus1
.static int
ncpb_removal_delay_length_minus1
(long struct) Unsafe version ofcpb_removal_delay_length_minus1()
.static void
ncpb_removal_delay_length_minus1
(long struct, int value) Unsafe version ofcpb_removal_delay_length_minus1
.static byte
ncpb_size_scale
(long struct) Unsafe version ofcpb_size_scale()
.static void
ncpb_size_scale
(long struct, byte value) Unsafe version ofcpb_size_scale
.static IntBuffer
ncpb_size_value_minus1
(long struct) Unsafe version ofcpb_size_value_minus1()
.static int
ncpb_size_value_minus1
(long struct, int index) Unsafe version ofcpb_size_value_minus1
.static void
ncpb_size_value_minus1
(long struct, int index, int value) Unsafe version ofcpb_size_value_minus1
.static void
ncpb_size_value_minus1
(long struct, IntBuffer value) Unsafe version ofcpb_size_value_minus1
.static int
ndpb_output_delay_length_minus1
(long struct) Unsafe version ofdpb_output_delay_length_minus1()
.static void
ndpb_output_delay_length_minus1
(long struct, int value) Unsafe version ofdpb_output_delay_length_minus1
.static int
ninitial_cpb_removal_delay_length_minus1
(long struct) Unsafe version ofinitial_cpb_removal_delay_length_minus1()
.static void
ninitial_cpb_removal_delay_length_minus1
(long struct, int value) Unsafe version ofinitial_cpb_removal_delay_length_minus1
.static byte
nreserved1
(long struct) static void
nreserved1
(long struct, byte value) static int
ntime_offset_length
(long struct) Unsafe version oftime_offset_length()
.static void
ntime_offset_length
(long struct, int value) Unsafe version oftime_offset_length
.set
(byte cpb_cnt_minus1, byte bit_rate_scale, byte cpb_size_scale, IntBuffer bit_rate_value_minus1, IntBuffer cpb_size_value_minus1, ByteBuffer cbr_flag, int initial_cpb_removal_delay_length_minus1, int cpb_removal_delay_length_minus1, int dpb_output_delay_length_minus1, int time_offset_length) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
time_offset_length
(int value) Sets the specified value to thetime_offset_length
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. -
CPB_CNT_MINUS1
public static final int CPB_CNT_MINUS1The struct member offsets. -
BIT_RATE_SCALE
public static final int BIT_RATE_SCALEThe struct member offsets. -
CPB_SIZE_SCALE
public static final int CPB_SIZE_SCALEThe struct member offsets. -
RESERVED1
public static final int RESERVED1The struct member offsets. -
BIT_RATE_VALUE_MINUS1
public static final int BIT_RATE_VALUE_MINUS1The struct member offsets. -
CPB_SIZE_VALUE_MINUS1
public static final int CPB_SIZE_VALUE_MINUS1The struct member offsets. -
CBR_FLAG
public static final int CBR_FLAGThe struct member offsets. -
INITIAL_CPB_REMOVAL_DELAY_LENGTH_MINUS1
public static final int INITIAL_CPB_REMOVAL_DELAY_LENGTH_MINUS1The struct member offsets. -
CPB_REMOVAL_DELAY_LENGTH_MINUS1
public static final int CPB_REMOVAL_DELAY_LENGTH_MINUS1The struct member offsets. -
DPB_OUTPUT_DELAY_LENGTH_MINUS1
public static final int DPB_OUTPUT_DELAY_LENGTH_MINUS1The struct member offsets. -
TIME_OFFSET_LENGTH
public static final int TIME_OFFSET_LENGTHThe struct member offsets.
-
-
Constructor Details
-
StdVideoH264HrdParameters
Creates aStdVideoH264HrdParameters
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<StdVideoH264HrdParameters>
-
cpb_cnt_minus1
public byte cpb_cnt_minus1()- Returns:
- the value of the
cpb_cnt_minus1
field.
-
bit_rate_scale
public byte bit_rate_scale()- Returns:
- the value of the
bit_rate_scale
field.
-
cpb_size_scale
public byte cpb_size_scale()- Returns:
- the value of the
cpb_size_scale
field.
-
bit_rate_value_minus1
- Returns:
- a
IntBuffer
view of thebit_rate_value_minus1
field.
-
bit_rate_value_minus1
public int bit_rate_value_minus1(int index) - Returns:
- the value at the specified index of the
bit_rate_value_minus1
field.
-
cpb_size_value_minus1
- Returns:
- a
IntBuffer
view of thecpb_size_value_minus1
field.
-
cpb_size_value_minus1
public int cpb_size_value_minus1(int index) - Returns:
- the value at the specified index of the
cpb_size_value_minus1
field.
-
cbr_flag
- Returns:
- a
ByteBuffer
view of thecbr_flag
field.
-
cbr_flag
public byte cbr_flag(int index) - Returns:
- the value at the specified index of the
cbr_flag
field.
-
initial_cpb_removal_delay_length_minus1
public int initial_cpb_removal_delay_length_minus1()- Returns:
- the value of the
initial_cpb_removal_delay_length_minus1
field.
-
cpb_removal_delay_length_minus1
public int cpb_removal_delay_length_minus1()- Returns:
- the value of the
cpb_removal_delay_length_minus1
field.
-
dpb_output_delay_length_minus1
public int dpb_output_delay_length_minus1()- Returns:
- the value of the
dpb_output_delay_length_minus1
field.
-
time_offset_length
public int time_offset_length()- Returns:
- the value of the
time_offset_length
field.
-
cpb_cnt_minus1
Sets the specified value to thecpb_cnt_minus1
field. -
bit_rate_scale
Sets the specified value to thebit_rate_scale
field. -
cpb_size_scale
Sets the specified value to thecpb_size_scale
field. -
bit_rate_value_minus1
Copies the specifiedIntBuffer
to thebit_rate_value_minus1
field. -
bit_rate_value_minus1
Sets the specified value at the specified index of thebit_rate_value_minus1
field. -
cpb_size_value_minus1
Copies the specifiedIntBuffer
to thecpb_size_value_minus1
field. -
cpb_size_value_minus1
Sets the specified value at the specified index of thecpb_size_value_minus1
field. -
cbr_flag
Copies the specifiedByteBuffer
to thecbr_flag
field. -
cbr_flag
Sets the specified value at the specified index of thecbr_flag
field. -
initial_cpb_removal_delay_length_minus1
Sets the specified value to theinitial_cpb_removal_delay_length_minus1
field. -
cpb_removal_delay_length_minus1
Sets the specified value to thecpb_removal_delay_length_minus1
field. -
dpb_output_delay_length_minus1
Sets the specified value to thedpb_output_delay_length_minus1
field. -
time_offset_length
Sets the specified value to thetime_offset_length
field. -
set
public StdVideoH264HrdParameters set(byte cpb_cnt_minus1, byte bit_rate_scale, byte cpb_size_scale, IntBuffer bit_rate_value_minus1, IntBuffer cpb_size_value_minus1, ByteBuffer cbr_flag, int initial_cpb_removal_delay_length_minus1, int cpb_removal_delay_length_minus1, int dpb_output_delay_length_minus1, int time_offset_length) 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 newStdVideoH264HrdParameters
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoH264HrdParameters
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoH264HrdParameters
instance allocated withBufferUtils
. -
create
Returns a newStdVideoH264HrdParameters
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoH264HrdParameters.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoH264HrdParameters.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoH264HrdParameters.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoH264HrdParameters.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoH264HrdParameters
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoH264HrdParameters
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoH264HrdParameters.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoH264HrdParameters.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncpb_cnt_minus1
public static byte ncpb_cnt_minus1(long struct) Unsafe version ofcpb_cnt_minus1()
. -
nbit_rate_scale
public static byte nbit_rate_scale(long struct) Unsafe version ofbit_rate_scale()
. -
ncpb_size_scale
public static byte ncpb_size_scale(long struct) Unsafe version ofcpb_size_scale()
. -
nreserved1
public static byte nreserved1(long struct) -
nbit_rate_value_minus1
Unsafe version ofbit_rate_value_minus1()
. -
nbit_rate_value_minus1
public static int nbit_rate_value_minus1(long struct, int index) Unsafe version ofbit_rate_value_minus1
. -
ncpb_size_value_minus1
Unsafe version ofcpb_size_value_minus1()
. -
ncpb_size_value_minus1
public static int ncpb_size_value_minus1(long struct, int index) Unsafe version ofcpb_size_value_minus1
. -
ncbr_flag
Unsafe version ofcbr_flag()
. -
ncbr_flag
public static byte ncbr_flag(long struct, int index) Unsafe version ofcbr_flag
. -
ninitial_cpb_removal_delay_length_minus1
public static int ninitial_cpb_removal_delay_length_minus1(long struct) Unsafe version ofinitial_cpb_removal_delay_length_minus1()
. -
ncpb_removal_delay_length_minus1
public static int ncpb_removal_delay_length_minus1(long struct) Unsafe version ofcpb_removal_delay_length_minus1()
. -
ndpb_output_delay_length_minus1
public static int ndpb_output_delay_length_minus1(long struct) Unsafe version ofdpb_output_delay_length_minus1()
. -
ntime_offset_length
public static int ntime_offset_length(long struct) Unsafe version oftime_offset_length()
. -
ncpb_cnt_minus1
public static void ncpb_cnt_minus1(long struct, byte value) Unsafe version ofcpb_cnt_minus1
. -
nbit_rate_scale
public static void nbit_rate_scale(long struct, byte value) Unsafe version ofbit_rate_scale
. -
ncpb_size_scale
public static void ncpb_size_scale(long struct, byte value) Unsafe version ofcpb_size_scale
. -
nreserved1
public static void nreserved1(long struct, byte value) -
nbit_rate_value_minus1
Unsafe version ofbit_rate_value_minus1
. -
nbit_rate_value_minus1
public static void nbit_rate_value_minus1(long struct, int index, int value) Unsafe version ofbit_rate_value_minus1
. -
ncpb_size_value_minus1
Unsafe version ofcpb_size_value_minus1
. -
ncpb_size_value_minus1
public static void ncpb_size_value_minus1(long struct, int index, int value) Unsafe version ofcpb_size_value_minus1
. -
ncbr_flag
Unsafe version ofcbr_flag
. -
ncbr_flag
public static void ncbr_flag(long struct, int index, byte value) Unsafe version ofcbr_flag
. -
ninitial_cpb_removal_delay_length_minus1
public static void ninitial_cpb_removal_delay_length_minus1(long struct, int value) Unsafe version ofinitial_cpb_removal_delay_length_minus1
. -
ncpb_removal_delay_length_minus1
public static void ncpb_removal_delay_length_minus1(long struct, int value) Unsafe version ofcpb_removal_delay_length_minus1
. -
ndpb_output_delay_length_minus1
public static void ndpb_output_delay_length_minus1(long struct, int value) Unsafe version ofdpb_output_delay_length_minus1
. -
ntime_offset_length
public static void ntime_offset_length(long struct, int value) Unsafe version oftime_offset_length
.
-